action/command: Add optional flag -hsplit & -vsplit to help

This commit is contained in:
Jöran Karl
2024-10-13 12:34:41 +02:00
parent d60413f03c
commit 26f0806915
3 changed files with 51 additions and 12 deletions

View File

@@ -21,10 +21,13 @@ quotes here but these are not necessary when entering the command in micro.
This command will modify `bindings.json` and overwrite any bindings to
`key` that already exist.
* `help ['topic']`: opens the corresponding help topic. If no topic is provided
opens the default help screen. Help topics are stored as `.md` files in the
`runtime/help` directory of the source tree, which is embedded in the final
binary.
* `help ['topic'] ['flags']`: opens the corresponding help topic.
If no topic is provided opens the default help screen.
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)
* `-vsplit`: Opens the help topic in a vertical split
* `save ['filename']`: saves the current buffer. If the file is provided it
will 'save as' the filename.