def open_in_editor
      editor = ENV['CODE_BUDDY_EDITOR'] || ENV['EDITOR']
      case editor
      when 'mate'
        `mate #{path} -l #{line}`
      when /(mvim|emacsclient)/
        `#{$1} +#{line} #{path}`
      when 'netbeans'
        `netbeans #{path}:#{line}`
      else
        puts "Sorry unable to open the file for editing.  Please set your environment variable to either mate or mvim 'export CODE_BUDDY_EDITOR=mate' and restart the server"
      end
    end
def open_in_editor
      editor = ENV['CODE_BUDDY_EDITOR'] || ENV['EDITOR']
      case editor
      when 'mate'
        `mate #{path} -l #{line}`
      when /(mvim|emacsclient)/
        `#{$1} +#{line} #{path}`
      when 'netbeans'
        `netbeans #{path}:#{line}`
      else
        puts "Sorry unable to open the file for editing.  Please set your environment variable to either mate or mvim 'export CODE_BUDDY_EDITOR=mate' and restart the server"
      end
    end
different syntaxes for opening to a line number for different editors