postcasio / custom-title

Set your own template for Atom's title bar.
MIT License
27 stars 14 forks source link

Bust #14

Open oliver-dungey opened 8 years ago

oliver-dungey commented 8 years ago

I installed it. Nothing went wrong. I restarted my editor and there is no full path in the title bar - it's just showing me the project folder like every other day. If I mess with the settings it will show me my git branch but that's not what I want/need. I've read comments on the web from 2014 saying it didn't work back then.

sergiu-paraschiv commented 8 years ago

+1

firejdl commented 8 years ago

This package does not automatically add the file path to the title bar. Nothing in the project says that it does. What it does do is allow you to customize the title. So, if you want the file path added to your title bar, you have to configure the package.

In the package's settings screen, I set the Template to <%= filePath %><% if (projectName) { %> - <%= projectName %><% } %>

And it works great for me. Thanks, @postcasio!

sergiu-paraschiv commented 8 years ago

I set Template to "FOO BAR BAZ" and nothing happened. I also tried stuff like "<%= filePath %>" and nothing happened. No exceptions thrown either. Atom 1.7.3 on Ubuntu 14.04.

adc-gsandell commented 8 years ago

Works after I followed @firejdl 's advice. Would be nice if the documentation explicitly stated that the Examples given are to be typed into the package Settings. Thanks for the package!

firejdl commented 8 years ago

Glad it worked for you, @adc-gsandell!

@sergiu-paraschiv: you might be able to get some debugging information by going to the View menu -> Developer -> Toggle Developer Tools, and clicking into the Console in the developer tools. That would probably help the developer (who is not me, so I won't be much more helpful!)