fish-shell/doc_src
Johannes Altmanninger dcff0a2f2b Add Control+R incremental history search in pager
This reimplements ridiculousfish/control_r which is a more future-proof
approach than #6686.
Pressing Control+R shows history in our pager and allows to search filter
commands with the pager search field.

On the surface, this works just like in other shells; though there are
some differences.

- Our pager shows multiple results at a time.
- Other shells allow to use up arrow/down arrow to select adjacent entries
  in history. Shouldn't be hard to implement but the hidden state might
  confuse users and it doesn't play well with up-or-search, so this is
  left out.

Users might expect the history pager to use subsequence matching (fuzzy
matching) like the completion pager, however due to the history pager design it
uses substring matching.  We could change this in future, however that means
we would also want to change the ordering from "reverse-chronological" to
"longest common subsequence" (e.g. what fuzzy finders do), because otherwise
a query "fis" might give this ordering:

            fsck /dev/disk/by-partlabel/Linux\x20filesystem
            fish

which is probably not what the user wants.

The pager shows only a small number of history items at a time.  This is
because, as explained above, the history pager does not support subsequence
matching, so navigating it does not scale well.

Closes #602
2022-07-30 23:27:24 +02:00
..
cmds Add Control+R incremental history search in pager 2022-07-30 23:27:24 +02:00
python_docs_theme Warn the user when visiting old documentation 2022-06-20 17:56:14 -07:00
commands.rst Add documentation for prompt_hostname 2021-12-04 10:37:49 +01:00
completions.rst Search $__fish_user_data_dir for vendor additions 2022-05-12 20:29:05 +02:00
conf.py Warn the user when visiting old documentation 2022-06-20 17:56:14 -07:00
design.rst Docs: Posix -> POSIX 2022-02-14 16:18:16 -08:00
faq.rst docs: Link fish_greeting function from FAQ 2022-07-18 20:52:16 +02:00
fish_for_bash_users.rst fish_for_bash_users: Some more on variables 2022-06-01 17:35:55 +02:00
fish_indent_lexer.py docs: restore default highlighting keywords and options in HTML 2022-01-16 14:07:19 +01:00
fish_synopsis.py docs synopsis: add HTML highlighing and automate manpage markup 2022-01-19 22:56:41 +08:00
index.rst docs/index: reword default shell section 2022-03-29 13:33:06 +08:00
interactive.rst Add fish_cursor_selection_mode documentation 2022-07-30 09:49:23 -07:00
language.rst docs: Add more specific guidance on locale variables 2022-06-17 22:08:00 +02:00
license.rst Bump copyright year 2022-01-09 23:47:58 +08:00
relnotes.rst docs: call the CHANGELOG "release notes" 2021-02-25 22:46:24 +08:00
tutorial.rst docs: Remove prompt from multiline commands 2022-03-11 19:05:26 +01:00