diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-11-09 23:19:53 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-11-09 23:19:53 +0100 |
| commit | 1566b6faa8534118c3566188181367cd0868468f (patch) | |
| tree | 1de8d4b369efb5e592685a31088f798a6b63ffa1 /examples/dte/completion.h | |
| parent | 349991bf6efe473ab9a5cbdae0a8114d72b997e3 (diff) | |
| download | crep-1566b6faa8534118c3566188181367cd0868468f.tar.gz | |
Added partial matching and introduced threads
Diffstat (limited to 'examples/dte/completion.h')
| -rw-r--r-- | examples/dte/completion.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/dte/completion.h b/examples/dte/completion.h new file mode 100644 index 0000000..873e994 --- /dev/null +++ b/examples/dte/completion.h @@ -0,0 +1,21 @@ +#ifndef COMPLETION_H +#define COMPLETION_H + +#include "cmdline.h" +#include "editor.h" +#include "util/hashmap.h" +#include "util/macros.h" +#include "util/ptr-array.h" + +void complete_command_next(EditorState *e) NONNULL_ARGS; +void complete_command_prev(EditorState *e) NONNULL_ARGS; +void reset_completion(CommandLine *cmdline) NONNULL_ARGS; + +void collect_env(EditorState *e, PointerArray *a, const char *prefix) NONNULL_ARGS; +void collect_normal_aliases(EditorState *e, PointerArray *a, const char *prefix) NONNULL_ARGS; +void collect_bound_normal_keys(EditorState *e, PointerArray *a, const char *keystr_prefix) NONNULL_ARGS; +void collect_hl_colors(EditorState *e, PointerArray *a, const char *prefix) NONNULL_ARGS; +void collect_compilers(EditorState *e, PointerArray *a, const char *prefix) NONNULL_ARGS; +void collect_hashmap_keys(const HashMap *map, PointerArray *a, const char *prefix) NONNULL_ARGS; + +#endif |
