mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
Fix completion for builtins (with subcommands)
Presently the completion engine ignores builtins that are part of the fish syntax. This can be a problem when completing a string that was based on the output of `commandline -p`. This changes completions to treat these builtins like any other command. This also disables generic (filename) completion inside comments and after strings that do not tokenize. Additionally, comments are stripped off the output of `commandline -p`. Fixes #5415 Fixes #2705
This commit is contained in:
2
share/completions/while.fish
Normal file
2
share/completions/while.fish
Normal file
@@ -0,0 +1,2 @@
|
||||
complete -c while -s h -l help -d 'Display help and exit'
|
||||
complete -c while -xa '(__fish_complete_subcommand)'
|
||||
Reference in New Issue
Block a user