This commit is contained in:
Loic Nageleisen 2015-02-23 12:09:55 +01:00
parent dd42115c42
commit d2bf0c5502

View file

@ -4,8 +4,7 @@ class Ex
quit: -> quit: ->
atom.workspace.getActivePane().destroyActiveItem() atom.workspace.getActivePane().destroyActiveItem()
q: => q: => @quit()
@quit()
tabedit: (filePaths...) -> tabedit: (filePaths...) ->
pane = atom.workspace.getActivePane() pane = atom.workspace.getActivePane()
@ -15,11 +14,9 @@ class Ex
else else
atom.workspace.openURIInPane('', pane) atom.workspace.openURIInPane('', pane)
tabe: (filePaths...) => tabe: (filePaths...) => @tabedit(filePaths...)
@tabedit(filePaths...)
tabnew: (filePaths...) => tabnew: (filePaths...) => @tabedit(filePaths...)
@tabedit(filePaths...)
tabclose: => @quit() tabclose: => @quit()
@ -43,7 +40,7 @@ class Ex
enew: => @edit() enew: => @edit()
write: (filePath) => write: (filePath) ->
projectPath = atom.project.getPath() projectPath = atom.project.getPath()
pane = atom.workspace.getActivePane() pane = atom.workspace.getActivePane()
editor = atom.workspace.getActiveEditor() editor = atom.workspace.getActiveEditor()