GithubHelp home page GithubHelp logo

Comments (5)

theryangeary avatar theryangeary commented on June 2, 2024 1

readme mistake

You're right, this is a typo on my part.

python-like

Yes, admittedly this is not 100% the way python list slices work. Originally exclusivity was default but I found that over and over as I developed and used choose that my mind would assume inclusivity and I wanted to provide defaults that would be commonly appreciated. I plan on adding the ability to specify exclusivity with an environment variable, which it seems you will appreciate given your alias.

empty results when using -x

Astute observation, you have indeed uncovered a bug.

I am going to open separate issues for each of these items.

from choose.

omertuc avatar omertuc commented on June 2, 2024

Cool, thanks for the quick response.

Regarding the difference from the Python behavior - I think it would be nice if this was explicitly mentioned in the README. Either the exact difference or just mentioning that it's "mostly like-python".

Regarding the env variable - I'm actually personally against an environment variable for exclusivity. It might cause confusion/surprising behavior since it is usually hidden from view - an explicit, visible flag is essential in this case (my alias is an exception to that idea because I only use it in my personal command line / scripts).

from choose.

theryangeary avatar theryangeary commented on June 2, 2024

I think that the environment variable would effectively achieve the same result as your alias. This would be something that should be set in one's shell rc, NOT in one's profile, so it would apply to a shell but not to your whole environment, so if it were used in a script it wouldn't apply.

That being said, I don't think this tool should be used in scripts (bar trivial ones, maybe), just as you wouldn't use rg over grep or bat over cat in a script.

from choose.

omertuc avatar omertuc commented on June 2, 2024

I think that the environment variable would effectively achieve the same result as your alias. This would be something that should be set in one's shell rc, NOT in one's profile, so it would apply to a shell but not to your whole environment, so if it were used in a script it wouldn't apply.

Fair enough.

That being said, I don't think this tool should be used in scripts (bar trivial ones, maybe), just as you wouldn't use rg over grep or bat over cat in a script.

For now yes, but when Rust takes over the world and replaces all basic unix tools with their Rust equivalents, you'll regret this decision! /s

from choose.

theryangeary avatar theryangeary commented on June 2, 2024

Perhaps someday my friend. And on that day we will probably determine if we are being invoked from a script or a terminal and ignore env vars accordingly! 🦀

from choose.

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.