diff --git a/doc_src/faq.rst b/doc_src/faq.rst index 7721409c3..d3790f880 100644 --- a/doc_src/faq.rst +++ b/doc_src/faq.rst @@ -145,7 +145,7 @@ Note that fish has a default titlebar message, which will be used if the fish_ti How do I run a command from history? ------------------------------------ -Type some part of the command, and then hit the :kbd:`↑` (up) or :kbd:`↓` (down) arrow keys to navigate through history matches. Additional default key bindings include :kbd:`Control`\ +\ :kbd:`P` (up) and :kbd:`Control`\ +\ :kbd:`N` (down). +Type some part of the command, and then hit the :kbd:`↑` (up) or :kbd:`↓` (down) arrow keys to navigate through history matches. Additional default key bindings include :kbd:`Control`\ +\ :kbd:`P` (up) and :kbd:`Control`\ +\ :kbd:`N` (down). See :ref:`Searchable command history ` for more information. Why doesn't history substitution ("!$" etc.) work? -------------------------------------------------- diff --git a/doc_src/interactive.rst b/doc_src/interactive.rst index 730c975d5..b63f832ea 100644 --- a/doc_src/interactive.rst +++ b/doc_src/interactive.rst @@ -523,7 +523,7 @@ After a command has been executed, it is remembered in the history list. Any dup By pressing :kbd:`Alt`\ +\ :kbd:`↑` and :kbd:`Alt`\ +\ :kbd:`↓`, a history search is also performed, but instead of searching for a complete commandline, each commandline is broken into separate elements just like it would be before execution, and the history is searched for an element matching that under the cursor. -History searches are case-insensitive unless the search string contains an uppercase character, and they can be aborted by pressing the escape key. +History searches are case-insensitive unless the search string contains an uppercase character. You can stop a search to edit your search string by pressing :kbd:`Esc` or :kbd:`Page Down`. Prefixing the commandline with a space will prevent the entire line from being stored in the history.