diff options
| author | Max Schillinger <maxschillinger@web.de> | 2024-03-18 10:08:40 +0100 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-11-28 07:41:12 -0700 |
| commit | 3f1c3ee80e46f80d7f1642009c4f9dffa404d935 (patch) | |
| tree | 08e3ab9011bcb4396ffca5f51d20c079d44da901 /vis.h | |
| parent | 12fc09a442939d0af09d700c7a8074cca9b1694e (diff) | |
| download | vis-3f1c3ee80e46f80d7f1642009c4f9dffa404d935.tar.gz vis-3f1c3ee80e46f80d7f1642009c4f9dffa404d935.tar.xz | |
Add command completion with tab key
In the command prompt, press <tab> to get a list of all available
commands and pick one (using vis-menu). This works also after typing the
first letters of a command (p.e. `:la<tab>`).
Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
Diffstat (limited to 'vis.h')
| -rw-r--r-- | vis.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -14,6 +14,7 @@ typedef struct Win Win; #include "text-regex.h" #include "libutf.h" #include "array.h" +#include "buffer.h" #ifndef CONFIG_HELP #define CONFIG_HELP 1 @@ -1230,6 +1231,13 @@ bool vis_option_unregister(Vis *vis, const char *name); bool vis_prompt_cmd(Vis *vis, const char *cmd); /** + * Write newline separated list of available commands to ``buf`` + * @param vis The editor instance. + * @param buf The buffer to write to. + */ +void vis_print_cmds(Vis*, Buffer *buf); + +/** * Pipe a given file range to an external process. * @param vis The editor instance. * @param file The file to pipe. |
