Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SynCompletionProposal functionality #188

Open
Dimon-II opened this issue Jun 7, 2022 · 0 comments
Open

SynCompletionProposal functionality #188

Dimon-II opened this issue Jun 7, 2022 · 0 comments

Comments

@Dimon-II
Copy link

Dimon-II commented Jun 7, 2022

Situation: autocomplete items can be parenthesized and Cyrillic.
image
There are three problems with the standard component:

  1. Capturing text in the editor for replacement/completion: grabs the word/identifier, but my macros can be with brackets and quotes.
  2. Filter the dropdown list based on text containing break letters: for example, typing "(" closes the dropdown list instantly.
  3. Text substitution in the editor: the word/identifier is replaced, not the fragment with brackets "(а)" -> "(auto)" -> "((auto)) "

Can this be fixed with standard component options or minimal effort?

I couldn't do it all in a standard component, but implement it using a simple combo box.
The mechanism for capturing text is made from the reverse: the text row is checked character by character to the left from the cursor position - in the macros list, the same beginning is searched. Then - to the right of the cursor position, while there is a match list items.
The text in the dropdowns input field is used only for the filter, it can be modified, the cursor position is also used for the filtering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant