-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
When learning new commands, cod forces the addition of file completions with compgen -f inside __cod_complete_bash, but there is no way to turn this behavior off.
Personally, I think this should at the very least be a toggleable flag. When using menu-completion=on, for example, filenames can really pollute the completions list according to how many files are in the current dir at that moment:

A temporary workaround is redefining the __cod_complete_bash function after the init script is sourced and commenting the line below:
# Generate cod completions.
#readarray -t COD_COMPLETIONS < <(command $__COD_BINARY api complete-words -- $$ "$COMP_CWORD" "${COMP_WORDS[@]}" 2> /dev/null)
```Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels