fish-shell/tests
Johannes Altmanninger 51adba6ee0 Restore autosuggestion after corrected typo
Backspace signals that the user is not happy with the commandline,
and by extension the autosuggestion.

For this reason, backspace suppresses autosuggestions until the next
text insertion.

However if I
1. type something that has an autosuggestion
2. type *one* wrong letter (removing the autosuggestion)
3. type backspace

backspace does not visibly suppress any autosuggestion but rhater
signal that the user wants to go back to the previous state of the
commandline, which does have an autosuggestion.

Enable this scenario by caching the autosuggestion when it's
invalidated. On certain edits that make the cached autosuggestion
valid again, restore it from the cache.  Currently, only do this up
to a single backspace.  Could extend that in future.

This implementation is really bad.. but it's a start.
Weirdly, it does not restore the cache on undo; but that's
inconsequential because undo doesn't suppress autosuggestion as
of today.

Closes #3549
2025-01-11 18:58:49 +01:00
..
checks Restore autosuggestion after corrected typo 2025-01-11 18:58:49 +01:00
pexpects pexpects/bind: Add missing expect_prompt 2025-01-08 19:10:38 +01:00
test_functions Fix tmux-multiline-prompt test with EDITOR=vim 2024-10-27 05:03:30 +01:00
.gitignore tweak gitignore rules for *tests* directory 2017-02-20 20:29:43 -08:00
filter-control-sequences.fish fixup! filter control sequences 2024-11-21 21:20:35 +01:00
fish_test_helper.c Compile fish_test_helper in the test driver 2025-01-01 16:45:43 +01:00
history_sample_bash Support $(cmd) command substitution as alternative to (cmd) 2021-07-13 21:33:42 +02:00
history_sample_corrupt1 Improve history robustness against corrupt files 2014-07-29 14:42:03 -07:00
history_sample_fish_1_x Enforce that history items must end with trailing newlines 2021-05-10 14:23:07 -07:00
history_sample_fish_2_0 Enforce that history items must end with trailing newlines 2021-05-10 14:23:07 -07:00
interactive.config Remove some unused functions from the test harness 2020-11-15 09:17:23 +01:00
interactive.fish Tests: Don't cd to the tests directory! 2025-01-01 16:45:43 +01:00
littlecheck.py Update littlecheck to fix spurious "not found" error on exit 127 2025-01-06 06:40:43 +01:00
pexpect_helper.py Make tests usable with path with spaces 2025-01-01 16:45:43 +01:00
test.fish tests: Run filter-ctrl with %fish explicitly 2025-01-01 16:45:43 +01:00
test_driver.sh test_driver: Error out if $FISHDIR isn't given 2025-01-01 16:45:43 +01:00
test_env.sh Make tests usable with path with spaces 2025-01-01 16:45:43 +01:00
test_util.fish Run each test fully independently in own environment 2021-08-29 08:56:12 +02:00