I'm trying to put together a conky-colors.fish file. conky-colors has
that new style of parameters:
 --lang=<language>
and so on.
I want to have fish completions for this style, but cannot figure out
what to do. This is so far what I came up with:

 complete --command conky-colors --no-files --long-option 'lang='
--description 'Set language'
 complete --command conky-colors --no-files --condition
'__fish_contains_opt lang=' --arguments 'bg de en et fr it pl pt ru es
uk' --description 'Language'

There are two problems with this:
1. fish automatically adds a space after completing "--lang= ", while
conky-colors wants the parameter like "--lang=en". This is
inconvenient and problematic since there is no clear indication that
one has to delete the extra space with backspace.
2. I cannot use --long-option 'lang=LANGUAGE' because after an
alt-backspace the __fish_contains_opt does not recongnise the
"--lang=" option, hence the arguments do not show up on tab. This is a
minor annoyance only, since having the "--lang=" prompt would be
sufficient, as the "=" clearly indicates that an argument is expected.

What should I do to eliminate the extra space in point 1 ?

Best regards
SanskritFritz

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to