Skip to content

ChaoticMind/custom-title

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

custom-title package

Set your own template for Atom's title bar. Uses underscore.js templates.

The following variables are available:

  • projectPath
  • projectName
  • filePath
  • relativeFilePath
  • fileName
  • gitHead
  • gitAdded
  • gitDeleted
  • devMode
  • safeMode (always false, since the package will not be loaded in safe mode!)

Plus the atom global, as usual.

Examples

Default

The default template matches the regular Atom titlebar:

<%= fileName %><% if (projectPath) { %> - <%= projectPath %><% } %>

With Atom version

<%= fileName %><% if (projectPath) { %> - <%= projectPath %><% } %> - Atom <%= atom.getVersion() %>

With the current git branch

<%= fileName %><% if (projectPath) { %> - <%= projectPath %><% if (gitHead) { %> [<%= gitHead %>]<% } %><% } %>

About

Set your own template for Atom's title bar.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 100.0%