File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,8 @@ func (h *BufPane) EvalCmd(args []string) {
546546 InfoBar .Error ("Eval unsupported" )
547547}
548548
549- // NewTabCmd opens the given file in a new tab
549+ // NewTabCmd opens one or more tabs with the files given as arguments
550+ // If no file is given, it opens an empty buffer in a new tab
550551func (h * BufPane ) NewTabCmd (args []string ) {
551552 width , height := screen .Screen .Size ()
552553 iOffset := config .GetInfoBarOffset ()
Original file line number Diff line number Diff line change @@ -82,7 +82,9 @@ quotes here but these are not necessary when entering the command in micro.
8282* ` hsplit ['filename'] ` : same as ` vsplit ` but opens a horizontal split instead
8383 of a vertical split.
8484
85- * ` tab ['filename'] ` : opens the given file in a new tab.
85+ * ` tab ['filename'] ` : opens the given file in a new tab. If no filename
86+ is provided, a tab is opened with an empty buffer. If multiple files are
87+ provided (separated via ` ` ) they are opened all as tabs.
8688
8789* ` tabmove '[-+]n' ` : Moves the active tab to another slot. ` n ` is an integer.
8890 If ` n ` is prefixed with ` - ` or ` + ` , then it represents a relative position
You can’t perform that action at this time.
0 commit comments