mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Add issue reference to flatpak completion workaround
[ci skip]
This commit is contained in:
parent
7bf3b57e47
commit
828b88a212
1 changed files with 4 additions and 3 deletions
|
@ -47,9 +47,10 @@ function __fish_flatpak_subcommands
|
||||||
end
|
end
|
||||||
complete -c flatpak -n __fish_is_first_token -xa "(__fish_flatpak_subcommands)"
|
complete -c flatpak -n __fish_is_first_token -xa "(__fish_flatpak_subcommands)"
|
||||||
|
|
||||||
# Ancient versions of flatpak seem to assume output is always a tty and emit pretty-formatted output, with
|
# A flatpak bug on some systems seems to cause it to assume output is a tty and always emit pretty-formatted output, with
|
||||||
# a variable number of spaces for alignment, trailing \CR, and ANSI color/formatting sequences. This function is akin
|
# a variable number of spaces for alignment, trailing CR, and ANSI formatting sequences (see #10514).
|
||||||
# to `flatpak $argv[1] $argv[2..]` but sanitizes the output to make it completion-friendly.
|
#
|
||||||
|
# This wrapper function is akin to `flatpak $argv[1] $argv[2..]` but sanitizes the output to make it completion-friendly.
|
||||||
function __fish_flatpak
|
function __fish_flatpak
|
||||||
# We can't rely on the first line being the headers because modern flatpak will omit it when running in a "subshell".
|
# We can't rely on the first line being the headers because modern flatpak will omit it when running in a "subshell".
|
||||||
# Based off our invocations, we expect the first column of actual output to never contain a capitalized letter
|
# Based off our invocations, we expect the first column of actual output to never contain a capitalized letter
|
||||||
|
|
Loading…
Reference in a new issue