From f17880d5ec783d600a3f74dff3d30acfc7d1e06c Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Thu, 2 Feb 2023 00:13:53 +0100 Subject: Add kill-ring pasting M-y can cycle through earlier cut/copies. Also fix minibuffer tokenization error and error when deleting text. Vertical scrolling also works as it should now. --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.c') 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, -- cgit v1.2.3