class VimRecovery::Command::List

Public Instance Methods

run() click to toggle source
# File lib/vim_recovery/command/list.rb, line 3
def run
  each_swapfile do |swapfile|
    puts "[%s%s]\t%s\t%s" % [
      swapfile.modified?      ? 'M' : ' ',
      swapfile.still_running? ? 'R' : ' ',
      swapfile.path,
      swapfile.original_filename
    ]
  end
end