From e139f977b150d526b3403d7996fdc6690dea0932 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 11 Aug 2022 09:11:26 +0000 Subject: vi(1) Home/End bindings, from Markus F X J Oberhumer. --- key-bindings.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'key-bindings.c') diff --git a/key-bindings.c b/key-bindings.c index bcc6004d..6ce9c14c 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -616,6 +616,8 @@ key_bindings_init(void) "bind -Tcopy-mode-vi '{' { send -X previous-paragraph }", "bind -Tcopy-mode-vi '}' { send -X next-paragraph }", "bind -Tcopy-mode-vi % { send -X next-matching-bracket }", + "bind -Tcopy-mode-vi Home { send -X start-of-line }", + "bind -Tcopy-mode-vi End { send -X end-of-line }", "bind -Tcopy-mode-vi MouseDown1Pane { select-pane }", "bind -Tcopy-mode-vi MouseDrag1Pane { select-pane; send -X begin-selection }", "bind -Tcopy-mode-vi MouseDragEnd1Pane { send -X copy-pipe-and-cancel }", -- cgit From 497021d0db40790cc9a98bb1d70ae091d170831e Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 15 Aug 2022 08:41:13 +0000 Subject: Add some const, from Markus F X J Oberhumer. --- key-bindings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'key-bindings.c') diff --git a/key-bindings.c b/key-bindings.c index 6ce9c14c..4b790dfc 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -344,7 +344,7 @@ key_bindings_init_done(__unused struct cmdq_item *item, __unused void *data) void key_bindings_init(void) { - static const char *defaults[] = { + static const char *const defaults[] = { /* Prefix keys. */ "bind -N 'Send the prefix key' C-b { send-prefix }", "bind -N 'Rotate through the panes' C-o { rotate-window }", -- cgit From 416c27c9958e928b9ff845c1701acf5b10d0db8d Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 23 Aug 2022 08:14:19 +0000 Subject: Add scroll-middle copy mode command to make cursor line in the middle, from Varun Kumar E in GitHub issue 3307. --- key-bindings.c | 1 + 1 file changed, 1 insertion(+) (limited to 'key-bindings.c') diff --git a/key-bindings.c b/key-bindings.c index 4b790dfc..528e0b73 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -605,6 +605,7 @@ key_bindings_init(void) "bind -Tcopy-mode-vi h { send -X cursor-left }", "bind -Tcopy-mode-vi j { send -X cursor-down }", "bind -Tcopy-mode-vi k { send -X cursor-up }", + "bind -Tcopy-mode-vi z { send -X scroll-middle }", "bind -Tcopy-mode-vi l { send -X cursor-right }", "bind -Tcopy-mode-vi n { send -X search-again }", "bind -Tcopy-mode-vi o { send -X other-end }", -- cgit