v1cont / yad

Yet Another Dialog
GNU General Public License v3.0
657 stars 58 forks source link

Set default selected entry in a --list dialog #131

Open marcelpaulo opened 3 years ago

marcelpaulo commented 3 years ago

Give this dialog:

yad --list --column whatever foo bar

foo shows up as selected. How would I make bar selected by default?

I'm using yad de48b55.

Batwam commented 2 years ago

looking for the same thing, did you find a solution? the only solution I have found so far would be to put "bar" first as the first entry is selected by default. No great if you want something dynamically selected but ok for static lists I guess... yad --list --column whatever bar foo