autocomplete - Zsh cursor position during completion -


here completion function:

f() {     local l     read -l l      reply=('ok') } compctl -k f c 

then do

c o 

tab

c ok 

something works. l equals c o. press tab before b:

c ok b 

l equals c ok b, great, how can determine complition happened not @ end of string before b? can cursor position in bash via comp_point?


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -