Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
You probably want to investigate completion styles. There are many builtin styles, from basic, which just does prefix completion, on up. But there are also 3rd party styles. One of the most powerful is called orderless. Considering all these styles, there really is a ton of flexibility in how you can get to a completion candidate like some-named-something (some, s-n-s, sns, soso, [a-z]{4}-na, e\b \bs, ...). You can even configure more than one style at a time (and usually do).
Another very important category of completion backends with their own opinions: lsp servers. LSP servers care nothing about how Emacs has its completion styles configured. They produce the completion candidates they think are relevant at the current position. And this varies greatly among servers. Some are quite generous and give you all kinds of flexible matches. Some provide prefix-matches only (like dabbrev). Some limit their list to a fixed number of candidates. Etc. See the corfu wiki for more on this.