Commit Graph

22 Commits

Author SHA1 Message Date
Kevin Sawicki
79ae6a4895 Clear mini editor base select list cancelled()
Clearing the mini editor when closing is something
all sub-classes were already doing so it makes sense
to pull it up to the base class as the default
cancelled() implementation that can still be overridden
if needed.
2013-01-23 09:40:05 -08:00
Kevin Sawicki
56badd450a Clear left margin on autocomplete 2013-01-22 21:04:53 -08:00
Kevin Sawicki
72b67bc879 Ensure package stylesheets are loaded in autocomplete spec 2013-01-22 21:03:54 -08:00
Kevin Sawicki
ca596db310 Extend AtomPackage directly in packages index.coffee 2013-01-22 18:26:48 -08:00
Jon Rohan
260cacdacf autocomplete.css refactor 2013-01-21 18:44:18 -08:00
Jon Rohan
20e5b303a7 refactoring all the stylesheets into /Atom - Dark/
Conflicts:
	.atom/themes/Atom - Dark/vim-mode.css
2013-01-17 22:11:45 -08:00
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