Created
March 3, 2016 20:31
-
-
Save evanemolo/86062e359e5977506d04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
import sublime_plugin | |
status_key = 'AlwaysShowFilenameOnStatusBar' | |
class AlwaysShowFilenameOnStatusBar(sublime_plugin.EventListener): | |
def on_activated(self, view): | |
global status_key | |
filePath = view.file_name() | |
if filePath is None: | |
view.set_status(status_key, '') | |
else: | |
view.set_status(status_key, 'File: ' + filePath) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment