How do I edit the Title in Atom's Title Bar through the Init Script?



I want to edit the title in the title bar of Atom (the text that for example, says “ - ~/.atom”) via the init script. I tried doing document.title = "Title" however, when I reload the window, I see the new custom title for a less than a second, before it is overridden by the default title.

Any help would be much appreciated.



The title is likely being refreshed constantly, to keep up with changes in the editor. I’m not sure how you’d go about changing it, and the API documentation isn’t being helpful.


@DamnedScholar Could I possibly edit the title via the Stylesheet then? I just want a hard-coded title, nothing fancy.


Like I said, I don’t know.