It is not possible to write any text which starts with @ character if they are not in the available contexts list. And if it is in the context list, it works as a context instead of user intended text.
Solution
Added checks to avoid removal of the word if it starts with @ character and not in the available context selection list
Added checks to send only the words start with @ character in the available context items list as part of the prompt object
Added checks to paint only the words start with @ character in the available context items list, otherwise keep as normal texts
Here's how it works:
NOTE: Even though the word is partially matching with one of the context items available, users are able to hit esc and proceed with their own texts. For example: after writing @cod if user directly hits space, it will automatically select @code as a context item. But if user hits escape and close the selector overlay, they can leave it as @cod.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Problem
It is not possible to write any text which starts with @ character if they are not in the available contexts list. And if it is in the context list, it works as a context instead of user intended text.
Solution
Here's how it works:
NOTE: Even though the word is partially matching with one of the context items available, users are able to hit
esc
and proceed with their own texts. For example: after writing@cod
if user directly hits space, it will automatically select@code
as a context item. But if user hits escape and close the selector overlay, they can leave it as@cod
.License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.