From 1566b6faa8534118c3566188181367cd0868468f Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 9 Nov 2023 23:19:53 +0100 Subject: Added partial matching and introduced threads --- examples/dte/completion.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 examples/dte/completion.h (limited to 'examples/dte/completion.h') 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 -- cgit v1.2.3