Coder Social home page Coder Social logo

Don't exit on Enter about jid HOT 9 OPEN

simeji avatar simeji commented on May 22, 2024
Don't exit on Enter

from jid.

Comments (9)

stevenschlansker avatar stevenschlansker commented on May 22, 2024 11

Even doing nothing would be preferable to exiting the program. Enter is too common of a "accept my input" command and I already exited jid three times accidentally this way :)

from jid.

ashishg-qburst avatar ashishg-qburst commented on May 22, 2024 8

In the demo example

  • .users[1] *Tab* - shows you the result
  • .users[1] *Enter* - exits the program

Its confusing when Enter causes a program to terminate.

from jid.

lodenrogue avatar lodenrogue commented on May 22, 2024 2

What ashishg-qburst said

from jid.

fiatjaf avatar fiatjaf commented on May 22, 2024 2

What do you think Enter should do when there are no suggestions being chosen?

from jid.

LarryLuTW avatar LarryLuTW commented on May 22, 2024 1

Is anyone working on this? I can help to do this.

from jid.

wwalker avatar wwalker commented on May 22, 2024 1

I love jiq. But *ENTER* is my enemy :-(

I often accidentally hit enter (or more often paste something in that has a trailing "enter") and

*BAM*

the thing I almost had working is gone. Sometimes I know enough to recreate it in seconds, other times it was really complex, and I have to start over.

from jid.

jnweiger avatar jnweiger commented on May 22, 2024 1

I'd suggest, jid should use q to quit.
Enter is used to select an element from the tab completion list, if there is more than one element. If there is none or one, Enter currently quits. User's are very likely to fall into this trap, as jid is meant to explore the json structure. thus we cannot expect that the user predicts the structure correctly.

When jid quits, it prints the selected value to the console. I'd also suggest to print a trailing newline. Currently the selected value just squeezes in before the prompt, and users may miss the fact, that it is actually there.

from jid.

simeji avatar simeji commented on May 22, 2024

@lodenrogue Sorry, I can't imagine your situation. Please explain me that detail?
ex. json, query, your os, etc..

from jid.

lodenrogue avatar lodenrogue commented on May 22, 2024

Wow I just realized I opened this in 2016. That's over 5 years ago. Any progress on this?

from jid.

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.