The environment variables used to pass state from the shell hooks to EnvironmentCompletionContext currently use names from BASH's completion system, which are meaningless if you're not familiar with writing completion functions for BASH: COMP_LINE, COMP_POINT and COMP_WORDBREAKS.
Since completion isn't limited to the BASH shell any more, these environment variables should be given more meaningful, shell agnostic names. For example:
The environment variables used to pass state from the shell hooks to
EnvironmentCompletionContext
currently use names from BASH's completion system, which are meaningless if you're not familiar with writing completion functions for BASH:COMP_LINE
,COMP_POINT
andCOMP_WORDBREAKS
.Since completion isn't limited to the BASH shell any more, these environment variables should be given more meaningful, shell agnostic names. For example:
COMP_LINE
→CMDLINE_CONTENTS
COMP_POINT
→CMDLINE_CURSOR_INDEX
COMP_WORDBREAKS
→CMDLINE_WORDBREAKS