This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # place this snippet into init.coffee in ~/.atom directory | |
| atom.workspace.observeTextEditors (editor) -> | |
| if editor.getTitle() isnt "untitled" | |
| sp = editor.getPath().split('/') | |
| title = sp.slice(sp.length-2).join('/') | |
| editor.getTitle = -> title | |
| editor.getLongTitle = -> title | |
| for item in atom.workspace.getPaneItems() |