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/commands.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 examples/dte/commands.h (limited to 'examples/dte/commands.h') diff --git a/examples/dte/commands.h b/examples/dte/commands.h new file mode 100644 index 0000000..cfebdd2 --- /dev/null +++ b/examples/dte/commands.h @@ -0,0 +1,22 @@ +#ifndef COMMANDS_H +#define COMMANDS_H + +#include +#include "command/run.h" +#include "config.h" +#include "util/macros.h" +#include "util/ptr-array.h" +#include "util/string-view.h" + +extern const CommandSet normal_commands; + +struct EditorState; + +const Command *find_normal_command(const char *name) NONNULL_ARGS; +const char *find_normal_alias(const char *name, void *userdata) NONNULL_ARGS; +bool handle_normal_command(struct EditorState *e, const char *cmd, bool allow_recording) NONNULL_ARGS; +void exec_normal_config(struct EditorState *e, StringView config) NONNULL_ARGS; +int read_normal_config(struct EditorState *e, const char *filename, ConfigFlags flags) NONNULL_ARGS; +void collect_normal_commands(PointerArray *a, const char *prefix) NONNULL_ARGS; + +#endif -- cgit v1.2.3