fish_clipboard_paste: don't bypass pager search field.

To do so add an ad-hoc "commandline --search-field" to operate on pager
search field.

This is primarily motivated because a following commit reuses the
fish_clipboard_paste logic for bracketed paste. This avoids a regression.
This commit is contained in:
Johannes Altmanninger
2024-03-30 16:10:12 +01:00
parent d0cdb142de
commit 22717339b4
5 changed files with 95 additions and 19 deletions

View File

@@ -70,6 +70,9 @@ The following options change what part of the commandline is printed or updated:
**-t** or **--current-token**
Selects the current token
**--search-field**
Use the pager search field instead of the command line. Returns false is the search field is not shown.
The following options change the way ``commandline`` prints the current commandline buffer:
**-c** or **--cut-at-cursor**