Open
Description
While autocompleting, the position of the cursor is where the autocompleted text is added, appending the text after the cursor to the autocompleted text, resulting in inconsistent text.
For example, #**zulip-ter|min
is autocompleted to #**zulip-terminal**min
due to the cursor being placed after r
.
We need the autocomplete to consider the text on the left of the cursor as well as the text on the right that is potentially relevant for the autocomplete. This would then need the repositioning of the cursor at the 'potential' end of text to be used for autocomplete, before we autocomplete on the text.
Activity