fzf icon indicating copy to clipboard operation
fzf copied to clipboard

Duplicated TAB-completion items

Open rapiz1 opened this issue 5 years ago • 4 comments

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%'

Screenshot_20191129_223125

rapiz1 avatar Nov 29 '19 14:11 rapiz1

I have tried complete -Cnsl and found duplicated entries. Maybe it's a issue of fish.

rapiz1 avatar Nov 29 '19 14:11 rapiz1

However, fish's native completion does not have this problem. It looks like fish has somehow remove the duplicates.

rapiz1 avatar Nov 29 '19 15:11 rapiz1

Sorry, am unable to reproduce:

image

Perhaps it's related to you having 2 nslookups? in /usr/bin and /bin, in which case I'm not sure if the correct behaviour is to make the candidates unique.

jethrokuan avatar Dec 06 '19 05:12 jethrokuan

@jethrokuan I think you're right about the original issue. But there are some other cases.

Screenshot_20210908_232829

Here's steps to produce:

  1. mkdir /tmp/c && cd /tmp/c && touch 1234
  2. type pacman -U 1234, press TAB

rapiz1 avatar Sep 08 '21 15:09 rapiz1