Corey Johnson & Nathan Sobo
3b213e2960
Use single quotes when shelling out to ag.
...
This prevents `sh` from interpreting $ and \ as special characters.
2012-11-05 12:18:28 -08:00
Corey Johnson & Nathan Sobo
6613d336af
Only interpret escaped characters in replacement text of substitutions
2012-11-05 12:18:27 -08:00
Corey Johnson
fbb154723d
Lipstick
2012-11-05 12:18:27 -08:00
Corey Johnson
5535d37a3e
Better error reporting when a grammar fails to load
2012-11-05 12:18:27 -08:00
Corey Johnson
f6b5b4d3bd
There are no global bundles anymore.
2012-11-05 12:18:27 -08:00
Kevin Sawicki
3df28ab375
Store Git instance in Buffer
...
Access it from StatusBar for checking
path status and current branch.
2012-11-05 12:03:59 -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
Nathan Sobo
b686d89d18
Fix bugs in optimization of cursor line highlighting in the gutter
2012-11-05 11:05:30 -07:00
Kevin Sawicki
830a0b337a
Add ctrl-Z keybinding to checkout HEAD revision
2012-11-03 15:50:50 -07:00
Kevin Sawicki
71e7f73fa5
💄
2012-11-03 15:19:37 -07:00
Kevin Sawicki
1019154db6
Add Git.checkoutHead(path)
2012-11-03 15:09:52 -07:00
Nathan Sobo
669b582254
Don't update the status bar text redundantly
2012-11-03 14:12:40 -06:00
Nathan Sobo
f76c9d5597
Don't update the highlighted line number if it's already highlighted
2012-11-03 14:12:40 -06:00
Kevin Sawicki
9ef13eaea0
💄
2012-11-03 10:36:50 -07:00
Kevin Sawicki
4926d32f00
Reuse git instance unless editor path changes
2012-11-03 09:43:26 -07:00
Kevin Sawicki
814373b435
Return early when editor has no path
2012-11-03 09:38:55 -07:00
Kevin Sawicki
ee4849fe20
Extend existing invisibles hash with parameter
2012-11-02 17:51:22 -07:00
Kevin Sawicki
910ca47a61
Allow setting of invisibles on editor
2012-11-02 17:51:22 -07:00
Kevin Sawicki
ff8055be49
💄
2012-11-02 17:51:22 -07:00
Kevin Sawicki
9002130ad5
Assign invisiblesMap directly from param
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
Corey Johnson
bef4f9aaa5
💄
2012-11-02 16:09:02 -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
Kevin Sawicki
094b5a3604
💄
2012-11-02 15:33:39 -07:00
Kevin Sawicki
20c69118ff
Decorate ignored files/folders in tree-view
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
1609fd61ec
Set text before showing
2012-11-02 15:33:37 -07:00
Kevin Sawicki
8d623f99fb
Update branch text from subscribeToBuffer
2012-11-02 15:33:37 -07:00
Kevin Sawicki
a3ef53f8e6
Return repository for all paths
2012-11-02 15:33:07 -07:00
Kevin Sawicki
b2b00a7b39
Update branch text on save
2012-11-02 15:33:07 -07:00
Kevin Sawicki
e4fb12a398
Add octicon to branch label
2012-11-02 15:31:11 -07:00
Kevin Sawicki
88cdff9d26
Return full HEAD when unshortened
2012-11-02 15:31:11 -07:00
Kevin Sawicki
d66315dd21
Abbreviate SHA-1s when HEAD is detached
2012-11-02 15:31:10 -07:00
Kevin Sawicki
14302c491d
Show current branch in status bar
2012-11-02 15:31:10 -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
adbcb9f49e
Only consider BindingSets with a binding for first keystroke of event
...
The keymap was slow because it would find the binding sets with matching selectors for every ancestor of every keydown event. The problem was, it was considering a lot of binding sets that didn't even have a binding for the event in question. Now we index all binding sets on what bindings they contain, and filter them by that first. Rejecting an event that has no bindings is almost instantaneous now.
2012-11-02 14:13:03 -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
0c3498d29f
Cleanup/optimize Keymap#keystrokeStringForEvent
2012-11-02 13:25:33 -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
1d838e920c
Cache the maxScreenLineLength
...
Computing this requires a full scan of all screen lines. Here I keep it updated as I add / remove lines. If I remove the line with the max length, I am forced to scan all of them again. But this happens relatively rarely. Usually I only need to scan the lines I'm replacing and inserting.
2012-11-01 17:37:50 -06:00