Corey Johnson & Nathan Sobo
361bf83345
Load snippets from CSON/JSON. Use syntax properties for scoping.
...
This commit eliminates the custom `snippets` format and instead just
uses CSON/JSON.
2013-01-07 14:28:47 -07: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
Corey Johnson
60e295e7f3
Merge remote-tracking branch 'origin/hide-apps'
2013-01-07 08:33:21 -08:00
Kevin Sawicki
9013a94465
Count commands instead of command categories
2013-01-06 18:51:22 -08:00
Kevin Sawicki
06a6a7c507
Add octicon when panes are empty
2013-01-06 12:59:10 -08:00
Kevin Sawicki
df309c80dc
Use switch statement for line types
2013-01-06 11:04:59 -08:00
Kevin Sawicki
afa08c43b7
Vendor shell script bundle
2013-01-06 10:50:04 -08:00
Kevin Sawicki
64afd51ca4
Use constant for submodule file mode
2013-01-06 09:59:57 -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
Nathan Sobo
af3d3bf4cc
💩 Reset fs.write mock before test.
2013-01-04 18:08:52 -07:00
Kevin Sawicki
f78adfa060
Add command and invocation counts to header
2013-01-04 16:39:13 -08:00
Nathan Sobo
65d13b5383
Expand explanation of config.setDefaults in docs
2013-01-04 17:35:12 -07: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
Kevin Sawicki
7228e270b0
Remove unused require
2013-01-04 15:12:37 -08:00
Kevin Sawicki
b855799d96
Return null unless exactly 1 delta exists
2013-01-04 14:59:41 -08:00
Kevin Sawicki
f1efc9ce60
Upgrade to latest libgit2 development branch
2013-01-04 14:57:14 -08:00
Kevin Sawicki
0f22a560a5
Set path on project to be fixture git repo
...
This was causing the spec to fail on all non-master branches
since the wrong repository was being used for comparisons.
2013-01-04 14:46:41 -08:00
Kevin Sawicki
8e1ae24eb4
Update selected operation on move-to-top/move-to-bottom
2013-01-04 13:35:05 -08:00
Nathan Sobo
8591c86733
Pass a name string to RootView.activatePackage & deactivatePackage
...
Previously we were relying on the package module itself to have a
`name` field. But now that we're using `atom.loadPackage` to load up
packages, we can infer the name of the module from the name of the
package directory.
2013-01-04 14:33:01 -07:00
Nathan Sobo
4ef4c79f30
Use Subscriber mixin in EditSession to subscribe/unsubscribe
...
This replaces the need to track subscription on `EditSession`'s
`Buffer` and `DisplayBuffer` using an incrementing id on `EditSession`
2013-01-04 14:11:25 -07:00
Nathan Sobo
b6b8f235fd
Move and rename Buffer's 'anchors-updated' event
2013-01-04 14:03:37 -07:00
Nathan Sobo
0a08d03c68
Rename Buffer, TokenizedBuffer, and Selection events
2013-01-04 13:59:11 -07:00
Nathan Sobo
1762ae2744
Rename 'selection-change' to 'selection:changed'
2013-01-04 13:48:49 -07:00
Kevin Sawicki & Nathan Sobo
96aaefdd7d
Rename Project events to be past-tense
2013-01-04 13:46:27 -07:00
Kevin Sawicki & Nathan Sobo
725c4cf132
Rethrow exceptions during undo, redo, and pushOperation
2013-01-04 13:20:58 -07:00
Kevin Sawicki & Nathan Sobo
c5e6a7428d
💩 Kill stray print statement
2013-01-04 13:19:56 -07:00
Kevin Sawicki & Nathan Sobo
82d4550ff3
Throw exception when aborting/committing without a transaction
2013-01-04 13:02:56 -07:00
Kevin Sawicki & Nathan Sobo
da095cdfe9
Leave the undo stack intact when aborting empty transactions
2013-01-04 13:02:33 -07:00
Kevin Sawicki & Nathan Sobo
29f371b347
Use Editor.abort to clear autocomplete's buffer changes on cancel
...
Using this new `abort` mechanism ensures that autocomplete's changes can never be redone, while eliminating the need to track operation counts explicitly.
2013-01-04 12:44:44 -07:00
Kevin Sawicki & Nathan Sobo
ec13c38c7d
Add EditSession.transact and friends
...
`EditSession.transact` adds more semantics on top of `UndoManager`'s
version pertaining to restoring selections on undo/redo of the
transaction.
2013-01-04 12:42:09 -07:00
Kevin Sawicki & Nathan Sobo
e65c2df093
Don't select first item of SelectList twice
2013-01-04 12:39:20 -07:00
Kevin Sawicki & Nathan Sobo
e64047854d
Add UndoManager.abort and .commit
...
When `UndoManager.transact` is called with no function, you later need
to `abort` or `commit` the transaction manually. This allows
transactions to last longer than the dynamic scope of the single
function passed to `transact`.
2013-01-04 11:52:39 -07:00
Kevin Sawicki & Nathan Sobo
428900fdba
Rename File 'remove' & 'move' events to passive voice
...
'remove' -> 'removed'
'move' -> 'moved'
2013-01-04 11:25:46 -07:00
Kevin Sawicki & Nathan Sobo
8098ee69f3
Rename Editor attach and remove events in accordance w/ new scheme
...
'editor-open' -> 'editor:attached'
'before-remove' -> 'editor:will-be-removed'
2013-01-04 11:25:45 -07:00
Kevin Sawicki & Nathan Sobo
8e835acea4
Rename Buffer 'will-save' event to 'will-be-saved'
2013-01-04 11:25:45 -07:00