Skip to content

Adding implicit prefix to Complishon#19459

Open
omarabedelkader wants to merge 3 commits intopharo-project:Pharo14from
omarabedelkader:prefix
Open

Adding implicit prefix to Complishon#19459
omarabedelkader wants to merge 3 commits intopharo-project:Pharo14from
omarabedelkader:prefix

Conversation

@omarabedelkader
Copy link
Copy Markdown
Contributor

It’s simple: today the engine both searches and inserts using the same full class name, so SpPresenter only appears if you type Sp...; the filter checks whether the candidate starts with what you typed, and accepting a result inserts the full contents into the editor.

The role of this PR is to keep the real completion as SpPresenter, but in package context let the matcher look at a shortened searchable form like Presenter, so typing Pre can still find SpPresenter while accepting it still inserts the full class name; that way we change only how a result is found, not how it is inserted.

Capture d’écran 2026-03-24 à 11 57 22

@omarabedelkader
Copy link
Copy Markdown
Contributor Author

This PR willk fail in some of the tests

@omarabedelkader omarabedelkader changed the title Adding implicit prefix to complishon Adding implicit prefix to Complishon Mar 24, 2026
@jordanmontt
Copy link
Copy Markdown
Member

Interesting change. Is it possible to add tests to validate this behavior?

@Ducasse Ducasse self-requested a review March 25, 2026 12:43
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

Successfully merging this pull request may close these issues.

2 participants