Sha256: 62bc5f34168658bef4fea209d99affa83f1cb2462c6c56be2c65bce26d9945a1
Contents?: true
Size: 510 Bytes
Versions: 7
Compression:
Stored size: 510 Bytes
Contents
module Output class Textmate def initialize(grepmate) @grepmate = grepmate end def process print "Found #{@grepmate.results.size} matches. " if @grepmate.results.size > 20 puts "Display? [Y/n]..." exit if $stdin.gets.chomp.downcase == 'n' else puts '' end @grepmate.results.each { |f| file, line = f.split(':') system("mate #{'-w ' if @grepmate.params['wait'].value}-l #{line} #{file}") } end end end
Version data entries
7 entries across 7 versions & 2 rubygems