Skip to content

jolsen71/custom-title

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 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
  • fileInProject
  • 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.

Project and git variables always refer to the first path in your project.

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%