Commit Graph

1497 Commits

Author SHA1 Message Date
Kevin Sawicki
0c42ab71d7 Load all keymaps found in ~/.atom/keymaps 2013-01-13 14:56:25 -08:00
Kevin Sawicki
d47e59bc11 💄 2013-01-11 16:49:04 -08:00
Kevin Sawicki
eaa164e109 Use subscribe for window focus event handler 2013-01-11 10:37:33 -08:00
Kevin Sawicki
97b1bc5f09 editor:close-?-editors => editor:close-?-edit-sessions 2013-01-11 09:54:00 -08:00
Kevin Sawicki
3a582eab63 Display editor's grammar name in status bar
Clicking on the grammar name displays the list of
available grammars that can be switched to.
2013-01-10 17:51:15 -08:00
Kevin Sawicki & Nathan Sobo
2fb27bb2dd Store pathToOpen using new atom.set/getWindowState api
When you use `setWindowState`, your data is saved across refreshes.
You can only store state that can be serialized to JSON.
2013-01-10 18:04:22 -07:00
Kevin Sawicki & Nathan Sobo
ac3c059246 Extract _.setValueForKeyPath to underscore extensions 2013-01-10 18:02:55 -07:00
Nathan Sobo
b0fe034c9a Add autoflow package w/ autoflow:reflow-paragraph command 2013-01-10 17:29:41 -07:00
Kevin Sawicki
d27080cee6 Always set pathToOpen in RootView.initialize
Without this an untitled buffer will be opened when
Atom is reopened after being closed with no editors
open.
2013-01-10 16:24:40 -08:00
Kevin Sawicki
6d914cdc7a Don't attach the TreeView if RootView's path to open is a file 2013-01-10 14:11:56 -08:00
Corey Johnson
c3a2b99b69 Merge pull request #124 from github/auto-indent-config
Auto-indent config
2013-01-10 11:02:54 -08:00
Corey Johnson
0c0d48b8f6 Add commands to toggle auto-indent options 2013-01-10 10:40:05 -08:00
Corey Johnson
ca41bf0709 Set auto-indent config defaults 2013-01-10 10:38:44 -08:00
Corey Johnson
d53572d54d Rename editor.autoIndentPastedText to editor.autoIndentOnPaste 2013-01-10 09:42:20 -08:00
Corey Johnson
4f0e2c1e9b Add editor.autoIndentPastedText config option 2013-01-10 09:31:57 -08:00
Corey Johnson
d55dfc8a6f AutoIndent is a config property instead of a syntax property 2013-01-10 09:31:23 -08:00
Kevin Sawicki & Nathan Sobo
06e39595ba Make RootView listen for events before loading packages
This is because RootView listens to some of its own events. It needs
to be first in line to handle its own events because package event
handlers might rely on tree view's event handlers having been run.
This also brings behavior more in line with what we'll experience in
specs.
2013-01-09 19:27:19 -07:00
Kevin Sawicki & Nathan Sobo
3db7af1edf Don't show the tree view until the project has a path 2013-01-09 19:27:19 -07:00
Kevin Sawicki & Nathan Sobo
bb6bed85c6 Raise exception when destroyed repo is accessed 2013-01-09 17:12:15 -08:00
Kevin Sawicki & Nathan Sobo
caffda6027 Add Git.destroy() that frees native repository 2013-01-09 17:07:29 -08:00
Corey Johnson
21fa3e5a0f autoIndent is stored as a syntax property 2013-01-09 16:26:57 -08:00
Corey Johnson
f5ee676e5e Pass autoIndent as an option flag
Instead of querying EditSession for autoIndenting
2013-01-09 15:24:04 -08:00
Corey Johnson
261a8aae2d Remove @autoIndent from Project and EditSession 2013-01-09 15:22:37 -08:00
Corey Johnson
d5a23f770f Override meta-w to be a noop on tool-panels 2013-01-09 13:19:22 -08:00
Nathan Sobo
46331ded03 Merge remote-tracking branch 'origin/command-extensions' into dev
Conflicts:
	spec/app/editor-spec.coffee
	spec/app/root-view-spec.coffee
	src/app/editor.coffee
	src/extensions/strip-trailing-whitespace.coffee
2013-01-09 14:18:10 -07:00
Nathan Sobo
2c4da1b8dd Merge branch 'snippets' into dev
Conflicts:
	src/app/package.coffee
	src/packages/snippets/src/snippets.coffee
2013-01-09 13:10:11 -07:00
Kevin Sawicki
ba614d5549 Throw error from GitRepository constructor 2013-01-09 11:53:13 -08:00
Kevin Sawicki
3e7f710b35 💄 2013-01-09 11:07:45 -08:00
Corey Johnson
d4b74f9858 Migrate to new RootView serialization scheme 2013-01-09 10:43:41 -08:00
Corey Johnson & Nathan Sobo
c56788fd04 Catch packing loading exceptions in Package@load
Instead of in AtomPackage.load
2013-01-09 10:43:41 -08:00
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
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
7465ae5052 Close all editors in pane with meta-P 2013-01-08 09:06:20 -08:00
Nathan Sobo
1b1d8b0390 Merge remote-tracking branch 'origin/master' into cson-snippets 2013-01-07 21:53:36 -07:00
Nathan Sobo
314e3da8bc WIP: Destroy nested tab stops when engulfed by a buffer change
Has 2 failing specs...

There are still some issue with this code's interaction with the undo
system. The tab stops will need to be or destroyed when certain
changes are undone or redone.
2013-01-07 21:53:08 -07: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