fish-shell/sphinx_doc_src/cmds
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
..
abbr.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
alias.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
and.rst Fix broken links to index.html in cmd docs 2020-01-31 23:12:05 +08:00
argparse.rst docs: Simplify argparse docs 2019-12-01 18:15:36 +01:00
begin.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
bg.rst Fix broken links to index.html in cmd docs 2020-01-31 23:12:05 +08:00
bind.rst Add undo 2020-02-07 17:15:17 +01:00
block.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
break.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
breakpoint.rst Fix broken links to index.html in cmd docs 2020-01-31 23:12:05 +08:00
builtin.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
case.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
cd.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
cdh.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
command.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
commandline.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
complete.rst complete: document change in 22ce8c23c6 2019-10-04 07:13:17 +08:00
contains.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
continue.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
count.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
dirh.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
dirs.rst doc: add links between dirs, pushd and popd 2019-10-16 09:05:59 +02:00
disown.rst Fix broken links to index.html in cmd docs 2020-01-31 23:12:05 +08:00
echo.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
else.rst doc: add cross-refs between if and else commands 2019-10-10 18:17:10 +02:00
emit.rst doc: add link to event handlers in emit 2019-10-06 15:09:01 +02:00
end.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
eval.rst "eval" example to use $cmd as an array 2019-11-25 13:23:21 +01:00
exec.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
exit.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
false.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
fg.rst Fix broken links to index.html in cmd docs 2020-01-31 23:12:05 +08:00
fish.rst docs: Link to the fish-doc and fish-tutorial pages from fish(1) 2019-12-11 20:59:17 +01:00
fish_breakpoint_prompt.rst Fix broken links to index.html in cmd docs 2020-01-31 23:12:05 +08:00
fish_config.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
fish_git_prompt.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
fish_hg_prompt.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
fish_indent.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
fish_key_reader.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
fish_mode_prompt.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
fish_opt.rst docs: Fix fish_opt options 2019-06-11 14:10:39 +02:00
fish_prompt.rst Fix broken links to index.html in cmd docs 2020-01-31 23:12:05 +08:00
fish_right_prompt.rst docs: Add labels to all commands 2019-03-31 11:05:33 +02:00
fish_svn_prompt.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
fish_update_completions.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
fish_vcs_prompt.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
for.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
funced.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
funcsave.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
function.rst Fix broken links to index.html in cmd docs 2020-01-31 23:12:05 +08:00
functions.rst docs: Reword description for -D 2020-02-02 18:10:04 -08:00
help.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
history.rst history: Use --contains by default for "delete" 2019-11-01 08:53:24 +01:00
if.rst doc: add cross-refs between if and else commands 2019-10-10 18:17:10 +02:00
isatty.rst docs: update isatty documentation to refer to terminals 2019-11-26 18:18:16 +08:00
jobs.rst Fix broken links to index.html in cmd docs 2020-01-31 23:12:05 +08:00
math.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
nextd.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
not.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
open.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
or.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
popd.rst doc: add links between dirs, pushd and popd 2019-10-16 09:05:59 +02:00
prevd.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
printf.rst docs/printf: Don't double "%" 2019-12-20 17:13:21 +01:00
prompt_pwd.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
psub.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
pushd.rst doc: add links between dirs, pushd and popd 2019-10-16 09:05:59 +02:00
pwd.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
random.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
read.rst Add read --tokenize 2019-12-01 18:14:26 +01:00
realpath.rst docs: improve realpath documentation 2019-09-17 20:48:22 +08:00
return.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
set.rst Support FOO=bar syntax for passing variables to individual commands 2019-11-25 09:20:51 +01:00
set_color.rst Docs: Clean up set_color 2020-01-18 18:45:53 +01:00
source.rst "source" to identify itself as a "block" first 2019-11-25 13:23:21 +01:00
status.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
string-collect.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string-escape.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string-join.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string-join0.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string-length.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string-lower.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string-match.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string-repeat.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string-replace.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string-split.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string-split0.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string-sub.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string-trim.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string-unescape.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string-upper.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
string.rst Add individual documentation pages for string's subcommands 2019-11-07 09:54:25 +01:00
suspend.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
switch.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
test.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
time.rst docs/time: Add a note about time command 2020-01-05 22:28:39 +01:00
trap.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
true.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
type.rst Add the --short flag to type (#6403) 2019-12-11 22:24:29 +01:00
ulimit.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
umask.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
vared.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00
wait.rst Docs: escape word characters after backticks 2019-11-01 19:11:51 +01:00
while.rst docs: update all command synopsis formatting 2019-09-17 17:59:04 +08:00