From 45dbfda5cc3b9dbca22a44c8a19074e5b82254d9 Mon Sep 17 00:00:00 2001 From: Andrey Mishchenko Date: Wed, 8 Dec 2021 11:34:38 -0500 Subject: [PATCH] Add documentation for nextd-or-forward-word and prevd-or-backward-word readline functions --- doc_src/cmds/bind.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc_src/cmds/bind.rst b/doc_src/cmds/bind.rst index ecab58795..e2a91397b 100644 --- a/doc_src/cmds/bind.rst +++ b/doc_src/cmds/bind.rst @@ -227,12 +227,18 @@ The following special input functions are available: ``kill-word`` move the next word to the killring +``nextd-or-forward-word`` + if the commandline is empty, then move forward in the directory history, otherwise move one word to the right + ``or`` only execute the next function if the previous succeeded (note: only some functions report success) ``pager-toggle-search`` toggles the search field if the completions pager is visible. +``prevd-or-backward-word`` + if the commandline is empty, then move backward in the directory history, otherwise move one word to the left + ``repaint`` reexecutes the prompt functions and redraws the prompt (also ``force-repaint`` for backwards-compatibility)