Justin Palmer
7d00623313
move generic tab styles to main bundle
2013-02-04 08:52:39 -08:00
Justin Palmer
1affefb196
move generic command-panel styles to main bundle
2013-02-04 08:36:27 -08:00
Justin Palmer
4bfd73966d
move generic tree-view styles to the main bundle
2013-02-04 08:28:58 -08:00
Justin Palmer
ffa3518cb3
kill grammar-view.css, uses overlay and select list defaults
2013-02-04 08:14:52 -08:00
Justin Palmer
05b1a1a64d
move notification.css to main bundle
2013-02-03 14:39:09 -08:00
Justin Palmer
44d4efdc10
move common overlay and popover css to static directory
2013-02-03 14:33:54 -08:00
Jon Rohan
3cf07d29f3
Changing the if-focused event binding to blur.
2013-02-03 09:01:27 -08:00
Nathan Sobo
df4ea9293d
Build DisplayBufferMarker object to help track marker screen positions
...
There are 3 failures, which I think are attributable to the fact that
I'm not emitting events from the when the selection tail changes, and
I'm not emitting redundant events when the head is changed to the
same position it was previously, whereas before I wasn't guarding
against redundant events.
2013-02-02 21:11:42 -07:00
Nathan Sobo
bd96db781e
Pass old/new buffer and screen positions to marker position observers
...
This is needed by the snippets package, which needs to know where the
cursor was previously when it moves to decide whether to cancel the
current snippet.
2013-02-02 18:00:35 -07:00
Nathan Sobo
d144dd4efe
Merge branch 'dev' into better-anchors
2013-02-02 17:03:57 -07:00
Nathan Sobo
94f1630152
Bind window focus and focusout events separately to fix spec
2013-02-02 17:02:07 -07:00
Nathan Sobo
abafb541df
Merge remote-tracking branch 'origin/dev' into better-anchors
2013-02-02 16:47:09 -07:00
Nathan Sobo
f6ea6a39d9
Remove anchorPoint state from EditSession
2013-02-02 16:46:25 -07:00
Nathan Sobo
80b39ae263
Replace mentions of 'anchor' with 'tail' in selection and its spec
2013-02-02 16:44:13 -07:00
Nathan Sobo
e53403718a
Tell marker head observers if a move was caused by a buffer change
...
This is used by cursor to only autoscroll when the marker head is
explicitly moved, so that passive movements caused by buffer insertions
don't trigger autoscrolling.
2013-02-02 16:17:14 -07:00
Nathan Sobo
bd1a100d17
Always wrap marker screen positions at soft newlines
2013-02-02 15:59:08 -07:00
Nathan Sobo
cb6de5b2a4
Honor autoscroll option when setting a selection's buffer range
...
If we pass an explicit autoscroll option when selection, we don't want
to autoscroll the cursor. If the option is true, we'll autoscroll to
the middle of the selection. If the option is false, we don't want any
autoscrolling, including to the cursor. The cursor should only autoscroll
when the option is undefined.
2013-02-02 15:17:24 -07:00
Nathan Sobo
4a191586db
Ensure we don't try to draw a destroyed selection on editor refresh
...
Destroying the cursor will cause a redraw, which causes a problem when
we execute it synchronously in specs because destroying the cursor also
destroys the marker associated with the selection. Here we remove the
selection first to avoid this problem.
2013-02-02 15:10:01 -07:00
Nathan Sobo
3d8406f5a3
Clip screen positions before translating to buffer positions
2013-02-02 15:07:17 -07:00
Nathan Sobo
752383651d
Don't add bufferChange to DisplayBuffer change events
2013-02-02 15:01:42 -07:00
Nathan Sobo
5e56206fcc
This never should have been checked in.
2013-02-02 15:00:54 -07:00
Kevin Sawicki
5cd3c04702
Load fuzzy finder paths in web worker at startup
...
Previously the paths were first loaded when the fuzzy finder
view was first attached.
Now a web worker is started when the package activates that
sets the paths on the fuzzy finder view the first time it
displays if the worker has completed by the time an event occurs
that displays the view.
2013-02-02 12:47:46 -08:00
Jon Rohan
0d2a328dcc
making the editor .focused .is-focused for symmetry
2013-02-01 19:23:52 -05:00
Jon Rohan
e54c3d8fbb
adding is-focused to body, and styling light ui
2013-02-01 18:40:53 -05:00
Jon Rohan
2788ee2715
rename to
2013-02-01 12:59:57 -05:00
Jon Rohan
44cd412bd8
Merge branch 'dev' into github-code-theme
2013-02-01 11:10:45 -05:00
Jon Rohan
f62e49d2f4
Adding back the font-weight font-style to tmThemes
...
We can add this back now because in the default tests we're using a true
monospaced font, not the fake monospace font Inconsolata.
2013-02-01 11:09:12 -05:00
Jon Rohan
f40f4ead3a
renaming scheme again
2013-01-31 21:34:00 -05:00
Nathan Sobo
1bbb954239
EditSession specs passing after converting Selection to use markers
...
Still a bit of a mess though...
2013-01-31 18:26:29 -07:00
Jon Rohan
194675b8c3
Renaming themes to lowercase-dashes.
2013-01-31 19:48:32 -05:00
Jon Rohan
c2af8712d1
Creating GitHub_Dark and GitHub_Light.
2013-01-31 19:01:44 -05:00
Corey Johnson
587111074d
Don't complain if restoring an unnamed buffer
2013-01-31 15:16:03 -08:00
Corey Johnson
30c7e8e2a5
require 'Task' uses correct case
2013-01-31 15:16:03 -08:00
Nathan Sobo
628701fd3a
Finish converting cursors to use markers.
...
The model layer works at least… haven't tested the view. Will test out
the view once I get the selection model working.
2013-01-31 15:52:28 -07:00
Nathan Sobo
ec521b3fd3
Add ability to cancel marker head position observations
2013-01-31 14:11:28 -07:00
Nathan Sobo
bc44540b10
Start adding ability to observe marker head positions
2013-01-31 14:00:01 -07:00
Kevin Sawicki
379a4a4d8d
Only auto-load .cson and .json keymap files
...
This now prevents files such as .DS_Store from being loaded as a
keymap where previously all paths were loaded regardless of extension.
Closes #205
2013-01-31 12:03:21 -08:00
Justin Palmer
cfd66b36df
Merge pull request #216 from github/user-prefs
...
Load settings from user.coffee and user.css
2013-01-31 10:36:23 -08:00
Corey Johnson & Kevin Sawicki
8f030cd97e
Always calculate dimensions with editor on DOM
...
Closes #206
2013-01-31 10:31:13 -08:00
Kevin Sawicki
72bef679d9
Merge branch 'dev' into user-prefs
2013-01-31 09:42:23 -08:00
Kevin Sawicki
e5bd097592
Use configDirPath exposed by global config object
2013-01-31 09:41:40 -08:00
Justin Palmer
20f2cf9a0a
Merge branch 'dev' into user-prefs
2013-01-31 08:25:43 -08:00
Jon Rohan
11c0637220
Not adding a font family when the user doesn't have it set
2013-01-31 10:19:41 -05:00
Nathan Sobo
2df0b9fa19
WIP: Start converting cursor and selection to be based on markers
2013-01-30 22:47:29 -07:00
Nathan Sobo
074c1815d0
Start adding marker methods to DisplayBuffer
...
Whereas marker methods on buffer take for granted that everything is
in buffer coordinates, methods on the DisplayBuffer offer both
screen and buffer coordinate versions of the marker API.
2013-01-30 22:46:52 -07:00
Nathan Sobo
1d1c613f5b
Allow buffer marker head and tail positions to be manipulated
2013-01-30 22:16:08 -07:00
Nathan Sobo
5dd142b966
Allow markers to be created in a reverse orientation
...
This means that the head of the marker precedes its tail in the buffer.
This will be important if we want to build selections on top of markers.
2013-01-30 21:44:57 -07:00
Nathan Sobo
d8ffdcd6bd
Allow markers to be created with just a position
...
When a marker is created with just a position, it only gets a head
position and has no tail position.
2013-01-30 21:37:57 -07:00
Nathan Sobo
0e67f35748
Start on marker interface in DisplayBuffer
2013-01-30 21:04:52 -07:00
Nathan Sobo
fd99c795b9
Merge remote-tracking branch 'origin/dev' into better-anchors
2013-01-30 20:45:31 -07:00