Skip to content

Instantly share code, notes, and snippets.

@rayfranco
Created May 23, 2013 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rayfranco/5637567 to your computer and use it in GitHub Desktop.
Save rayfranco/5637567 to your computer and use it in GitHub Desktop.
Sublime Text 2+ to remove `console` lines in javascript/coffeescript files
import sublime, sublime_plugin
class CopyPathCommand(sublime_plugin.TextCommand):
def run(self, edit):
if len(self.view.file_name()) > 0:
sublime.set_clipboard(self.view.file_name())
sublime.status_message("Copied file path")
def is_enabled(self):
return self.view.file_name() and len(self.view.file_name()) > 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment