summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2023-02-02 00:13:53 +0100
committerAlbert Cervin <albert@acervin.com>2023-02-02 00:13:53 +0100
commitf17880d5ec783d600a3f74dff3d30acfc7d1e06c (patch)
tree6ff9e80370e88dffdcd56334470e8f8f3388113f /src/main.c
parent1cd66cac903151396a7513f8e009f6f654561daf (diff)
downloaddged-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.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,