diff --git a/internal/action/command.go b/internal/action/command.go index b5b9794f..cd8c81a1 100644 --- a/internal/action/command.go +++ b/internal/action/command.go @@ -546,7 +546,8 @@ func (h *BufPane) EvalCmd(args []string) { InfoBar.Error("Eval unsupported") } -// NewTabCmd opens the given file in a new tab +// NewTabCmd opens one or more tabs with the files given as arguments +// If no file is given, it opens an empty buffer in a new tab func (h *BufPane) NewTabCmd(args []string) { width, height := screen.Screen.Size() iOffset := config.GetInfoBarOffset() diff --git a/runtime/help/commands.md b/runtime/help/commands.md index c406d740..b1cd98dd 100644 --- a/runtime/help/commands.md +++ b/runtime/help/commands.md @@ -82,7 +82,9 @@ quotes here but these are not necessary when entering the command in micro. * `hsplit ['filename']`: same as `vsplit` but opens a horizontal split instead of a vertical split. -* `tab ['filename']`: opens the given file in a new tab. +* `tab ['filename']`: opens the given file in a new tab. If no filename + is provided, a tab is opened with an empty buffer. If multiple files are + provided (separated via ` `) they are opened all as tabs. * `tabmove '[-+]n'`: Moves the active tab to another slot. `n` is an integer. If `n` is prefixed with `-` or `+`, then it represents a relative position