def edit(snippet)
      if editor && !editor.empty?
        snippet_file = file_for(snippet)
        Process.exec "#{editor} '#{snippet_file}'"
      end
    end
def edit(snippet)
      if editor && !editor.empty?
        snippet_file = file_for(snippet)
        Process.exec "#{editor} '#{snippet_file}'"
      end
    end
Internal: Opens the preferred text editor with the content of a snippet.

 snippet - a string with the snippet content that should be edited.