Corey Johnson & Nathan Sobo
9d2b005174
When an autocomplete match is clicked, the match is selected and confirmed
2012-04-20 15:41:31 -06:00
Corey Johnson & Nathan Sobo
f0c36ada89
Don't activate autocomplete on its own mini editor
2012-04-20 15:15:55 -06:00
Corey Johnson & Nathan Sobo
41a5f217a5
Scroll to selected match when moving up/down in autocomplete menu
2012-04-20 14:55:54 -06:00
Corey Johnson & Nathan Sobo
1a398ffcb9
Use class instead of id for autocomplete
2012-04-20 14:29:00 -06:00
Corey Johnson & Nathan Sobo
bca7ced632
Editor prevents bubbling on all events it handles
2012-04-20 11:49:24 -07:00
Corey Johnson & Nathan Sobo
34c3bdfe36
Determine autocomplete position before filtering matches
2012-04-20 11:48:33 -07:00
Corey Johnson & Nathan Sobo
caaa517b8b
Load user's .atom config after root view is attached
2012-04-20 11:47:55 -07:00
Corey Johnson & Nathan Sobo
df219f2ad5
Autocomplete.activate enables autocomplete for all current and future editors.
...
Also attach autocomplete view to editor instead of document.body
2012-04-20 11:23:08 -07:00
Corey Johnson & Nathan Sobo
2afb28ee91
Editor returns false when TextInput events are handled
2012-04-20 11:17:40 -07:00
Corey Johnson
aac511deff
💄
2012-04-20 10:38:27 -07:00
Nathan Sobo
f965979fb8
Merge branch 'master' of github.com:github/atom
2012-04-20 11:03:42 -06:00
Nathan Sobo
7b984f3743
Don't throw exception when confirming autocomplete with no matches
2012-04-20 11:03:25 -06:00
Corey Johnson
82864d683a
Removing text from Autocomplete's mini-editor refilters match list
2012-04-20 09:23:19 -07:00
Corey Johnson
01865e07fd
Remove autocomplate:toggle, replace with autocomplete:attach and autocomplete:cancel
2012-04-20 08:41:56 -07:00
Corey Johnson
56a55299be
💄
2012-04-19 18:13:05 -07:00
Corey Johnson
eaf7ee8ec1
Only emit editor-open event once (on first attachment)
2012-04-19 18:12:55 -07:00
Corey Johnson & Nathan Sobo
800f16bb29
Editor emits an editor-open event when attached
2012-04-19 17:56:08 -07:00
Nathan Sobo
0024cf89de
Auto-complete matches can be fuzzy-filtered. Typing non-word characters confirms the match automatically.
...
Extract fuzzyFilter function into a file that is shared between file finder and autocompleter. Fix jQuery.fn.preempt to pass its arguments to the event handler.
2012-04-19 18:17:08 -06:00
Nathan Sobo
cdd824960e
Bind enter and escape on autocomplete menu's mini-editor
2012-04-19 16:47:34 -06:00
Corey Johnson & Nathan Sobo
038b491247
Add 'mini' option to editor, which styles it with auto-height, no gutter, and overflow hidden on scroller
2012-04-19 16:45:57 -06:00
Corey Johnson & Nathan Sobo
6ea9901ef2
Autocomplete uses miniEditor
2012-04-19 14:59:02 -07:00
Corey Johnson & Nathan Sobo
12a150b446
Move cursor to end of completed word on confirm
2012-04-19 12:32:44 -06:00
Corey Johnson & Nathan Sobo
905f91a179
💄
2012-04-19 12:09:45 -06:00
Corey Johnson & Nathan Sobo
66f7373b3d
When insertion of text during autocomplete results in no matches, automatically select current match and insert the inserted text after it
2012-04-19 12:03:47 -06:00
Corey Johnson & Nathan Sobo
16837b67a9
Autocomplete menu is updated when user types additional characters
2012-04-19 11:20:18 -06:00
Corey Johnson & Nathan Sobo
eac6c08fc1
Selection.proto.insertText clears the selection *before* inserting the given text
2012-04-19 11:19:57 -06:00
Corey Johnson & Nathan Sobo
7462222387
Allow calls to startBatch/endBatch to be nested
2012-04-19 11:19:24 -06:00
Corey Johnson & Nathan Sobo
1c8ecb073d
Selection only relocates cursor on text input when it is reversed
2012-04-19 10:34:16 -06:00
Corey Johnson & Nathan Sobo
49b5263fd7
Listen on Editor for bubbled textInput events instead of directly on hidden input
2012-04-19 10:14:45 -06:00
Corey Johnson & Nathan Sobo
d768f1a50f
Autocomplete closes when when cursor position changes
2012-04-18 17:22:52 -07:00
Corey Johnson & Nathan Sobo
317b8ddf05
Fix autocomplete:cancel keybinding
2012-04-18 15:58:36 -07:00
Corey Johnson & Nathan Sobo
5e1d7c774c
Serialized Editor state no longer contains Buffer objects
2012-04-18 15:57:58 -07:00
Corey Johnson & Nathan Sobo
8471977d17
💄
...
Nathan's code pee
2012-04-18 15:56:29 -07:00
Corey Johnson & Nathan Sobo
a8d9d1690e
Autocomplete preempts Editor move-up and move-down events and unsubscribes from Buffer change events when Editor is removed.
2012-04-18 15:56:09 -07:00
Corey Johnson & Nathan Sobo
6037d83f2b
$.fn.preempt takes namespaced event names
2012-04-18 15:53:42 -07:00
Corey Johnson & Nathan Sobo
6a260a8359
Add $.fn.preempt, which runs the given event handler before any others.
2012-04-18 12:13:05 -07:00
Corey Johnson
e58ba6376d
Listen on Editor for autocomplete:cancel events
2012-04-18 11:38:55 -07:00
Corey Johnson
376b9c4217
Autocomplete uses attach/detach
2012-04-18 11:35:58 -07:00
Corey Johnson
6b63d8eb8d
Listen for autocomplete:select on Editor
2012-04-18 11:35:33 -07:00
Corey Johnson
82191a80cb
Listen for autocomplete:select on Editor
2012-04-18 11:34:46 -07:00
Corey Johnson
bd964d8bc0
💄
2012-04-18 11:33:45 -07:00
Corey Johnson
bee683245b
move-up, move-down change selection in autocomplete
2012-04-18 10:23:15 -07:00
Nathan Sobo
34d41032d4
Merge branch 'master' of github.com:github/atom
2012-04-18 11:09:42 -06:00
Nathan Sobo
e89a2255cf
Tear down editors and unsubscribe from buffers on window unload to prevent exceptions when typing after reload
2012-04-18 11:01:30 -06:00
Nathan Sobo
b5e2beab96
💄
2012-04-18 10:56:54 -06:00
Corey Johnson
594496f1a6
Fix broken specs
2012-04-17 17:44:19 -07:00
Corey Johnson
9ac72d7fba
non-working version of autocomplete focusing
2012-04-17 17:37:20 -07:00
Corey Johnson
904c05660d
Add move-down event to Autocomplete
2012-04-17 17:37:19 -07:00
Corey Johnson
f8fd7251e4
Add 'move-down' event to autocomplete
2012-04-17 17:37:19 -07:00
Corey Johnson
5e5c835aff
💄
2012-04-17 17:37:19 -07:00