diff --git a/lib/notational-velocity-view.coffee b/lib/notational-velocity-view.coffee index d47be32..0e0bab6 100644 --- a/lib/notational-velocity-view.coffee +++ b/lib/notational-velocity-view.coffee @@ -115,6 +115,12 @@ class NotationalVelocityView extends SelectListView hide: -> @panel?.hide() + getFilterQuery: -> + editor = @filterEditorView.model + fullText = editor.getText() + selectedText = editor.getSelectedText() + return fullText.substring(0, fullText.length - selectedText.length) + populateList: -> filterQuery = @getFilterQuery() filteredItems = null