From 6d39f66eb7c0cafb9e12be7da6831598c6dd4afb Mon Sep 17 00:00:00 2001 From: Adrian fxj9a Date: Mon, 3 Mar 2025 14:27:30 +0100 Subject: config: add search-bindings.delete-to-{start,end} key bindings Defaults to ctrl+u and ctrl+k respectively. Closes #1972 --- doc/foot.1.scd | 6 ++++++ doc/foot.ini.5.scd | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'doc') diff --git a/doc/foot.1.scd b/doc/foot.1.scd index fad44f19..f868c12c 100644 --- a/doc/foot.1.scd +++ b/doc/foot.1.scd @@ -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* diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd index 56004654..c55419d1 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -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_. -- cgit v1.3