Commit Graph

12 Commits

Author SHA1 Message Date
Corey Johnson
958bc2bfab Moved atom.loadPackage to a spec-only helper function 2013-02-13 16:37:59 -08:00
Corey Johnson & Kevin Sawicki
e12461db88 Create root view before loading package 2013-02-08 17:28:05 -08:00
Corey Johnson
f24bfab5e5 Modernized autocomplete package 2013-02-08 17:28:04 -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
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
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
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
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