Add more tab commands

This commit is contained in:
William Osler 2019-03-04 10:24:18 -08:00
parent 30ad82671b
commit 5116bf6906
3 changed files with 67 additions and 20 deletions

View file

@ -173,6 +173,23 @@ class Ex
tabp: => @tabprevious()
tabrewind: ->
pane = atom.workspace.getActivePane()
pane.activateItemAtIndex(0)
tabr: => @tabrewind()
tabfirst: => @tabrewind()
tabfir: => @tabrewind()
tablast: ->
pane = atom.workspace.getActivePane()
index = pane.getItems().length - 1
pane.activateItemAtIndex(index)
tabl: => @tablast()
tabonly: ->
tabBar = atom.workspace.getPanes()[0]
tabBarElement = atom.views.getView(tabBar).querySelector(".tab-bar")