fish-shell/tests/pexpects
Fabian Homborg d334dc6643 Let cancel after an unambiguous completion was accepted undo it
In some cases the completion we come up with may be unexpected, e.g.
if you have files like

/etc/realfile

and

/etc/wrongfile

and enter "/etc/gile", it will accept "wrongfile" because "g" and
"ile" are in there - it's a substring insertion match.

The underlying cause was a typo, so it should be easy to go back.

So we do a bit of magic and let "cancel" undo, but only right after a
completion was accepted via complete or complete-and-search.

That means that just reflexively pressing escape would, by default, get you back to
the old token and let you fix your mistake.

We don't do this when the completion was accepted via the pager,
because 1. there's more of a chance to see the problem there and 2.
it's harder to redo in that case.

Fixes #7433.
2020-10-30 19:37:44 +01:00
..
bind.py tests: Check that ctrl-z can be bound 2020-10-14 19:26:13 +02:00
bind_mode_events.py Reformat pexpects 2020-06-08 17:33:04 +02:00
cancel_event.py Send fish_cancel event on control-C again 2020-10-06 17:49:55 -07:00
commandline.py Don't enqueue a repaint in the middle of one 2020-09-11 19:23:26 +02:00
complete.py Let cancel after an unambiguous completion was accepted undo it 2020-10-30 19:37:44 +01:00
exit.py tests: Exit: Try sleeping multiple times 2020-08-08 16:35:08 +02:00
exit_handlers.py Add a test that fish_exit handlers run on receipt of SIGHUP 2020-08-30 15:09:34 -07:00
fg.py tests: Add an additional "sleep" 2020-08-08 16:35:08 +02:00
fkr.py tests: Don't send \cA 2020-06-17 15:55:31 +02:00
generic.py Port generic.expect to pexpect 2020-06-08 22:57:46 +02:00
histfile.py Another formatting run 2020-06-24 20:43:56 +02:00
history.py Make history search smartcase 2020-09-22 16:13:24 +02:00
isatty.py Use the newly fixed test -t in isatty 2020-09-16 21:02:59 +02:00
job_summary.py tests: Print some more info in the job_summary test for debugging 2020-09-04 17:53:17 +02:00
pipeline.py Unset X-bit on tests 2020-06-13 16:18:17 +02:00
postexec.py Return no status from successful variable assignments 2020-08-05 12:23:49 -07:00
read.py Port read tests to expect 2020-06-13 15:21:40 +02:00
set_color.py set_color: Honor modifiers (bold, background..) with --print-colors 2020-09-17 12:33:56 +02:00
sigint.py Correctly propagate signals from cancelled jobs into parse_execution_context 2020-08-13 15:30:15 -07:00
signals.py tests: Add yet another sleep 2020-09-27 09:22:45 +02:00
tty_ownership.py Bravely remove reclaim... param from continue_job, and rework tcsetpgrp calls 2020-07-27 14:51:37 -07:00
wait.py tests: Shorten a sleep 2020-09-04 16:29:53 +02:00