pedro-hs / checkbox.sh Goto Github PK
View Code? Open in Web Editor NEWInteractive checkboxes (menu) with pagination and vim keybinds for bash
Home Page: https://github.com/pedro-hs/checkbox.sh
License: MIT License
Interactive checkboxes (menu) with pagination and vim keybinds for bash
Home Page: https://github.com/pedro-hs/checkbox.sh
License: MIT License
try to not completely change the user's screen or restore it, you can hav an option for that if you want
https://github.com/ashir321/checkbox.sh/blob/master/checkbox.sh
kindly help me print from Select Option String instead of its position
[x] Apache
[x] HA Proxy
[ ] Nginx
[ ] Message
2/4 | 2 selected
Selected:
0 1
Desired: Apache HA Proxy
and how to save the desired output in a file
the line showing how many entries and the current entry + the number of selected entries may be useful for very long lists for short lists it's noise
This is not how normal utilities work, see also #19
Hi
Thanks for the simple checkbox bash selection script, this is exactly what I was looking for.
One bug/problem I noticed is following:
So I think the script should save the original color if possible during the start and then restore it back once finished.
think that your selector can be used as a filter
apart from some possible "design" feature the lines add little, an option to have them, or not have them would be nice
Looks like the script doesn't work on Mac OS
I am receiving error ->
./scripts/utils/checkbox.sh: line 416: read: -N: invalid option read: usage: read [-ers] [-u fd] [-t timeout] [-p prompt] [-a array] [-n nchars] [-d delim] [name ...]
Hi, have a look at how a man page standard looks like, it's all nice with the animation but it's so noisy one barely finds the doc.
luckily you display a synopsis when something wrong is input, that should go to a --help function
unfortunately that synopsis disappears, after having grabbed and cleared the screen (please don't)
option1
+option2
more options
...
this system let's the user decide if they want separator lines, empty lines, anything they want
Using the latest version
test="test|test2"
./lib/checkbox.sh --options="$test" --multiple --message="Select"
Result
Select
--------------------------------------------------
[ ] tst
[ ] tst2
--------------------------------------------------
1/2 | 0 selected
just write what is checked, Writing "Selected:" is not only useless but it's also not part of the results
the same goes for "nothing selected"
use exit code like any other program does!
sourcing is not the same as executing, not only is it weird but you pollute the namespace
Hi,
This is how it looks like now on MacOs Catalina
\e[2K\e[37m--------------------------------------------------
\e[2K\e[34m [ ] Option 1
\e[2K\e[37m [ ] Option 2
\e[2K\e[37m [ ] Option 3
\e[2K\e[37m [ ] Option 4
\e[2K\e[37m [ ] Option 5
\e[2K\e[37m [ ] Option 6
\e[2K\e[37m [ ] Option 7
\e[2K\e[37m [ ] Option 8
\e[2K\e[37m [ ] Option 9
\e[2K\e[37m [ ] Option 10
\e[2K\e[37m [ ] Option 11
\e[2K\e[37m [ ] Option 12
\e[2K\e[37m [ ] Option 13
\e[2K\e[37m [ ] Option 14
\e[2K\e[37m [ ] Option 15
\e[2K\e[37m [ ] Option 16
\e[2K\e[37m [ ] Option 17
\e[2K\e[37m [ ] Option 18
\e[2K\e[37m [ ] Option 19
\e[2K\e[37m [ ] Option 20
\e[2K\e[37m [ ] Option 21
\e[2K\e[37m [ ] Option 22
\e[2K\e[37m [ ] Option 23
\e[2K\e[37m [ ] Option 24
\e[2K\e[37m [ ] Option 25
\e[2K\e[37m [ ] Option 26
\e[2K\e[37m [ ] Option 27
\e[2K\e[37m [ ] Option 28
\e[2K\e[37m [ ] Option 29
\e[2K\e[37m [ ] Option 30
\e[2K\e[37m--------------------------------------------------
1/30
Originally posted by @andreysmyntyna in #6 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.