Add commands to centre the cursor in copy mode, from m-einfalt at gmx

dot de in GitHub issue 4662.
This commit is contained in:
nicm
2025-10-28 16:36:52 +00:00
parent 9bf8ca5856
commit 0c5abfefd3
3 changed files with 44 additions and 0 deletions

View File

@@ -493,6 +493,8 @@ key_bindings_init(void)
"bind -Tcopy-mode C-b { send -X cursor-left }",
"bind -Tcopy-mode C-g { send -X clear-selection }",
"bind -Tcopy-mode C-k { send -X copy-pipe-end-of-line-and-cancel }",
"bind -Tcopy-mode C-l { send -X cursor-centre-vertical }",
"bind -Tcopy-mode M-l { send -X cursor-centre-horizontal }",
"bind -Tcopy-mode C-n { send -X cursor-down }",
"bind -Tcopy-mode C-p { send -X cursor-up }",
"bind -Tcopy-mode C-r { command-prompt -T search -ip'(search up)' -I'#{pane_search_string}' { send -X search-backward-incremental -- '%%' } }",