Commit Graph

3026 Commits

Author SHA1 Message Date
Kevin Sawicki
8d0d62b486 Add Git.open that returns null on exceptions 2013-01-08 21:15:42 -08:00
Kevin Sawicki
6f5e29d48e Throw exception when repository fails to open
Removes need to check if the repository is valid before
each native API call and also removes calling into the
native-side if no repository can be opened for the project
page.
2013-01-08 21:15:41 -08:00
Corey Johnson
95dcf275e4 Remove *.getLastCursor() 2013-01-08 18:27:29 -08:00
Corey Johnson
f9e9b4203c *.getCursor() always returns last cursor (does not use index)
We weren't using the index functionality anywhere.
2013-01-08 18:27:29 -08:00
Kevin Sawicki
61600fcdf1 Reload grammar with edit session path changes 2013-01-08 17:12:08 -08:00
Kevin Sawicki
d9385888c8 Only update display when grammar changes 2013-01-08 16:54:51 -08:00
Kevin Sawicki
2b51a2ce73 Test firstLineRegex first when finding grammar
This is required for the property-list bundle to highlight
.plist files that maybe in XML or non-XML formats.

Also specify the cached buffer disk contents to grammarForFilePath
so fs.read doesn't need to be called again if the contents are
already read.
2013-01-08 16:15:38 -08:00
Kevin Sawicki
1872335adf Rename grammarByShebang to grammarByFirstLineRegex
A bundle's firstLineRegex value is used for more than
just shebang matches such as in the plist bundle.
2013-01-08 16:01:46 -08:00
Corey Johnson & Kevin Sawicki
131708ba37 Serialize grammar overrides for paths 2013-01-08 15:24:14 -08:00
Corey Johnson & Kevin Sawicki
c67fbef2b2 Store grammar overrides on project 2013-01-08 14:39:32 -08:00
Kevin Sawicki
fee1e7bc8b Escape ext in RegExp from fs.base 2013-01-08 13:31:37 -08:00
Kevin Sawicki
594813be34 Escape path in RegExp from fs.directory() 2013-01-08 13:30:41 -08:00
Kevin Sawicki
321d424c44 Support unsetting explicit grammar for path 2013-01-08 13:17:47 -08:00
Kevin Sawicki
3b47c26b4d Change an edit session's grammar on meta-l 2013-01-08 13:17:12 -08:00
Corey Johnson & Nathan Sobo
12794672b7 Merge branch 'objective-c-grammar' 2013-01-08 10:55:24 -08:00
Corey Johnson & Nathan Sobo
7372ae00cd Resolve $base includes correctly in TextMate grammars 2013-01-08 10:50:23 -08:00
Kevin Sawicki
498e2dc226 Remove unused require 2013-01-08 09:34:24 -08:00
Kevin Sawicki
08d68e6111 Rename event-palette to command-palette 2013-01-08 09:30:37 -08:00
Kevin Sawicki
7465ae5052 Close all editors in pane with meta-P 2013-01-08 09:06:20 -08:00
Kevin Sawicki
adfb6dee12 💄 2013-01-07 18:21:03 -08:00
Kevin Sawicki
438f510f80 Don't check if root is ignored 2013-01-07 18:14:27 -08:00
Kevin Sawicki
f3b84ed33d Only show repo icon at root of tree 2013-01-07 18:13:08 -08:00
Kevin Sawicki
f5344080f1 Only compute Git status flags once
Previously the status was fetched twice, once for
if modified and once for if new.

Now the flags are fetched once and Git now provides
helpers to check the status flags directly for
modified and new status.
2013-01-07 17:35:57 -08:00
Kevin Sawicki
146ae9d776 Refresh the Git index when the window gains focus
Closes #121
2013-01-07 17:29:48 -08:00
Kevin Sawicki
ebe7ff7090 Destroy inactive editor sessions that are dirty
A confirm dialog is now displayed whenever a session
with a dirty buffer is closed so dirty sessions can now
be processed when 'editor:close-other-tabs' is fired.
2013-01-07 16:50:20 -08:00
Kevin Sawicki
0adae3c634 Prompt to save dirty buffers from destroyEditSessionIndex
Previously only the active editor session was prompting to
save dirty buffers before closing.  This caused the confirm
dialog to not display when closing from a tab since the
Editor.destroyEditSessionIndex is used there.
2013-01-07 16:24:51 -08:00
Kevin Sawicki
5ded74b3e6 Close inactive editor sessions on alt-meta-w 2013-01-07 15:41:26 -08:00
Kevin Sawicki
b43c756820 Only deactivate the RootView once during shutdown
Previously window.shutdown() was called multiple times
if window.close() was called since the shutdown handler
was also fired in the native window controller.

This prevented proper serialization of the RootView
from occurring when then window was closed via meta-w or
meta-W since it was called a second time when already
empty of packages and editors.
2013-01-07 14:41:10 -08:00
Kevin Sawicki
1f1e0aac78 Include window events in event-palette
Previously these weren't displayed since event the
documentation loop stopped at the document element and
window events weren't included even though they are
applicable for the currently focused element.
2013-01-07 13:59:33 -08:00
Kevin Sawicki
0e082878f3 Close window on meta-W 2013-01-07 13:41:27 -08:00
Kevin Sawicki
2d4c4b3930 Support opening a path into a new split editor 2013-01-07 12:52:23 -08:00
Corey Johnson & Nathan Sobo
28c457f564 Add Cursor.getScopes and EditSession.getCursorScopes 2013-01-07 13:32:12 -07:00
Kevin Sawicki
b4654ea435 Use buffer position when end of word isn't found
Previously if null was returned for the end of word position then
it was interpreted as 0,0 which would select the entire contents
before the current word instead of the current word.
2013-01-07 11:30:30 -08:00
Kevin Sawicki
bbdff31faf Lowercase current word/selection with meta-U 2013-01-07 09:37:51 -08:00
Kevin Sawicki
2a0ee62685 Uppercase current word/selection with meta-u 2013-01-07 09:37:51 -08:00
Kevin Sawicki
9013a94465 Count commands instead of command categories 2013-01-06 18:51:22 -08:00
Kevin Sawicki
a300146f2a Display submodule icon in tree-view 2013-01-06 09:52:53 -08:00
Kevin Sawicki
59d631879d Start substring after trailing slash 2013-01-06 08:45:07 -08:00
Kevin Sawicki
7e95bf96a5 Don't highlight ending line if it ends at column 0 2013-01-05 19:45:45 -08:00
Kevin Sawicki
9a70736242 Remove stray console.log 2013-01-05 19:26:37 -08:00
Kevin Sawicki
3ce559637d 💄 2013-01-05 19:25:56 -08:00
Kevin Sawicki
f11f85e87b Show octicon for project's that are repos 2013-01-05 19:24:53 -08:00
Kevin Sawicki
0217bb9ce0 Remove unused variable 2013-01-05 19:11:43 -08:00
Kevin Sawicki
f78adfa060 Add command and invocation counts to header 2013-01-04 16:39:13 -08:00
Nathan Sobo
0624ebaf5d Set config defaults for a package from its module's configDefaults 2013-01-04 17:23:24 -07:00
Nathan Sobo
d509093076 Don't write config defaults out to config.json 2013-01-04 17:08:25 -07:00
Kevin Sawicki
dec3ab7873 Only get path if not returning 2013-01-04 15:49:57 -08:00
Kevin Sawicki
5ce606953b Guard against null repo 2013-01-04 15:47:34 -08:00
Kevin Sawicki
e0b1570795 Only create repo from setPath 2013-01-04 15:46:12 -08:00
Kevin Sawicki
cde4a567e7 Update status class when window gains focus
This will keep the tree view in sync when Git operations are
performed outside of the editor.
2013-01-04 15:29:36 -08:00