Skip to content

Instantly share code, notes, and snippets.

View iliojunior's full-sized avatar

Ilio Adriano de Oliveira Junior iliojunior

  • MATERA Systems
  • Maringá - PR, Brazil
View GitHub Profile
@tribou
tribou / init.coffee
Created September 17, 2017 22:02
Customize Atom tab titles to display folder and file name
# Add folder and filename to tab title
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
editor.emitter.emit "did-change-title", editor.getTitle()
atom.workspace.onDidOpen (event) ->