v1cont / yad

Yet Another Dialog
GNU General Public License v3.0
687 stars 57 forks source link

Special 'quit' menu item doesn't work with whitespace #38

Closed dshoreman closed 5 years ago

dshoreman commented 5 years ago

If I use --notification --listen with a menu defined similar to the following:

echo "menu:\
First item        ! some_command        |\
Another menu item ! other-command       |\
Menu item Three   ! yet_another-command ||\
Quit              ! quit " >&3

...the first three menu items all function correctly, but the Quit item fails due to the surrounding space.

While !quit works fine (with no surrounding whitespace), it would be nice if it worked both ways to aid readability of code in more complex menus.