-
-
Notifications
You must be signed in to change notification settings - Fork 25
Bug: rewrite choose-menu
such that it can handle more than $LINES
#97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
$ROWS
$LINES
This will be pretty difficult, but will be another leap in UX, from good to great. |
Ooh cool! This is gonna be so nice to follow. |
I'm thinking until Dorothy becomes more popular or becomes funded, this should suffice for more use cases:
As that will take a few hours, rather than a few days. |
$LINES
choose-menu
such that it can be inline, and handle more than $LINES
choose-menu
such that it can be inline, and handle more than $LINES
choose-menu
such that it can handle more than $LINES
choose-menu
such that it can handle more than $LINES
choose-menu
such that it can handle more than $LINES
choose-menu
such that it can handle more than $LINES
choose-menu
such that it can handle more than $LINES
choose-menu
such that it can handle more than $LINES
choose-menu
such that it can handle more than $LINES
One alternative to this would be to fallback to charm's gum. |
https://github.com/charmbracelet/gum has the same issue |
Can use: # https://www.gnu.org/software/coreutils/manual/html_node/fmt-invocation.html
fmt --width=$COLUMNS <<< ...
fmt $COLUMNS <<< ...
# https://www.gnu.org/software/coreutils/manual/html_node/fold-invocation.html
fold -w $COLUMNS <<< ... # doesn't work well Then can count the lines it produces, and keep the items within the $ROWS |
Using the formatting coreutils, I was able to accomplish this in about 4 hours. The difficulty was more in the required optimisations to keep it performant to not have flickers on each update, as well as how to handle paging in a way that makes sense with the constraints of the algorithm. It's pushed to dev, and I'll test it over the day on different setups. Notably, it also brings about big improvements to the styling and usability once again. |
- is-tty: bash v3 compat - setup-utils: implement defaults
This is now merged to master. Took another 4 hours today to rewrite for performance, and refine the interactions. Woohoo on solving the last known bug in Dorothy. |
Uh oh!
There was an error while loading. Please reload this page.
Currently if there are more items than
$LINES
only the last parts will show, then everything will be more or less busted.The text was updated successfully, but these errors were encountered: