icewm
icewm copied to clipboard
Tab autocompletion of yinputline shows misleading results
The current behavior of autocompletion action is weird. On success, it display the input as marked. On multiple option, it does the same. On failure, it does not indicate anything.
I have a vague idea on how to make it better.
a) rewrite globit.c in true C++ to get rid of the GOTO hell, and to collect output of multiple glob() rounds
b) indicate error as color change of the input line. Maybe red background? Or red font? Anyone having good arguments?
c) indicate multiple options by displaying them behind the cursor, with darker font (or lighter? Or just an average color, mean value of background and font?), maybe highlighting the first deviating letter after the length of entered prefix string with some color. Orange?
b) Maybe draw in inverse colors for half a second?
c) Maybe a choice of possible deviating letters like tint|<Tab>
-> tint|[23]
,
where the choice [23]
is selected and overwritten.