fish-shell/share
Johannes Altmanninger 18f6492564 completions/set: strip cursed descriptions from history/fish_killring
If I type

    $ echo $SOME_VARIABLE_WIHT_A_TYPO
    $ set -S SOME_VARIABLE_WIHT

and press tab, I'm always extremely surprised that this completes to

    $ set -S fish_history

which is because $history[1] contains the typo'd variable name.  I don't
think anyone intends to filter by that last 3-4 history items, so let's
remove this pitfall.

Note that I usually hit this scenario with undefined variables, not necessarily
typos.. "set -S" is usually redundant but it's still quite nice in this case,
to rule out any weird empty strings/empty lists.
2024-04-06 19:12:25 +02:00
..
completions completions/set: strip cursed descriptions from history/fish_killring 2024-04-06 19:12:25 +02:00
functions Avoid invoking extra subshell in __fish_md5 2024-04-05 15:26:48 +02:00
groff
tools nim prompt: Don't use test 2024-04-02 17:33:30 +02:00
__fish_build_paths.fish.in
config.fish Reformat share/**.fish with newlines collapsed 2024-02-27 16:25:01 +01:00