yad
yad copied to clipboard
Option to automatically set the height of a --list dialog to show all items
It might be very useful to have an option to automatically set the height of a --list
dialog so that all items are shown
For instance, running:
yad --list --column='' foo bar baz
will show this dialog where baz
is not shown:
It's necessary to manually set --height
to show all items.
I tried:
cat items | yad --list --limit=10 --column=''
where items:
foo
bar
baz
but the result was the same:
A solution for this would be very nice indeed.
As a workaround, it would be nice, if there would be a dryrun
option in yad which would just output the autoconfigured resolution it would use.
Based on that value one could decide programmatically if the window should open with those values or with an own resolution.
mockups:
printf "one\ntwo\nthree\n" | yad --list --column "Select" --dryrun
-geometry 265x154+1781+978
printf "one\ntwo\nthree\n" | yad --list --column "Select" --dryrun=H
154