Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stricter jumps #40

Open
aeosynth opened this issue Jun 8, 2019 · 3 comments
Open

stricter jumps #40

aeosynth opened this issue Jun 8, 2019 · 3 comments
Assignees

Comments

@aeosynth
Copy link

aeosynth commented Jun 8, 2019

if i enter a path that doesn't exist in the jump db, i'd rather not jump, than jump to a seemingly random directory.

eg j xyz -> jump to /home/james/dl ???

@gsamokovarov
Copy link
Owner

I'll look into this, thanks!

@orefalo
Copy link

orefalo commented Jun 20, 2023

same issue, it jumps to a random location

@rkfg
Copy link

rkfg commented Feb 15, 2025

It's a pretty important issue that harms the program performance, I think I've never seen it in autojump. For example, I have two directories in scores.json:

  • /mnt/2Tb/stable-diffusion-docker with score 122 (I often use it)
  • /home/rkfg/soft/svn-soft/gddr6-core-junction-vram-temps with score 6 (it's a new directory)

When I type j ddr I end up in the first directory even though it's a fuzzy match with multiple characters between d, d, and r. In the second case the whole word is there but it doesn't match at all, even after a few j without arguments. I get other high score directories with these three letters spread along the name. Sure, I can quickly get to the second directory if I type j gddr but only because there are no other known random directories with these letters in this order.

I think the fuzzy match is way too lax and needs improvements or at least a configuration option to turn it off or make it stricter. Levenshtein distance looks like a good candidate for a limiting function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants