Add autocomplete:next/previous events

This commit is contained in:
Mutwin Kraus
2013-04-03 18:57:01 +02:00
parent 2cda2b9fe2
commit abce3d7f9b

View File

@@ -27,6 +27,8 @@ class AutocompleteView extends SelectList
handleEvents: ->
@editor.on 'editor:path-changed', => @setCurrentBuffer(@editor.getBuffer())
@editor.command 'autocomplete:attach', => @attach()
@editor.command 'autocomplete:next', => @selectNextItem()
@editor.command 'autocomplete:previous', => @selectPreviousItem()
@miniEditor.preempt 'textInput', (e) =>
text = e.originalEvent.data