diff options
| author | Albert Cervin <albert@acervin.com> | 2023-02-02 00:13:53 +0100 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2023-02-02 00:13:53 +0100 |
| commit | f17880d5ec783d600a3f74dff3d30acfc7d1e06c (patch) | |
| tree | 6ff9e80370e88dffdcd56334470e8f8f3388113f /src/main.c | |
| parent | 1cd66cac903151396a7513f8e009f6f654561daf (diff) | |
| download | dged-f17880d5ec783d600a3f74dff3d30acfc7d1e06c.tar.gz dged-f17880d5ec783d600a3f74dff3d30acfc7d1e06c.tar.xz dged-f17880d5ec783d600a3f74dff3d30acfc7d1e06c.zip | |
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.
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, |
