GithubHelp home page GithubHelp logo

Comments (4)

ajeetdsouza avatar ajeetdsouza commented on July 30, 2024 1

I've added a --list option to zoxide query in 89da276, which will print out matching directories in order of their scores. Could you explain your use case for printing out the scores too?

Regarding fzf options, zoxide deliberately uses almost no options to allow the user to customize fzf to their liking. I've added an environment variable $_ZO_FZF_OPTS in 12e9eab to ease this process.

Automatically cd-ing to the directory if there is only one match can be done by adding the --select-1 flag to $_ZO_FZF_OPTS.

from zoxide.

syedelec avatar syedelec commented on July 30, 2024 1

You're right, I missed this.

Everything works as expected, thanks for this tool.

from zoxide.

syedelec avatar syedelec commented on July 30, 2024

I tried the next branch and everything is working as expected for me, I am using the command zoxide query -l.

Also I did not have any use case using scores, sorry for misunderstanding.

I have tried the _ZO_FZF_OPTS export adding --select-1 and it seems it overrides the flag FZF_DEFAULT_OPTS, do you think it's useful to merge/concatenate both of them if FZF_DEFAULT_OPTS is already defined.

On my side, I will be using zoxide query -l | fzf -1 -0 +m which works great !
Thanks !

from zoxide.

ajeetdsouza avatar ajeetdsouza commented on July 30, 2024

_ZO_FZF_OPTS intentionally overrides FZF_DEFAULT_OPTS when set to allow users to completely reset their default fzf options for zoxide if desired. However, it's easy enough to add them back:

export _ZO_FZF_OPTS="$_FZF_DEFAULT_OPTS --select-1"

Hope that helps!

from zoxide.

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.