fish-shell/tests/pexpects
ridiculousfish 143757e8c6 Expand wildcards on tab
Prior to this change, if you tab-completed a token with a wildcard (glob), we
would invoke ordinary completions. Instead, expand the wildcard, replacing
the wildcard with the result of expansions. If the wildcard fails to expand,
flash the command line to signal an error and do not modify it.

Example:

    > touch file(seq 4)
    > echo file*<tab>

becomes:

    > echo file1 file2 file3 file4

whereas before the tab would have just added a space.

Some things to note:

1. If the expansion would produce more than 256 items, we flash the command
line and do nothing, since it would make the commandline overfull.

2. The wildcard token can be brought back through Undo (ctrl-Z).

3. This only kicks in if the wildcard is in the "path component
   containing the cursor." If the wildcard is in a previous component,
   we continue using completions as normal.

Fixes #954.
2022-04-10 13:53:22 -07:00
..
bind.py Defer escape bindings as well 2021-11-10 20:40:21 +01:00
bind_mode_events.py Comment why certain tests are disabled under TSAN 2021-12-28 21:35:30 -08:00
cancel_event.py Comment why certain tests are disabled under TSAN 2021-12-28 21:35:30 -08:00
commandline.py Update commandline state before completion 2021-07-27 19:03:35 +02:00
complete.py Reset the readline loop state when setting the buffer 2021-02-25 16:19:28 +01:00
disable_mouse.py Simplify event_queue_peeker_t 2021-04-17 16:43:27 -07:00
exit.py Reformat 2020-11-22 14:39:48 +01:00
exit_handlers.py Add a test that fish_exit handlers run on receipt of SIGHUP 2020-08-30 15:09:34 -07:00
exit_nohang.py tests: Increase how long exit_nohang tries 2021-04-14 18:55:11 +02:00
fg.py Actually fix fg.py. 2021-11-03 23:33:02 -07:00
fkr.py Make fish_key_reader's output simpler (#8467) 2021-11-22 17:22:22 +01:00
generic.py type: Add missing newline 2021-01-03 17:48:25 +01:00
histfile.py Another formatting run 2020-06-24 20:43:56 +02:00
history.py Adds sub-command clear-session to history command. 2021-10-17 19:27:46 -07:00
isatty.py Reformat 2020-11-22 14:39:48 +01:00
job_summary.py Correct the order of pkill arguments 2021-09-04 13:34:52 -07:00
pipeline.py Improve error for redirections to invalid paths 2021-11-20 17:44:05 +01:00
postexec.py Reformat 2020-11-22 14:39:48 +01:00
private_mode.py Allow fish_private_mode to change at runtime 2021-01-02 22:01:47 -08:00
read.py read: Actually only fire fish_read, not fish_prompt event 2022-03-16 20:14:59 +01:00
set_color.py Fix crash with set_color --print-colors --background normal 2021-03-09 13:46:08 +01:00
sigint.py Remove cancellation groups 2022-03-20 14:39:00 -07:00
signals.py Correct the order of pkill arguments 2021-09-04 13:34:52 -07:00
stdin_nonblocking.py stdin_nonblocking.py test to not leave background processes 2022-02-12 11:48:55 -08:00
terminal.py Update termsize before a sigwinch handler 2021-04-14 17:27:53 +02:00
torn_escapes.py Prevent signals from tearing multi-char bindings 2022-02-05 13:18:36 -08:00
tty_ownership.py Reformat 2020-11-22 14:39:48 +01:00
undo.py Add simple pexpect test for undo 2021-01-07 23:53:31 +01:00
wait.py tests: Increase another timeout 2020-11-06 17:56:38 +01:00
wildcard_tab.py Expand wildcards on tab 2022-04-10 13:53:22 -07:00