Skip to content

Instantly share code, notes, and snippets.

@evanemolo
Created March 3, 2016 20:31
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 evanemolo/86062e359e5977506d04 to your computer and use it in GitHub Desktop.
Save evanemolo/86062e359e5977506d04 to your computer and use it in GitHub Desktop.
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