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
Kevin Sawicki & Nathan Sobo
2ffc0cf13d
Rename 'active-editor-path-change' to 'root-view:active-path-changed'
2013-01-04 11:25:45 -07:00
Kevin Sawicki & Nathan Sobo
0589012e86
Rename 'editor-path-change' to 'editor:path-changed'
2013-01-04 11:25:45 -07:00
Kevin Sawicki
4a84b423e4
Use green for path color
2013-01-04 10:01:09 -08:00
Kevin Sawicki
bbe2977502
Add file octicon to path elements
2013-01-04 09:55:20 -08:00
Kevin Sawicki
bd93de5998
Use peach color for paths and increase padding
2013-01-04 09:39:36 -08:00
Kevin Sawicki
3afd87ca58
💄
2013-01-04 09:23:11 -08:00
Kevin Sawicki
6818bf3b93
Add border to command panel
2013-01-04 09:22:49 -08:00
Kevin Sawicki
ef39cc7f2d
Scroll to top when selecting first element
...
This ensures that the top path is always visible
when the first operation is selected.
2013-01-04 09:04:21 -08:00
Kevin Sawicki
a891dec093
Wrap around the preview-list when moving up/down
2013-01-04 08:59:20 -08:00
Kevin Sawicki
7427d4e4ec
Update selector to use li text
2013-01-04 08:44:00 -08:00
Kevin Sawicki
a71ab7d15d
Set path directly on li instead of nested span
2013-01-04 08:42:32 -08:00
Kevin Sawicki
40707f1eee
Make selected operation grey instead of blue
2013-01-04 08:40:18 -08:00
Kevin Sawicki
961774874c
Make paths green instead of yellow
2013-01-04 08:39:03 -08:00
Kevin Sawicki
b4a8884d31
Break words to prevent long lines
2013-01-04 08:24:46 -08:00
Kevin Sawicki
e4513f5d48
Remove unused outlets
2013-01-04 08:24:46 -08:00
Kevin Sawicki
6c9dcb8d25
Set line number column to width of max element
2013-01-04 08:24:46 -08:00
Kevin Sawicki
7685b382f6
Move bg/fg colors to root preview-list
2013-01-04 08:24:46 -08:00
Kevin Sawicki
e4bd764a96
Tweak padding, color, and border-radius of match
2013-01-04 08:24:46 -08:00
Kevin Sawicki
b6374184f5
Remove colon after line number
2013-01-04 08:24:46 -08:00
Kevin Sawicki
8adef01850
Use editor colors in command-panel
2013-01-04 08:24:46 -08:00
Kevin Sawicki
c257f91b82
Start line numbers at 1
2013-01-04 08:24:46 -08:00
Kevin Sawicki
41e2fd4db7
Add operation class to mousedown selector
2013-01-04 08:24:46 -08:00
Kevin Sawicki
2d5fed9243
Display line numbers of operations
...
Group operations by path and place path
above operations
2013-01-04 08:24:46 -08:00
Kevin Sawicki
3e8913f518
Be quiet
2013-01-04 08:18:52 -08:00
Kevin Sawicki
b0d38d0ac7
Sync submodules before updating
2013-01-04 08:18:52 -08:00
Kevin Sawicki
b2ec05a2f2
Remove old bundles directory from include paths
2013-01-04 08:18:52 -08:00
Kevin Sawicki
59dced23a0
Update URL of git.tmbundle
...
Contains fix to colorize .gitmodules files
as config files.
2013-01-04 08:18:52 -08:00
Kevin Sawicki
4078046ac6
Vendor textmate bundles as submodules
2013-01-04 08:18:52 -08:00
Nathan Sobo
73b38b6b59
Passivize names remaining events triggered by EditSession
2013-01-03 18:16:19 -07:00
Nathan Sobo
fb6fe04023
Passivize more event names: 'change(d)' & 'screen-lines-change(d)'
2013-01-03 18:16:19 -07:00
Nathan Sobo
5a409dde3c
Rename File and Directory 'contents-change' to 'contents-changed'
2013-01-03 18:16:19 -07:00
Kevin Sawicki
76cda5f872
Delete suffix before prefix
...
This allows the cursor buffer position to only be
obtained once from the editor.
2013-01-03 17:00:35 -08:00
Kevin Sawicki
7b7dccbd79
Only focus editor when no confirming
2013-01-03 16:27:08 -08:00