config/settings: Add option helpsplit for permanent help split type

For downward compatibility the default split type for the `help` command
is set to be `hsplit`.
This commit is contained in:
Jöran Karl
2024-10-15 06:19:07 +02:00
parent ff4c5c83f2
commit 47b84f75e1
5 changed files with 17 additions and 4 deletions

View File

@@ -27,9 +27,11 @@ quotes here but these are not necessary when entering the command in micro.
Help topics are stored as `.md` files in the `runtime/help` directory of
the source tree, which is embedded in the final binary.
The `flags` are optional.
* `-hsplit`: Opens the help topic in a horizontal split (default for initial split)
* `-hsplit`: Opens the help topic in a horizontal split
* `-vsplit`: Opens the help topic in a vertical split
The default split type is defined by the global `helpsplit` option.
* `save ['filename']`: saves the current buffer. If the file is provided it
will 'save as' the filename.

View File

@@ -172,6 +172,13 @@ Here are the available options:
default value: `unknown`. This will be automatically overridden depending
on the file you open.
* `helpsplit`: sets the split type to be used by the `help` command.
Possible values:
* `vsplit`: open help in a vertical split pane
* `hsplit`: open help in a horizontal split pane
default value: `hsplit`
* `hlsearch`: highlight all instances of the searched text after a successful
search. This highlighting can be temporarily turned off via the
`UnhighlightSearch` action (triggered by the Esc key by default) or toggled