blob: cfebdd2fea62752a289c645db5813a67ea84e113 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef COMMANDS_H
#define COMMANDS_H
#include <stdbool.h>
#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
|