It currently isn't, but I'm wondering: doesn't accepting the prefix then 
continuing on typing the suffixes work for you? Maybe lower the minimal amount 
of characters to type before the completion list shows up.
I'm afraid reversing the list will usually break this possibility of completing 
prefixes and adding to them.

A "better" solution could potentially be fuzzy matching the suggestions (e.g. 
`ForBar` and possibly `FSFB` would suggest your `FooSpecificForBar`), but it 
probably would have to be very accurate in not suggesting irrelevant things not 
to become overly annoying.

To summarize, I'm afraid this is a bit too much of a corner case, or even a 
naive solution that might not work. Did you try modifying the code yourself and 
use it a bit to see if it is indeed effective?

Also, you might want to try the LSP plugin and see if the completion list from 
your language's LSP server works better for your use case. LSP servers have 
more detailed knowledge about the language so they *might* be able to propose 
"smarter" suggestions.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/discussions/4424#discussioncomment-14253297
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/repo-discussions/4424/comments/[email protected]>

Reply via email to