summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 0765344..b4f512b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -54,6 +54,7 @@ int32_t exit_editor(struct command_ctx ctx, int argc, const char *argv[]) {
static struct command GLOBAL_COMMANDS[] = {
{.name = "find-file", .fn = find_file},
+ {.name = "write-file", .fn = write_file},
{.name = "run-command-interactive", .fn = run_interactive},
{.name = "switch-buffer", .fn = switch_buffer},
{.name = "abort", .fn = _abort},
@@ -116,6 +117,7 @@ int main(int argc, char *argv[]) {
BINDING(Ctrl, 'C', "exit"),
BINDING(Ctrl, 'S', "buffer-write-to-file"),
BINDING(Ctrl, 'F', "find-file"),
+ BINDING(Ctrl, 'W', "write-file"),
BINDING(None, 'b', "switch-buffer"),
};
keymap_bind_keys(&global_keymap, global_binds,