diff --git a/lib/ex.coffee b/lib/ex.coffee index ca0ca0e..1927bb0 100644 --- a/lib/ex.coffee +++ b/lib/ex.coffee @@ -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()