mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-01 18:31:14 -03:00
Update completions for: wine (#10789)
* feat(function): move cmd completion function to a separate file * feat(completion): support wine cmd subcommand * feat(completion): support wine control subcommand * feat(completion): support wine eject subcommand * feat(completion): support wine explorer subcommand * feat(completion): support wine explorer subcommand for desktops * feat(completion): support wine start subcommand * feat(completion): support wine winemenubuilder subcommand * feat(completion): support wine winepath subcommand * fix(function): rename function for cmd argument completion * feat(function): implement function to complete registry keys * feat(completion): support wine regedit subcommand * feat(function): add top-level key descriptions * fix(completion): remove redundant comment * feat(completion): support wine msiexec subcommand * refactor(completion): group code into functions * feat(completion): enhance subcommand descriptions
This commit is contained in:
committed by
GitHub
parent
93aa5a9376
commit
262e2d5fe6
32
share/functions/__fish_cmd__complete_args.fish
Normal file
32
share/functions/__fish_cmd__complete_args.fish
Normal file
@@ -0,0 +1,32 @@
|
||||
function __fish_cmd__complete_args -d 'Function to generate args'
|
||||
set -l current_token (commandline -tc)
|
||||
|
||||
switch $current_token
|
||||
case '/t:*'
|
||||
echo -e '0\tBlack
|
||||
1\tBlue
|
||||
2\tGreen
|
||||
3\tAqua
|
||||
4\tRed
|
||||
5\tPurple
|
||||
6\tYellow
|
||||
7\tWhite
|
||||
8\tGray
|
||||
9\tLight blue
|
||||
A\tLight green
|
||||
B\tLight aqua
|
||||
C\tLight red
|
||||
D\tLight purple
|
||||
E\tLight yellow
|
||||
F\tBright white' | awk -F '\t' "{ printf \"$current_token%s\t%s\n\", \$1, \$2 }"
|
||||
case '/e:*'
|
||||
echo -e 'on\tEnable command extensions
|
||||
off\tDisable command extensions' | awk -F '\t' "{ printf \"$current_token%s\t%s\n\", \$1, \$2 }"
|
||||
case '/f:*'
|
||||
echo -e 'on\tEnable file and directory name completion
|
||||
off\tDisable file and directory name completion' | awk -F '\t' "{ printf \"$current_token%s\t%s\n\", \$1, \$2 }"
|
||||
case '/v:*'
|
||||
echo -e 'on\tEnable delayed environment variable expansion
|
||||
off\tDisable delayed environment variable expansion' | awk -F '\t' "{ printf \"$current_token%s\t%s\n\", \$1, \$2 }"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user