Commit Graph

16 Commits

Author SHA1 Message Date
Kevin Sawicki
fc8fb73176 Use RootView.eachEditor from Autocomplete package 2013-01-12 18:03:16 -08: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
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
0589012e86 Rename 'editor-path-change' to 'editor:path-changed' 2013-01-04 11:25:45 -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
Kevin Sawicki
7f0030ef4f Move package CSS files to stylesheets directory 2013-01-02 16:55:55 -08:00
Kevin Sawicki & Nathan Sobo
bcde77dd0e Load keymaps from cson
All existing .coffee keymaps are now .cson and package
keymaps are now located in a keymaps folder at the root of
the package.
2013-01-02 16:10:46 -08:00
Kevin Sawicki
8a10c48ad2 Update autocomplete position when populating list
Previously if the list was displayed above the cursor
position and the list was filtered to decrease in size
it would be displayed several rows above the cursor as
it shrinks.

Now the position is updated each time the list is populated
so it will always use the latest height when calculating
the position in the editor to place the select list at.
2013-01-02 11:35:53 -08:00
Nathan Sobo
b3b5e63fa9 Remove unnecessary unsubscribe from buffer in autocomplete
It no longer subscribes to the buffer, so unsubscribe isn't needed.
2013-01-02 04:51:50 -07:00
Kevin Sawicki
99ec611b98 Restore prefix when cancelling an autocomplete
Undo all operations that were performed during an
autocomplete session and only retain the confirmed
operation.

Previously the undo stack would fill with all the
selections made before confirmation and the prefix
was restored to its original text when the operation
was cancelled.
2012-12-28 14:49:23 -08:00
Kevin Sawicki
61be7669da Remove unused requires 2012-12-28 13:59:37 -08:00
Kevin Sawicki
acf5aeb884 Cancel select list when an empty selection is confirmed 2012-12-28 13:49:13 -08:00
Kevin Sawicki
0ac47f8ec0 Use select list in autocomplete package 2012-12-28 13:24:31 -08:00
Kevin Sawicki
7cce042f03 Change case of prefix and suffix to matched word
Previously an inserted automcomplete match would not
update the case of the prefix or suffix of the match
and instead only insert the text from the matched word
between the prefix and suffix.

Now the entire matched word is inserted as-is replacing
the existing prefix and suffix.
2012-12-26 15:09:07 -08:00
Nathan Sobo
4ce8583cb2 Rename extensions to packages
We now look at the `core.disabledPackages` config key. Rename the `src/extensions` directory to `src/packages`. The config object now talks about loading packages instead of extensions.
2012-12-18 20:03:21 -07:00