I would like to replace the Tree View Tab title from “Project” to the current Project name.
I found in this discussion that the tab can be accessed something like this: document.querySelector('[data-type="TreeView"]').parentNode
Also I found this from this issue:
atom.packages.onDidActivatePackage (pack) ->
if pack.name == 'project-manager'
atom.packages.getActivePackage('project-manager').mainModule.provideProjects().getProject (project) ->
console.log project
In theory, if I edit my init.coffee
file, I can access the current Project title, but I know nothing about Coffee Script, nor the Atom API.
So if somebody would help me, I would really appreciate.
Thanks in advance