From 76014791ef1f98af427291b71152c456fc638278 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 23 Feb 2015 12:03:27 +0100 Subject: [PATCH] tab commands (fixes #13) --- lib/ex.coffee | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/ex.coffee b/lib/ex.coffee index 01560ee..4e2224e 100644 --- a/lib/ex.coffee +++ b/lib/ex.coffee @@ -18,6 +18,25 @@ class Ex tabe: (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) => projectPath = atom.project.getPath() pane = atom.workspace.getActivePane()