cleanup
This commit is contained in:
parent
dd42115c42
commit
d2bf0c5502
1 changed files with 4 additions and 7 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue