Home Download Buy Blog Forum Support

ST3 sublime_plugin.textCommand.run / self.view.file_name()

ST3 sublime_plugin.textCommand.run / self.view.file_name()

Postby eigenrick on Fri Mar 08, 2013 4:19 pm

self.view.file_name in ST3 returns the name of the plugin file, not the name of the file currently being edited. In ST2, it returns the name of the file being edited.

What is the correct var/method to get the current file being edited when a plugin function is called?
Posts: 1
Joined: Fri Mar 08, 2013 4:17 pm

Return to Technical Support

Who is online

Users browsing this forum: Alexa [Bot], Exabot [Bot], Google [Bot] and 17 guests