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


#1

Hello,

I want to edit the title in the title bar of Atom (the text that for example, says “init.coffee - ~/.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.

Thanks.


#2

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.


#3

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


#4

Like I said, I don’t know.