tab commands (fixes #13)

This commit is contained in:
Loic Nageleisen 2015-02-23 12:03:27 +01:00
parent 838b43ffcd
commit 76014791ef

View file

@ -18,6 +18,25 @@ class Ex
tabe: (filePaths...) => tabe: (filePaths...) =>
@tabedit(filePaths...) @tabedit(filePaths...)
tabnew: (filePaths...) =>
@tabedit(filePaths...)
tabclose: => @quit()
tabc: => @tabclose()
tabnext: ->
pane = atom.workspace.getActivePane()
pane.activateNextItem()
tabn: => @tabnext()
tabprevious: ->
pane = atom.workspace.getActivePane()
pane.activatePreviousItem()
tabp: => @tabprevious()
write: (filePath) => write: (filePath) =>
projectPath = atom.project.getPath() projectPath = atom.project.getPath()
pane = atom.workspace.getActivePane() pane = atom.workspace.getActivePane()