Git Product home page Git Product logo

sind's People

Contributors

l3laze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

guutboy mtfurlan

sind's Issues

Not working, output error!

$ echo "$(./sind.sh -t Title -o Okay -c)"
Title (↑/j or ↓/|k, enter: choose)
------------------------------------------------------------------------------------------------------
Okay

System version

NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"

There are also systems Mac OS 10.15.7 and CentOS 7 that don't work.
But the functions provided by Alexander Klimetschek work properly.

Patch for j/k movement

Vim user here, I like j/k for movement, so here's a patch.

38a39,40
>       if [[ "$key" == 'k' ]]; then echo "up"; break; fi
>       if [[ "$key" == 'j' ]]; then echo "down"; break; fi

Thanks for putting it on github.

Cheers

Capturing output in Ubuntu 20

I am unable to capture the selection running Ubuntu 20
The example code waits like this:

test@ubuntu:~$ echo "$(./sind.sh -o "thing1" "thing2" -c)"
Choose one (↑/j or ↓/|k, enter: choose)
--------------------------------------------------------------------------------
thing1

Pressing arrow keys a few times and then enter does reveal the menu and move on, but the output is not useful:

test@ubuntu:~$ echo "$(./sind.sh -o "thing1" "thing2" -c)"
Choose one (↑/j or ↓/|k, enter: choose)
--------------------------------------------------------------------------------
thing1
thing2
Cancel
--------------------------------------------------------------------------------
thing2Cancelthing1Cancelthing1thing2thing2Cancelthing1
test@ubuntu:~$ 

Running the program without trying to capture works correctly:

Choose one (↑/j or ↓/|k, enter: choose)
--------------------------------------------------------------------------------
thing1
thing2
Cancel
--------------------------------------------------------------------------------
thing2
test@ubuntu:~$ 

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.