Document insert-line-under and insert-line-over bindings

This commit is contained in:
ridiculousfish 2020-12-19 14:32:17 -08:00
parent 90f4c458e5
commit f61f45748e
2 changed files with 5 additions and 1 deletions

View file

@ -150,7 +150,7 @@ New or improved bindings
- As mentioned above, new readline commands ``undo`` (Control+\_ or Control+Z) and ``redo`` (Alt-/) can be used to revert changes to the command line or the pager search field (:issue:`6570`).
- Control-Z is now available for binding (:issue:`7152`).
- Additionally, using the ``cancel`` readline command (bound to escape by default) right after fish picked an unambiguous completion will undo that (:issue:`7433`).
- Vi mode bindings now support ``dh``, ``dl``, ``c0``, ``cf``, ``ct``, ``cF``, ``cT``, ``ch``, ``cl``, ``y0``, ``ci``, ``ca``, ``yi``, ``ya``, ``di``, ``da``, and Control+left/right keys to navigate by word (:issue:`6648`, :issue:`6755`, :issue:`6769`).
- Vi mode bindings now support ``dh``, ``dl``, ``c0``, ``cf``, ``ct``, ``cF``, ``cT``, ``ch``, ``cl``, ``y0``, ``ci``, ``ca``, ``yi``, ``ya``, ``di``, ``da``, ``o``, ``O`` and Control+left/right keys to navigate by word (:issue:`6648`, :issue:`6755`, :issue:`6769`, :issue:`7442`).
- Vi mode bindings support ``~`` (tilde) to toggle the case of the selected character (:issue:`6908`).
- Functions ``up-or-search`` and ``down-or-search`` (up-arrow and down-arrow) can cross empty lines and don't activate search mode if the search fails which makes it easier to use them to move between lines in some situations.
- The readline command ``beginning-of-history`` (Page Up) now moves to the oldest search instead of the youngest - that's ``end-of-history`` (Page Down).

View file

@ -182,6 +182,10 @@ The following special input functions are available:
- ``transpose-words``, transpose two words to the left of the cursor
- ``insert-line-under``, add a new line under the current line
- ``insert-line-over``, add a new line over the current line
- ``up-line``, move up one line
- ``undo`` and ``redo``, revert or redo the most recent edits on the command line