pub const COMMAND_LIST: &str = "# Basic editing commands:\n\n- `a/i` Insert lines after/before index.\n- `d` Cut lines into clipboard.\n- `y` Copy lines into clipboard.\n- `x/X` Paste clipboard after/before index.\n- `j` Join selection into one line.\n\n# Combined editing commands:\n\n- `A/I` As `a`/`i` but join first/last line with indexed line.\n- `c` Replace selection with input. Like `d` and `i`.\n- `C` As `c` but with selection as initial input.\n- `m` Move selection to index. Like `d` and `x`.\n- `t` Copy selection to index. Like `y` and `x`.\n\n# File and shell commands:\n\n- `e` Open given file.\n- `r` Read from given file to given index.\n- `w` Write to given file.\n- `W` Append to given file.\n- `|` Pipe data through given command.\n- `!` Run given shell command.\n\n# Batch editing commands:\n\n- `s` Search and replace\n- `g/v` Run commands on matching/not-matching lines.\n- `G/V` Interactively run commands on matching/not-matching lines.\n- `:` Run macro.\n\n# Status commands:\n\n- `help` Print this help section.\n- `Help` Print commands documentation.\n- `q` Quit the editor, warns on unsaved changes.\n- `Q` Quit ignoring unsaved changes.\n- `h` Print last occured error.\n- `H` Toggle printing error or `?` on error.\n- `=` Print current selection.\n- `#` Do nothing (start of comment)\n- `f` Print default file, or replace if one given.\n";
Expand description
Help text, generally printed when “help” is entered as a command.