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

Custom Autocompletion entries #23

Open
LeonMatthes opened this issue Jul 8, 2019 · 1 comment
Open

Custom Autocompletion entries #23

LeonMatthes opened this issue Jul 8, 2019 · 1 comment
Labels
API This requires changes to the public API enhancement New feature or request

Comments

@LeonMatthes
Copy link
Owner

As the developer of a Squeak Tool, it would be great to have the ability to define my own Autocompletion entries so that for example search bars could have custom fitted Autocompletion support.

Goal:
Define an API that allows TextMorph-model programmers to provide their own entries to the Autocompletion.

Secondary Goal:
Keep the API generic enough, so that anyone could implement the API hooks without instantly adding the Autocompletion as a dependency

Implementation notes
It is already possible to select a custom ECModel subclass, maybe just provide an ECModel subclass that asks the TextMorph-model for the necessary entries

@LeonMatthes LeonMatthes added enhancement New feature or request API This requires changes to the public API labels Jul 8, 2019
@LeonMatthes
Copy link
Owner Author

Note:
Currently both ECMenuMorph, ECContext, ECModel and even ECController depend heavily on one another.
But for custom Autocompletion entries the ECContext would actually not be necessary, as it is just responsible for figuring out the Smalltalk context of where the completion occurs.
For a non-smalltalk text field this is of course not necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API This requires changes to the public API enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant