fzf
fzf copied to clipboard
Duplicated TAB-completion items
Arch Linux with all packages up to date
fish 3.0.2-3
fzf 0.19.0-1
Oh My Fish dev channel version 6-46-g6b2ce5c
> set | grep FZF
FZF_COMPLETE 2
FZF_DEFAULT_OPTS '--layout=reverse --height=40%'
FZF_LEGACY_KEYBINDINGS 0
FZF_PREVIEW_DIR_CMD ls
FZF_PREVIEW_FILE_CMD 'head -n 10'
FZF_TMUX_HEIGHT '40%'
I have tried complete -Cnsl and found duplicated entries. Maybe it's a issue of fish.
However, fish's native completion does not have this problem. It looks like fish has somehow remove the duplicates.
Sorry, am unable to reproduce:
Perhaps it's related to you having 2 nslookup
s? in /usr/bin
and /bin
, in which case I'm not sure if the correct behaviour is to make the candidates unique.
@jethrokuan I think you're right about the original issue. But there are some other cases.
Here's steps to produce:
-
mkdir /tmp/c && cd /tmp/c && touch 1234
- type
pacman -U 1234
, press TAB