[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
in completion, $COMP_WORDBREAKS should be ignored, unless there are no m
in completion, $COMP_WORDBREAKS should be ignored, unless there are no matches
Wed, 23 May 2012 13:11:27 +0200
It seems that $COMP_WORDBREAKS annoys users when filenames contain
one of its characters:
and my bug report:
Unsetting $COMP_WORDBREAKS is not a solution, as completion would no
longer work in contexts where such characters are word separators.
How about the following behavior when the user types [TAB]?
1. Try to complete the whole word, ignoring $COMP_WORDBREAKS.
2. If there are no matches, take $COMP_WORDBREAKS into account
I suppose that false positives for (1) are rare enough, so that this
heuristic would work well in practice.
Vincent Lefèvre <address@hidden> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
- in completion, $COMP_WORDBREAKS should be ignored, unless there are no matches,
Vincent Lefevre <=