fish-shell/sphinx_doc_src
Johannes Altmanninger 8a033b9f3d Add undo
Add the input function undo which is bound to `\c_` (control + / on
some terminals). Redoing the most recent chain of undos is supported,
redo is bound to `\e/` for now.

Closes #1367.
This approach should not have the issues discussed in #5897.

Every single modification to the commandline can be undone individually,
except for adjacent single-character inserts, which are coalesced,
so they can be reverted with a single undo. Coalescing is not done for
space characters, so each word can be undone separately.

When moving between history search entries, only the current history
search entry is reachable via the undo history. This allows to go back
to the original search string with a single undo, or by pressing the
escape key.
Similarly, when moving between pager entries, only the most recent
selection in the pager can be undone.
2020-02-07 17:15:17 +01:00
..
_static sphinx: honor changes in static html assets 2019-10-19 14:52:24 +02:00
cmds Add undo 2020-02-07 17:15:17 +01:00
commands.rst docs: Remove explicit .html links 2019-04-30 13:11:33 +02:00
conf.py docs: restore compatibility with Sphinx < 1.8.0 2019-11-26 18:17:20 +08:00
design.rst docs: Remove explicit .html links 2019-04-30 13:11:33 +02:00
faq.rst Fix broken links to index.html in cmd docs 2020-01-31 23:12:05 +08:00
fish_indent_lexer.py Reformat all files 2019-05-05 12:09:25 +02:00
index.rst Add undo 2020-02-07 17:15:17 +01:00
license.rst Update copyright information 2019-08-08 18:47:36 +02:00
tutorial.rst Clarify how to redirect stderr into stdout in tutorial 2020-01-09 18:39:20 +01:00