Code Monkey home page Code Monkey logo

Comments (7)

junegunn avatar junegunn commented on May 22, 2024

I've given some thought about it over time, and have come to agree with the need for the option. You have nicely summarized the reasoning behind this. I'll keep you updated on the progress.

from fzf.

junegunn avatar junegunn commented on May 22, 2024

Okay, now we have --select-1 and --exit-0 option (or -1 and -0 respectively).
I've also updated fe example on the README page.
Could you update fzf and check if it works for you? Let me know if you see any problem.

(/cc @wellle)

from fzf.

wellle avatar wellle commented on May 22, 2024

👍 Looks great. I will upgrade soon.

from fzf.

stephentalley avatar stephentalley commented on May 22, 2024

Wow, thanks for the quick response, Junegunn!

A few suggestions:

  • -1 should probably work regardless of whether --query is passed. That
    will allow the user to automatically select the only choice if
    $FZF_DEFAULT_COMMAND produces only one item.
  • -0 should probably also work regardless of whether --query is passed.
    This will allow the user to avoid having to quit out of a useless fzf
    session if no results were produced by $FZF_DEFAULT_COMMAND.
  • Consider returning 0 when exiting with the -0 option (it currently
    exits with 1) to distinguish it from the case where there were several
    matches, but the user pressed CTRL-C/ESC to exit the finder (which also
    exits with 1).

Thanks again, this is a great utility!

Steve

On Wed, Apr 2, 2014 at 8:51 AM, Christian Wellenbrock <
[email protected]> wrote:

[image: 👍] Looks great. I will upgrade soon.

Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-39325787
.

from fzf.

junegunn avatar junegunn commented on May 22, 2024

Ah, those are great suggestions. I've changed their behavior as suggested. Thanks!

from fzf.

stephentalley avatar stephentalley commented on May 22, 2024

Fantastic! Thanks again for putting together such a useful utility!

On Wed, Apr 2, 2014 at 12:08 PM, Junegunn Choi [email protected]:

Ah, those are great suggestions. I've changed their behavior as suggested.
Thanks!

Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-39349413
.

from fzf.

wellle avatar wellle commented on May 22, 2024

Works great!

from fzf.

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.