Skip to content

Commit ff4c5c8

Browse files
committed
runtime/help: Align tab's documentation to vsplit
1 parent acabf2b commit ff4c5c8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

internal/action/command.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
550551
func (h *BufPane) NewTabCmd(args []string) {
551552
width, height := screen.Screen.Size()
552553
iOffset := config.GetInfoBarOffset()

runtime/help/commands.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)