Sublime Forum

Showing hostname in title bar

#1

I haven’t found any obvious way (on my own or via a theme or plugin) to show the running hostname in the title bar of sublime 3. This is really helpful to me as I’m a developer and sysadmin and often have 2-3 instances of sublime running over X11.

Any ideas on what is possible here aside from a feature request?

Thanks

0 Likes

#2

create <...>/Packages/User/pl_hostname.py with the following content

import sublime_plugin
import platform


class StatusBarHostname(sublime_plugin.EventListener):
    def on_activated(self, view):
        view.set_status('node', platform.node())
0 Likes