Support opening fuzzy finder to a specific line

Adding a line number after a colon such as ':8' to the end of the fuzzy
filter input field will navigate to line 8 of the opened editor.
This commit is contained in:
Kevin Sawicki
2013-06-06 10:17:15 -07:00
parent e9b8f71997
commit af14f57962
3 changed files with 64 additions and 5 deletions

View File

@@ -79,10 +79,13 @@ class SelectList extends View
@loading.text(message)
@loadingArea.show()
getFilterQuery: ->
@miniEditor.getText()
populateList: ->
return unless @array?
filterQuery = @miniEditor.getText()
filterQuery = @getFilterQuery()
if filterQuery.length
filteredArray = fuzzyFilter(@array, filterQuery, key: @filterKey)
else