ble.sh: [bash-completion, fzf] Breaks some bash-completions
ble version: 0.4.0-devel3+7d05a28 Bash version: 5.1.8(1)-release (x86_64-pc-linux-gnu)
Some tab completions are broken with ble.sh. For example nix-build -A
<kbd>Tab</kbd> does not work at all and ssh ho
<kbd>Tab</kbd> prefers files which contain the partial hostname instead of the parsed ssh_config results like bash_completions does.
I currently have bleopt complete_auto_complete=
set to work around this but I would like to know if this is the right solutions or those are bugs.
Also sometimes directories no longer append a trailing slash even if not ambiguous which makes completing paths a lot harder since you manually need to append a slash every time.
You can find the source for the nix-build completion script here https://github.com/hedning/nix-bash-completions/blob/master/_nix plus I am using this PR https://github.com/hedning/nix-bash-completions/pull/17/files.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (11 by maintainers)
Great! I could reproduce it. This is again caused by some interaction with
fzf
completion. I’ll later look at it.The bug just found me again!
When I do
cat ~/.config
<kbd>Tab</kbd> nothing happens. That is not the case forecho ~/.config
<kbd>Tab</kbd>.After doing
ble-detach
everything works again. I tried removing the function but that did not change somethingI think the culprit is
~
. When changing to~
and doingcat .config
<kbd>Tab</kbd> the/
is ammended.