Class: CommandT::Finder::LineFinder
Instance Method Summary
collapse
#path=, #sorted_matches_for
Constructor Details
#initialize(options = {}) ⇒ LineFinder
Returns a new instance of LineFinder.
7
8
9
10
|
# File 'lib/command-t/finder/line_finder.rb', line 7
def initialize(options = {})
@scanner = Scanner::LineScanner.new
@matcher = Matcher.new @scanner, :always_show_dot_files => true
end
|
Instance Method Details
#flush ⇒ Object
16
|
# File 'lib/command-t/finder/line_finder.rb', line 16
def flush; end
|
#name ⇒ Object
18
19
20
|
# File 'lib/command-t/finder/line_finder.rb', line 18
def name
'Lines'
end
|
#open_selection(command, selection, options = {}) ⇒ Object
12
13
14
|
# File 'lib/command-t/finder/line_finder.rb', line 12
def open_selection(command, selection, options = {})
::VIM::command "#{selection.sub(/.+:(\d+)$/, '\1')}"
end
|