GithubHelp home page GithubHelp logo

Comments (7)

gsamokovarov avatar gsamokovarov commented on June 26, 2024

We still have autocompletion, what shell are you using? I have seen problems with zsh and oh-my-zsh as they already provide autocompletion for autojump which collides with the j helper.

How did you alias fast_cd to j? If you have done it with jump shell --bind fast_cd, typing:

fast_cd someth<tab>

... should give you autocompletion.

You can see https://github.com/gsamokovarov/jump#but-j-is-not-my-favourite-letter for more details.

from jump.

jcassee avatar jcassee commented on June 26, 2024

I'm using ZSH, with prezto. When I press TAB, the shell completes the single match that would be used if I would just press . I was hoping for a short ordered list of matches.

About fasd_cd: I meant Fasd, a different Jump-like utility. I am not using fast_cd as an alias for Jump, I used to alias j to fasd_cd.

Jump completes only the best match:

$ j autom<TAB>

↓↓↓

$ j /home/joost/dev/automat

Fasd shows all matches in a completion menu:

$ j autom<TAB>

↓↓↓

$ j autom /home/joost/dev/automat
/home/joost/dev/automat
/home/joost/dev/automat/automat
/home/joost/dev/infra/environments/development/automat
/home/joost/dev/infra/environments/production/automat

I have made sure all of those automat directories are in Jump's scores.json:

$ jq -r '.[].Path' <~/.jump/scores.json
/home/joost/dev/automat/automat
/home/joost/dev/infra/environments/development/automat
/home/joost/dev/infra/environments/production/automat
/home/joost/dev/automat
[...]

from jump.

gsamokovarov avatar gsamokovarov commented on June 26, 2024

Used to support multiple matches in some shells autocompletion, but unified it to one match for all (f26678f).

We support features like deep matching: j prod/aut will go to /home/joost/dev/infra/environments/production/automat and the tab completion can verify that for you. I'm open to refining the autocompletion, but what do you get from it? More visibility where you'll land?

from jump.

jcassee avatar jcassee commented on June 26, 2024

Interesting that it existed but was removed.

Indeed, it's a "look before you leap" thing. Like you say, it is possible to be unambiguous, but I don't need to be if I can bring up "the menu". It feels comforting. 🙂

I'm not sure whether I'm just used to my old ways, or whether it would be a useful feature in Jump.

from jump.

gsamokovarov avatar gsamokovarov commented on June 26, 2024

I'm not using autocompletion, as I use jump to save keystrokes and a hit to the tab is a hit to the tab 😄

I'm about to release a new version of jump this month, and I'm not sure I can squeeze this in, but I can try and revisit the autocompletion afterward. It's something my friends also use, so it's gonna be beneficial for the people that depend on it.

Is the autocompletion stopping you from using jump at the moment? Do you have any other impressions?

from jump.

jcassee avatar jcassee commented on June 26, 2024

Jump seems to work very well. I like the separate path matching, in combination with (I think?) the preference for shorter matches. The autocomplete is not stopping me from using Jump, let's see how I feel about it in a couple of days. :-)

Thanks!

from jump.

gsamokovarov avatar gsamokovarov commented on June 26, 2024

Cool, will close this issue for now. Feel free to open other issues, if you have more questions! ✌️

from jump.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.