Class: CommandT::Finder::TagFinder
Instance Method Summary
collapse
#path=, #sorted_matches_for
Constructor Details
#initialize(options = {}) ⇒ TagFinder
Returns a new instance of TagFinder.
7
8
9
10
|
# File 'lib/command-t/finder/tag_finder.rb', line 7
def initialize(options = {})
@scanner = Scanner::TagScanner.new options
@matcher = Matcher.new @scanner, :always_show_dot_files => true
end
|
Instance Method Details
#flush ⇒ Object
28
29
30
|
# File 'lib/command-t/finder/tag_finder.rb', line 28
def flush
@scanner.flush
end
|
#name ⇒ Object
32
33
34
|
# File 'lib/command-t/finder/tag_finder.rb', line 32
def name
'Tags'
end
|
#open_selection(command, selection, options = {}) ⇒ Object
12
13
14
15
16
17
18
19
|
# File 'lib/command-t/finder/tag_finder.rb', line 12
def open_selection(command, selection, options = {})
if @scanner.include_filenames
selection = selection[0, selection.index(':')]
end
::VIM::command "silent! tag #{selection} | :normal zz"
end
|
#prepare_selection(selection) ⇒ Object
21
22
23
24
25
26
|
# File 'lib/command-t/finder/tag_finder.rb', line 21
def prepare_selection(selection)
selection
end
|