Class: CommandT::Scanner::JumpScanner

Inherits:
CommandT::Scanner show all
Includes:
PathUtilities
Defined in:
lib/command-t/scanner/jump_scanner.rb

Overview

Returns a list of files in the jumplist.

Instance Method Summary collapse

Instance Method Details

#pathsObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/command-t/scanner/jump_scanner.rb', line 10

def paths
  jumps_with_filename = jumps.lines.select do |line|
    line_contains_filename?(line)
  end
  filenames = jumps_with_filename[1..-2].map do |line|
    relative_path_under_working_directory line.split[3]
  end

  filenames.sort.uniq
end