mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 10:43:32 +08:00
4bfda47449
This is super cheesy. One of the most common feature requests we get is "control-r must search", even tho just using history-search-backward via e.g. up-arrow is perfectly capable. The only real difference is that ctrl-r search in other shells allows editing the search term by default, while we stop the history search and edit the new commandline in those cases. So, since the major problem is muscle-memory on ctrl-r, let's just use that! This makes ctrl-r do nothing on empty commandlines, and do history-search-backward otherwise, so the basic flow of "press ctrl-r to start history search, enter your search term, press ctrl-r to cycle through matches" just works (except the first ctrl-r is useless and it doesn't show anything). See #602. |
||
---|---|---|
.. | ||
_static | ||
cmds | ||
python_docs_theme | ||
CHANGELOG.rst | ||
commands.rst | ||
completions.rst | ||
conf.py | ||
design.rst | ||
faq.rst | ||
fish_for_bash_users.rst | ||
fish_indent_lexer.py | ||
index.rst | ||
license.rst | ||
tutorial.rst |