Combo box default values

311 views
Skip to first unread message

Johnny Rosenberg

unread,
Jan 14, 2015, 4:11:07 PM1/14/15
to yad-c...@googlegroups.com
Project="Abnormal project|Default project|Ego project|My project|Zebra Project"
yad --width=500 --form --item-separator="|" --field="Projekt":CBE "$Project"

In this made-up case I want the projects listen in alphabetic order, but I want ”Default project" to be pre-selected. How can I do that? I'm sure I just missed something.


Thanks in advance.



Kind regards

Johnny Rosenberg
ジョニー・ローゼンバーグ

Victor Ananjevsky

unread,
Jan 15, 2015, 3:30:40 AM1/15/15
to yad-c...@googlegroups.com
В Wed, 14 Jan 2015 22:11:07 +0100
Johnny Rosenberg <gurus....@gmail.com> писал:

> Project="Abnormal project|Default project|Ego project|My project|Zebra
> Project"
> yad --width=500 --form --item-separator="|" --field="Projekt":CBE "$Project"
>
> In this made-up case I want the projects listen in alphabetic order, but I
> want ”Default project" to be pre-selected. How can I do that? I'm sure I
> just missed something.
>

add `^' char for marking default selection

yad --form --field "combo:cb" "one!^two!three"

in this example "two" will be a pre-selected

>
> Thanks in advance.
>
>
>
> Kind regards
>
> Johnny Rosenberg
> ジョニー・ローゼンバーグ
>
> --
> You received this message because you are subscribed to the Google Groups "yad-common" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to yad-common+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


--
Victor Ananjevsky <anan...@gmail.com>

Julio C. Neves

unread,
Jan 15, 2015, 8:22:29 AM1/15/15
to yad-c...@googlegroups.com
Very good job Victor. This is new for me. Thanks!

Abcs,
Julio
@juliobash
P
róximos cursos de Shell
Cidade         Local Período
Rio de Janeiro EDX 09 a 13/03/15
São Paulo 4Linux 24 a 28/11/14
Dou treinamento de Shell em qualquer cidade.
Para mais detalhes, me mande um e-mail.

Johnny Rosenberg

unread,
Jan 15, 2015, 2:19:01 PM1/15/15
to yad-c...@googlegroups.com
2015-01-15 9:30 GMT+01:00 Victor Ananjevsky <anan...@gmail.com>:
В Wed, 14 Jan 2015 22:11:07 +0100
Johnny Rosenberg <gurus....@gmail.com> писал:

> Project="Abnormal project|Default project|Ego project|My project|Zebra
> Project"
> yad --width=500 --form --item-separator="|" --field="Projekt":CBE "$Project"
>
> In this made-up case I want the projects listen in alphabetic order, but I
> want ”Default project" to be pre-selected. How can I do that? I'm sure I
> just missed something.
>

add `^' char for marking default selection

yad --form --field "combo:cb" "one!^two!three"

in this example "two" will be a pre-selected


Nice! Thanks!
Reply all
Reply to author
Forward
0 new messages