adaszko / complgen

Declarative bash/fish/zsh completions without writing shell scripts
Apache License 2.0
221 stars 7 forks source link

Bash: Respect `completion-ignore-case` readline setting #41

Open adaszko opened 9 months ago

adaszko commented 9 months ago

In JIT mode, the current bash completion matching logic simply does completion.starts_with(...) which is wrong when completion-ignore-case is set.

Similarly in AOT mode:

Fix: Retrieve the settings value with something like bind -V | grep completion-ignore-case and behave conditionally based on its value.