Kevin Sawicki
9489ec6787
Add specs for & selectors
2013-04-19 10:58:35 -07:00
Kevin Sawicki & Nathan Sobo
1dffb9237a
Use the earliest result when both injection and non-injection patterns match
2013-04-19 10:58:34 -07:00
Kevin Sawicki
c2eca1ff99
Add initial support for injection grammars
...
Build scope selectors and patterns when setting up the grammar
for all entries under the grammar's injection object.
Include the injection patterns in the scanner when the injection's
scope selector matches the current rule stack.
2013-04-19 10:58:34 -07:00
Kevin Sawicki
beeaa01d22
Support space-separated scopes in selector parser
2013-04-19 10:58:33 -07:00
Kevin Sawicki
3e5448b698
Add initial TextMate scope selector parser
2013-04-19 10:58:33 -07:00
Kevin Sawicki
4b48e07f83
Specify cwd instead of cd'ing
2013-04-18 20:41:17 -07:00
Kevin Sawicki
b5474790cb
Remove unused imports
2013-04-18 20:18:37 -07:00
Garen Torikian
42290e87f8
80 is good.
2013-04-18 18:51:46 -07:00
Garen Torikian
cabee75f8a
💄
2013-04-18 15:02:22 -07:00
Garen Torikian
0acccc383e
Remove test for folder not documented
2013-04-18 13:24:55 -07:00
Garen Torikian
130baf2235
Merge branch 'master' into api/docs
2013-04-17 16:08:18 -07:00
Nathan Sobo
fff4531663
Fix select-list auto-scrolling specs
2013-04-15 20:45:55 -06:00
Nathan Sobo
bc03810589
Set height on image view, not parent
...
Setting the height of the parent caused #jasmine-content to be tall
for the remainder of the specs
2013-04-15 20:45:55 -06:00
Nathan Sobo
d82daeccee
Fix jasmine styling
2013-04-15 20:45:55 -06:00
Garen Torikian
4c56e8bb57
Merge branch 'master' into api/docs
2013-04-14 09:43:06 -07:00
Kevin Sawicki
7b42e975fb
Include hidden files when running nak
2013-04-12 11:48:44 -07:00
Kevin Sawicki
4e59605728
Don't bubble move-to-top/bottom events
...
This will cause the editor to scroll as well when a select
list is a child of an editor such as in the autocomplete view.
2013-04-11 10:39:19 -07:00
Garen Torikian
e0e4936756
Update spec
2013-04-11 02:14:24 -05:00
Kevin Sawicki
1ae878c000
Fire will-be-removed event from beforeRemove()
2013-04-10 17:43:26 -07:00
Garen Torikian
1142ae89aa
Update spec
2013-04-10 18:02:13 -05:00
Garen Torikian
9432f9703e
Merge master
2013-04-10 15:05:21 -05:00
Garen Torikian
756bb5604f
Add API doc spec
2013-04-09 18:03:29 -05:00
Kevin Sawicki
53c3fa8ac8
Bind meta-< to scroll to cursor location
2013-04-09 14:33:36 -07:00
Kevin Sawicki
efb4bdd028
Remove duplicate RootView.eachPane(callback)
2013-04-09 13:36:52 -07:00
Mutwin Kraus
c91de1e515
Merge remote-tracking branch 'origin/master' into vim-core-changes
...
Conflicts:
src/app/pane.coffee
2013-04-09 18:52:36 +02:00
Cheng Zhao
3c4966f6a3
Open the file dragged to window.
2013-04-09 15:37:30 +08:00
Kevin Sawicki
09b7fe72eb
Detach instead of remove when moved item is the view
...
Moving an item that extended the jQuery object between panes
was previously wiping out all jQuery data since remove() was being
called on the view item instead of detach().
2013-04-08 18:22:58 -07:00
Kevin Sawicki
d1c9d0ea68
Focus pane after reopening it
...
Previously the reopened item would not have focus if it was
reopened into a newly appended pane.
2013-04-08 16:54:05 -07:00
Kevin Sawicki
2f67312a80
Don't prompt to save if buffer is opened elsewhere
...
This corrects a regression where closing an edit session that
is opened somewhere else should not prompt to save since it
won't be lost if closed immediately since it is still open in
another pane.
2013-04-08 16:30:35 -07:00
Kevin Sawicki
7a709b05f3
Support zooming images in/out and resetting
2013-04-08 15:36:43 -07:00
Kevin Sawicki
6ce3f87448
Add initial image viewer
...
An image session will be opened by project.buildEditSession()
for known image extensions.
Closes #203
2013-04-08 15:36:35 -07:00
Kevin Sawicki
e3b381f638
Add RootView.eachPane(callback)
2013-04-08 13:04:50 -07:00
Kevin Sawicki
c7175c7e5f
Return top and left values of 0 when not visible
2013-04-08 13:03:19 -07:00
Kevin Sawicki
b7b4dcda24
Schedule redraw when updating an invisible editor
...
The redrawOnReattach flag will now be set when update
display is called on an invisible editor so that if the
editor is detached or hidden before the next update was
processed it will be performed when reattached.
2013-04-08 12:50:05 -07:00
Kevin Sawicki
503b1231db
Redraw editor when it becomes the active view
...
Start watching for when the editor becomes the active view
once it is attached and redraw it when it does.
2013-04-08 12:00:25 -07:00
Mutwin Kraus
9041c56ef3
Spec for selectToBeginningOfNextWord
2013-04-08 14:19:28 +02:00
Mutwin Kraus
2445829f83
Specs for moveCursorToBeginningOfNextWord
2013-04-08 14:15:25 +02:00
Cheng Zhao
e0865e8c38
Use node-pathwatcher.
2013-04-07 16:35:35 +08:00
Nathan Sobo
abc5ed5190
Add editor:add-selection-above command
2013-04-05 14:52:35 -06:00
Nathan Sobo
37e16bb163
Clear multiple selections on escape
...
The binding uses the `!important` selector to ensure that the editor
always gets a chance to clear multiple selections before other bindings
for escape are processed.
2013-04-05 14:52:35 -06:00
Nathan Sobo
7018f33ad7
Allow !important flag in keymap selectors
2013-04-05 14:52:35 -06:00
Nathan Sobo
2efed9f42c
Add EditSession.consolidateSelections()
2013-04-05 14:52:30 -06:00
Nathan Sobo
bd58834e7d
Merge goal ranges when merging selections
2013-04-05 14:17:21 -06:00
Nathan Sobo
be009e87c2
Skip empty lines when adding selections below empty selections
...
Unless the selection's column is 0
2013-04-05 14:17:21 -06:00
Nathan Sobo
393cba4d42
Don't skip shorter lines when the adding empty selection below
2013-04-05 14:17:21 -06:00
Nathan Sobo
131df22c11
Skip lines that are too-short when adding non-empty selection below
2013-04-05 14:17:21 -06:00
Nathan Sobo
40d7fcf32c
🙊
2013-04-05 14:17:21 -06:00
Nathan Sobo
f22461e5e8
Clear goal range when selection is modified
...
Just like the cursor clears its goal column when it is moved in any
way other than vertically, the selection clears its goal range (the
range it will attempt to use when adding a selection below) when it
is changed in any way.
2013-04-05 14:17:20 -06:00
Nathan Sobo
f6bfab5dd7
Don't freak when selections are added & removed before display update
...
Previously, if a selection was added and removed before the editor got
a chance to update its display, it would try to add a selection view
for the destroyed selection. Now we check the new selections and
cursors to make sure they aren't destroyed before we add views for
them.
2013-04-05 14:17:20 -06:00
Nathan Sobo
31579703f0
Ensure new non-empty selections have an invisible cursor.
2013-04-05 14:17:20 -06:00