config: add search-bindings.delete-to-{start,end} key bindings

Defaults to ctrl+u and ctrl+k respectively.

Closes #1972
This commit is contained in:
Adrian fxj9a 2025-03-03 14:27:30 +01:00 committed by Daniel Eklöf
parent 9e6d334bd8
commit 6d39f66eb7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 47 additions and 0 deletions

View file

@ -301,6 +301,12 @@ These shortcuts affect the search box in scrollback-search mode:
*alt*+*delete*, *ctrl*+*delete*
Deletes the **word after** the cursor.
*ctrl*+*u*
Deletes from the cursor to the start of the input
*ctrl*+*k*
Deletes from the cursor to the end of the input
These shortcuts affect scrolling in scrollback-search mode:
*shift*+*page-up*

View file

@ -1401,6 +1401,12 @@ scrollback search mode. The syntax is exactly the same as the regular
Deletes the **word after** the cursor. Default: _Mod1+d
Control+Delete_.
*delete-to-start*
Deletes search input before the cursor. Default: _Ctrl+u_.
*delete-to-end*
Deletes search input after the cursor. Default: _Ctrl+k_.
*extend-char*
Extend current selection to the right, by one character. Default:
_Shift+Right_.