Corey Johnson & Nathan Sobo
1ed76383ac
💄
2012-11-05 16:02:36 -07:00
Nathan Sobo
b87d7cd0df
Auto-indent skips cursor over leading whitespace before inserting more
...
This preserves the user's intent to bring the line's total amount of leading whitespace to the desired indent level.
2012-11-05 15:15:00 -07:00
Corey Johnson & Nathan Sobo
7d5377fe04
💄
2012-11-05 12:18:27 -08:00
Kevin Sawicki
c8258894c7
Add Buffer.checkoutHead()
...
Move implementation from Editor
to Buffer for checking out the
HEAD revision of the current path
2012-11-05 11:52:33 -08:00
Kevin Sawicki
830a0b337a
Add ctrl-Z keybinding to checkout HEAD revision
2012-11-03 15:50:50 -07:00
Kevin Sawicki
1019154db6
Add Git.checkoutHead(path)
2012-11-03 15:09:52 -07:00
Kevin Sawicki
67c1cfe3c6
Add second file to git/working-dir fixture
2012-11-03 15:09:52 -07:00
Kevin Sawicki
d1927e17f1
Set invisibles on editor from rootView
2012-11-02 17:51:23 -07:00
Kevin Sawicki
910ca47a61
Allow setting of invisibles on editor
2012-11-02 17:51:22 -07:00
Kevin Sawicki
6d7fac2bf8
💄
2012-11-02 17:51:22 -07:00
Will Farrington
8dbeb9f3d2
first spike at customizable invisibles characters
2012-11-02 17:51:16 -07:00
Kevin Sawicki
e86495080a
Verify icon text in status label specs
2012-11-02 17:46:14 -07:00
Corey Johnson
25744fcd61
Merge remote-tracking branch 'origin/master'
...
Conflicts:
src/app/status-bar.coffee
2012-11-02 15:53:53 -07:00
Corey Johnson & Kevin Sawicki
3772a4ce1b
Add new status icon to status bar
2012-11-02 15:37:05 -07:00
Corey Johnson & Kevin Sawicki
be533d4342
Add Git.isPathNew(path)
...
Renamed other method to Git.isPathModified
2012-11-02 15:36:35 -07:00
Corey Johnson & Kevin Sawicki
c9f1064d6b
Add Git status indicator to status bar
2012-11-02 15:36:35 -07:00
Nathan Sobo
05d4e41900
Wait longer to update status bar so it never interferes w/ repaint
2012-11-02 16:36:33 -06:00
Corey Johnson
81fc8d417d
Add Git.isModified(path)
2012-11-02 15:35:21 -07:00
Corey Johnson
1c86843e7a
Fixture file used for git specs
2012-11-02 15:35:21 -07:00
Kevin Sawicki
6618e6ac5f
Use /tmp paths for non-repo specs
2012-11-02 15:33:39 -07:00
Kevin Sawicki
de1d4cf8ab
Remove unneeded fixture repo files
2012-11-02 15:33:39 -07:00
Kevin Sawicki
7f0091b67e
Use /tmp file for non-repo branch label spec
2012-11-02 15:33:39 -07:00
Kevin Sawicki
90126d1a9b
💄
2012-11-02 15:33:39 -07:00
Kevin Sawicki
f5db2b63d8
Add specs for Git.isIgnored
2012-11-02 15:33:38 -07:00
Kevin Sawicki
a9baf54707
Update git specs for latest libgit2 build
2012-11-02 15:33:38 -07:00
Kevin Sawicki
28db13dbc1
Add specs for status bar branch label
2012-11-02 15:33:37 -07:00
Kevin Sawicki
8e8ab4ff94
Add getPath helper
2012-11-02 15:33:37 -07:00
Kevin Sawicki
cbba58c30e
💄
2012-11-02 15:33:37 -07:00
Kevin Sawicki
b029bacc03
Add initial git specs
2012-11-02 15:33:37 -07:00
Nathan Sobo
3fbf5653c4
Update the status bar asynchronously on cursor move / buffer change
...
This keeps it out of the synchronous path from pressing a key to seeing it inserted on screen.
2012-11-02 15:46:33 -06:00
Nathan Sobo
2c211ba504
Remove ability to associate a binding set with a function
...
This was cool, but it's really hard to optimize the keymap with this feature because we never know if a keystroke will match against a binding set with a function, which will force us to always consider this binding set against every key event.
2012-11-02 13:39:21 -06:00
Nathan Sobo
045cdda41d
Fix cursor line highlight style
2012-11-02 12:16:03 -06:00
Corey Johnson
83329567b9
Use the file's first line to determine the grammar.
...
Only when it cannot be determined by the file's extension fails. Fixes #75
2012-11-01 17:47:31 -07:00
Corey Johnson
41291021c4
Use entire filePath to determine its grammar
2012-11-01 17:47:31 -07:00
Nathan Sobo
c6075b0fa6
Optimize highlighting of the current line in the gutter
2012-11-01 17:37:50 -06:00
Nathan Sobo
5249e5e69c
Fix spec failures caused by editor css changes
2012-11-01 12:25:33 -06:00
Nathan Sobo
085adb72ce
Pass translation options through when setting buffer position
2012-11-01 07:15:51 -06:00
Nathan Sobo
00bcb7a1b9
Make position translation understand hard tabs
2012-11-01 07:15:51 -06:00
Nathan Sobo
d21d079bb7
Delete specs for old version of LineMap and ScreenLine
...
The specs on `DisplayBuffer` and `Editor` cover the behavior of these lower-level objects in a more robust way.
2012-11-01 07:15:51 -06:00
Nathan Sobo
3d12269315
DisplayBuffer specs passing with greatly simplified LineMap
2012-11-01 07:15:51 -06:00
Corey Johnson
dbf8639375
Rename anchor.ignoreEqual to anchor.ignoreChangesStartingOnAnchor
2012-10-31 14:27:31 -07:00
Corey Johnson
84ea1017f4
Anchor.ignoreEqual works properly
...
The anchor ignores buffer changes when ignoreEqual is true and the oldRange.start == anchor.position
2012-10-31 14:27:21 -07:00
Corey Johnson
7793a04172
Filled in anchor specs
2012-10-31 14:27:07 -07:00
Corey Johnson & Nathan Sobo
74f60dbb95
Remove call to logScreenLines
2012-10-30 17:08:13 -07:00
Corey Johnson & Nathan Sobo
426c952d73
shift-double-click and shift-triple-click are ignored.
2012-10-30 16:43:00 -07:00
Nathan Sobo
007e032224
Expand selection linewise after triple-click (dragging or shift-click)
2012-10-30 14:48:33 -06:00
Corey Johnson & Nathan Sobo
c55332a3a4
WIP: Make selections remember if they are wordwise/linewise
...
Also always expand from the initial selection after a double/triple click in either direction until directionality of the selection is established.
2012-10-30 13:56:35 -06:00
Corey Johnson & Nathan Sobo
5b7e96067a
moveCursorToBeginningOfWord works when preceded by a blank line
2012-10-30 12:05:46 -06:00
Corey Johnson & Nathan Sobo
46fc7f2375
Redefine word regex to consider sequences of non-word chars as words
...
This does *not* include newlines. Doing this makes it possible to double-click regions of whitespace to select them just as you can select a word. It also makes word movement bindings behave similarly to TextMate.
2012-10-30 11:56:05 -06:00
Corey Johnson & Nathan Sobo
8c7152a59b
Eliminate 'move-cursor-to-next-word' command
...
We have move-to-end-of-word and move-to-beginning-of-word, which is what we use for the current keybindings.
2012-10-30 11:56:05 -06:00