Commit Graph

1652 Commits

Author SHA1 Message Date
Corey Johnson
00a26ae4da Fix how repositories work in TextMate grammars
Previously, we treated all grammar repositories as rules, but some
grammars have repositories that are a single pattern. If it is a single
pattern, transform it into a rule with one pattern.

Fix how repositories work in TextMate grammars

Previously, we treated all grammar repositories as rules, but some grammars have repositories that are a single pattern. If it is a single pattern, transform it into a rule with one pattern.
2012-11-08 16:47:36 -08:00
Nathan Sobo
312f64d200 Don't make hidden input a child of Editor's scrollView
If the input element is a child of the scroll view, then focusing it can end up changing the scroll position of the view behind our backs. We *only* want to scroll the view via our interface on editor, because a bunch of of special code needs to run when we scroll. We can't just have the browser scrolling that view around willy-nilly.
2012-11-07 19:47:31 -07:00
Nathan Sobo
19c8a39fc8 Don't autoscroll to bottom of buffer on selectAll 2012-11-07 16:01:10 -07:00
Nathan Sobo
d1d3b45474 Don't focus the specs window in beforeEach 2012-11-07 16:00:39 -07:00
Nathan Sobo
144cfadb15 Update selection rendering when font size changes 2012-11-07 14:22:43 -07:00
Nathan Sobo
df392359f9 When font size changes, correctly adjust scrollable height
This requires updating the padding of the rendered lines and then adjusting the vertical scrollbar content height before updating any of the rendered lines. This fixes (hopefully all of) the rendering issues when adjusting the font size.
2012-11-07 14:09:31 -07:00
Nathan Sobo
66efc80373 Fix broken spec 2012-11-07 13:05:03 -07:00
Nathan Sobo
d44e116321 Don't highlight the current line unless the selection is empty 2012-11-07 12:11:33 -07:00
Nathan Sobo
72d25b405f Don't show dev tools by default during specs. They steal the focus. 2012-11-07 12:04:47 -07:00
Corey Johnson & Nathan Sobo
8184c0248b Don't store tabLength on EditSession 2012-11-06 11:56:18 -08:00
Corey Johnson & Nathan Sobo
b8beec6f55 Remove foldable from ScreenLine 2012-11-06 11:41:48 -08:00
Corey Johnson & Nathan Sobo
874af0f2bc Eliminate reference to TokenizedBuffer on EditSession 2012-11-06 11:09:38 -08:00
Corey Johnson & Nathan Sobo
0e0f747764 TokenizedBuffer.setTabLength retokenizes the entire buffer 2012-11-06 10:44:50 -08:00
Corey Johnson & Nathan Sobo
2c14bc7ebd Optimize breakOutAtomicTokens 2012-11-06 10:44:03 -08:00
Corey Johnson
a63f838cdb Simplify breakOutAtomicTokens method 2012-11-06 09:39:44 -08:00
Corey Johnson
b85a95eaa1 Make leading spaces atomic (length based on tabLength) 2012-11-06 09:03:54 -08:00
Corey Johnson & Nathan Sobo
89ef3f0f20 Build Token objects in TextMateGrammar. Tokenization-related renames. 2012-11-05 16:03:19 -07:00
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