A very simple library for interactively selecting an option on a terminal
APACHE-2.0 License
Bot releases are hidden (Show)
Published by TwiN almost 3 years ago
Search is now case insensitive #10 - Thanks to @ilkeraksu
Published by TwiN about 3 years ago
⚠ Migrated TwinProduction/go-choice to TwiN/go-choice
Published by TwiN about 3 years ago
Updated dependencies
Published by TwiN over 3 years ago
WASD
and HJKL
Q
Published by TwiN almost 5 years ago
Published by TwiN almost 5 years ago
CTRL+C
shortcut for quittingPublished by TwiN about 5 years ago
Published by TwiN about 5 years ago
tcell
colors only oncescreen.Sync()
by screen.Show()
screen.Clear()
on every eventPublished by TwiN about 5 years ago
termbox-go
to tcell
Published by TwiN about 5 years ago
PickWithConfig
function. As a result, PickWithConfig
has been merged into Pick
.Published by TwiN about 5 years ago
Published by TwiN about 5 years ago
Before, if there was more options than what could fit in the screen, you couldn't access them.
With this update, you can now have as much options as you desire.
Published by TwiN about 5 years ago
You can now specify text color, background color and selected text color and boldness by using PickWithConfig
instead of Pick
.
Published by TwiN over 5 years ago
Switched from gopkg to go.mod
Published by TwiN over 5 years ago
Remove BACKSPACE as key to cancel choice
Published by TwiN over 5 years ago
l
(vim) and d
(WASD) can now be used to select an optionPublished by TwiN over 5 years ago
j
(down) and k
(up)w
(up) and s
(down)q
and BACKSPACE
can now be used to quit the menuSPACE
can now be used to pick the currently selected optionPick
function now returns string, error
instead of string
. Rather than using panic(...)
when no option is chosen or when a user wants to quit without choosing, a non-null error is returned, thus allowing developers to handle the situation however they want.Published by TwiN over 5 years ago
First release