Code Monkey home page Code Monkey logo

Comments (6)

ajeetdsouza avatar ajeetdsouza commented on May 18, 2024 2

I agree, this is a great idea! I will work on this today.

from zoxide.

ifreund avatar ifreund commented on May 18, 2024 1

I hope this can be implemented without hard coding the default aliases of z, zi, za, etc. I prefer to use j for mine since autojump was the first such program I used and because j is right under my index finger on the homerow.

from zoxide.

ajeetdsouza avatar ajeetdsouza commented on May 18, 2024 1

I've added an init subcommand in f0c5e28. Currently, I still haven't added the environment variable, so I'll leave this issue open for now.

from zoxide.

ajeetdsouza avatar ajeetdsouza commented on May 18, 2024 1

I've added a command line flag in 34ab8f3. I felt a flag would be better than an environment variable here since it only affects this particular command and not the entire program.

from zoxide.

cole-h avatar cole-h commented on May 18, 2024

I actually really like this idea. It's something that the "competing" pazi does and would alleviate the concern re: the fish script ("Creating a separate folder with a name like functions in the repository can be confusing." #4 (comment)).

Without thinking too deeply, I can't see many downsides to this approach (there are probably more than I'm thinking of, however). The upside is that there is no need for a plugin manager, because the user only needs to add one eval to their config, and everything is then on pace with the binary itself.

Overall, I'm a fan.

from zoxide.

cole-h avatar cole-h commented on May 18, 2024

I think the best way to do this is to check for environment variables, like z.lua does. Alternatively (not really a fan of this one, but...): could use command line flags for each thing to change.

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.