Sublime Forum

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

#1

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?

0 Likes