
Greetings,
Some of my completion items have "Action(" as pre text and ",,)" as post text, so that when I press enter on the completion list the caret gets positioned on the first argument. I would like to not do this when the session is commited by the dot or space key, in that case, I'd like it all to be pre text. Is there any way to do this? I could add some info on the Tag to know how many characters the post text has and in the Committed event change the caret position accordingly, but how can I now which key triggered the completion?
Best Regards,
Gustavo Guerra
Some of my completion items have "Action(" as pre text and ",,)" as post text, so that when I press enter on the completion list the caret gets positioned on the first argument. I would like to not do this when the session is commited by the dot or space key, in that case, I'd like it all to be pre text. Is there any way to do this? I could add some info on the Tag to know how many characters the post text has and in the Committed event change the caret position accordingly, but how can I now which key triggered the completion?
Best Regards,
Gustavo Guerra