Skip to content

Commit

Permalink
runtime/help: Align tab's documentation to vsplit
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKar committed Oct 20, 2024
1 parent acabf2b commit ff4c5c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/action/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 3 additions & 1 deletion runtime/help/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff4c5c8

Please sign in to comment.