Class: CommandT::Finder::CommandFinder

Inherits:
CommandT::Finder show all
Defined in:
lib/command-t/finder/command_finder.rb

Instance Method Summary collapse

Methods inherited from CommandT::Finder

#path=, #sorted_matches_for

Constructor Details

#initialize(options = {}) ⇒ CommandFinder

Returns a new instance of CommandFinder.



7
8
9
10
# File 'lib/command-t/finder/command_finder.rb', line 7

def initialize(options = {})
  @scanner = Scanner::CommandScanner.new
  @matcher = Matcher.new @scanner, :always_show_dot_files => true
end

Instance Method Details

#flushObject



16
# File 'lib/command-t/finder/command_finder.rb', line 16

def flush; end

#nameObject



18
19
20
# File 'lib/command-t/finder/command_finder.rb', line 18

def name
  'Commands'
end

#open_selection(command, selection, options = {}) ⇒ Object



12
13
14
# File 'lib/command-t/finder/command_finder.rb', line 12

def open_selection(command, selection, options = {})
  ::VIM::command "call feedkeys(':#{selection} ', 'nt')"
end