mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
65dcd06ca1
Instead of treating the search term as a literal string to be matched treat it as a glob. This allows the user to get a more useful set of results by using the `*` glob character in the search term. Partial fix for #3136
13 lines
711 B
Text
13 lines
711 B
Text
empty history detected as expected
|
|
first history command detected as expected
|
|
history function explicit search succeeded
|
|
history function implicit search succeeded
|
|
history function implicit search with timestamps succeeded
|
|
history function explicit exact search 'echo goodbye' succeeded
|
|
history function explicit exact search 'echo hello' succeeded
|
|
history function explicit exact search 'echo hell' succeeded
|
|
history function explicit glob search 'echo start*echo end' succeeded
|
|
history function explicit exact delete 'echo hello' succeeded
|
|
history function explicit prefix delete 'echo hello AGAIN' succeeded
|
|
history function explicit exact search 'echo hello again' succeeded
|
|
history[2] had the correct data
|