fish-shell/doc_src
Fabian Homborg 4bfda47449 Bind ctrl-r to search history if the commandline isn't empty
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.
2020-10-23 13:42:54 +02:00
..
_static Replace the doc theme with the pydoctheme 2020-10-04 11:05:48 +02:00
cmds docs: Fix markup for code blocks 2020-10-10 21:49:33 +02:00
python_docs_theme docs: Make somewhat usable on mobile 2020-10-08 21:27:47 +02:00
CHANGELOG.rst Add CHANGELOG to the docs 2020-05-30 10:07:21 +02:00
commands.rst We no longer have two doc systems, move sphinx_doc_src back to doc_src 2020-02-19 17:00:35 -08:00
completions.rst docs: don't quote code snippets 2020-04-13 22:56:22 +02:00
conf.py docs: Build fish-for-bash-users as a manpage 2020-10-08 17:43:04 +02:00
design.rst Make rationale spacing consistent 2020-10-12 20:25:35 +02:00
faq.rst docs: Link to fish-for-bash-users 2020-10-08 17:32:57 +02:00
fish_for_bash_users.rst docs: Link to fish-for-bash-users 2020-10-08 17:32:57 +02:00
fish_indent_lexer.py We no longer have two doc systems, move sphinx_doc_src back to doc_src 2020-02-19 17:00:35 -08:00
index.rst Bind ctrl-r to search history if the commandline isn't empty 2020-10-23 13:42:54 +02:00
license.rst Add docs theme license 2020-10-04 14:51:05 +02:00
tutorial.rst docs: Fix markup for code blocks 2020-10-10 21:49:33 +02:00