File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,14 @@ cliCmds[":"].commands = {
208208 tablast : function ( ) {
209209 tabbehaviors . cycleTab ( "last" ) ;
210210 } ,
211+ tabnew : function ( editor , data ) {
212+ path = data . argv [ 1 ] ;
213+ if ( ! path ) {
214+ commands . exec ( "newfile" ) ;
215+ } else {
216+ cliCmds [ ":" ] . commands . e ( editor , data ) ;
217+ }
218+ } ,
211219 tabclose : "closetab" ,
212220 tabmove : function ( editor , data ) {
213221 // todo
@@ -219,7 +227,6 @@ cliCmds[":"].commands = {
219227cliCmds [ ":" ] . commands . write = cliCmds [ ":" ] . commands . w ;
220228cliCmds [ ":" ] . commands . tabn = cliCmds [ ":" ] . commands . tabNext ;
221229cliCmds [ ":" ] . commands . tabp = cliCmds [ ":" ] . commands . tabPrevious ;
222- cliCmds [ ":" ] . commands . tabnew = cliCmds [ ":" ] . commands . e ;
223230cliCmds [ ":" ] . commands . tabc = cliCmds [ ":" ] . commands . tabclose ;
224231
225232cliCmds [ ":" ] . commands . set = {
You can’t perform that action at this time.
0 commit comments