yad icon indicating copy to clipboard operation
yad copied to clipboard

Option to automatically set the height of a --list dialog to show all items

Open marcelpaulo opened this issue 6 years ago • 1 comments

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: image

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: image

marcelpaulo avatar Jul 25 '18 13:07 marcelpaulo

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

frostworx avatar Apr 23 '21 11:04 frostworx