I apologize, i'm a super noob, to create this plugin in ST2 I would go to Tools > New Plugin, then I would select all and paste this code:
- Code: Select all
import sublime, sublime_plugin
url = self.view.file_name()
Then I would save it under the default User folder it opens when I press ctrl-S.
After that, how would I launch it with a keyboard shortcut, again, i apologize for my noobness.