Merge branch 'master' of https://github.com/caiocutrim/ex-mode into caiocutrim-master
This commit is contained in:
commit
d6afe394ef
1 changed files with 24 additions and 2 deletions
|
|
@ -112,8 +112,13 @@ class Ex
|
|||
quit: ->
|
||||
atom.workspace.getActivePane().destroyActiveItem()
|
||||
|
||||
quitall: ->
|
||||
atom.workspace.getPanes()[0].destroy()
|
||||
|
||||
q: => @quit()
|
||||
|
||||
qa: => @quitall()
|
||||
|
||||
tabedit: (args) =>
|
||||
if args.args.trim() isnt ''
|
||||
@edit(args)
|
||||
|
|
@ -216,20 +221,37 @@ class Ex
|
|||
|
||||
deferred.promise
|
||||
|
||||
wall: ->
|
||||
atom.workspace.saveAll()
|
||||
|
||||
w: (args) =>
|
||||
@write(args)
|
||||
|
||||
wq: (args) =>
|
||||
@write(args).then => @quit()
|
||||
|
||||
wa: =>
|
||||
@wall()
|
||||
|
||||
wqall: =>
|
||||
atom.workspace.saveAll()
|
||||
@quitall()
|
||||
|
||||
wqa: =>
|
||||
@wqall()
|
||||
|
||||
xall: =>
|
||||
@wqall()
|
||||
|
||||
xa: =>
|
||||
@wqall()
|
||||
|
||||
saveas: (args) =>
|
||||
args.saveas = true
|
||||
@write(args)
|
||||
|
||||
xit: (args) => @wq(args)
|
||||
|
||||
wa: ->
|
||||
atom.workspace.saveAll()
|
||||
|
||||
split: ({ range, args }) ->
|
||||
args = args.trim()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue