autojump icon indicating copy to clipboard operation
autojump copied to clipboard

Bash completion has duplicate entries

Open aprokop opened this issue 10 years ago • 17 comments

Not sure if I am missing something, but here is my problem:

$ grep free ~/.local/share/autojump/autojump.txt
31.6227766016   /home/aprokop/local/opt/freemind-1.0.1

so there should only be a single completion for free. However,

$ j free<tab><tab>
free__1__/home/aprokop/local/opt/freemind-1.0.1  free__2__/home/aprokop/local/opt/freemind-1.0.1

The completion entries are identical, and there should be unique completion for it. I'm using the current HEAD (8b525c1).

aprokop avatar Feb 06 '15 21:02 aprokop

Got the same issue.

sbbird avatar Mar 05 '15 04:03 sbbird

Exactly the same.

victorkashirin avatar Mar 09 '15 06:03 victorkashirin

Same here

kylegrymonprez avatar Jun 23 '16 00:06 kylegrymonprez

same here

ambjlon avatar Aug 09 '16 03:08 ambjlon

same here

qiny avatar Aug 09 '16 03:08 qiny

Same problem.

Karmaki avatar Nov 23 '16 10:11 Karmaki

+1

yumitsu avatar Jul 27 '17 10:07 yumitsu

It is also happening with zsh.

cemsbr avatar Dec 26 '17 21:12 cemsbr

The same issue in bash

dclong avatar Nov 01 '18 05:11 dclong

+1 mac zsh

vitalimelamud avatar Nov 17 '18 16:11 vitalimelamud

Same :s

dimmaski avatar Mar 26 '20 00:03 dimmaski

same for me

moegelin avatar Apr 09 '21 06:04 moegelin

Same for me in bash

DeepMechatronics avatar Sep 03 '21 01:09 DeepMechatronics

This is definitely a nuisance and it seems like this tool isn't being maintained any more (@wting, correct me if I'm wrong about that).

Has anyone found an alternative that works better? I'm thinking that smart use of the NeoVim telescope plugin could mostly bypass the need for this tool.

CharlesARoy avatar Jan 19 '22 22:01 CharlesARoy

Has anyone found an alternative that works better? I'm thinking that smart use of the NeoVim telescope plugin could mostly bypass the need for this tool.

I have been using https://github.com/ajeetdsouza/zoxide and it works great! There are also other good alternatives.

scottkosty avatar Jan 20 '22 01:01 scottkosty

I've also switched to zoxide. I imported my entries to it and have a j function:

j () {
	if [[ -t 1 ]]
	then
		z "$@"
	else
		zoxide query "$@"
	fi
}

lilydjwg avatar Jan 20 '22 03:01 lilydjwg

Here, I fixed it, cherry-pick and have fun!

rico-chet avatar Jan 23 '22 01:01 rico-chet