seandenigris / Pharo-Enhancements

MIT License
3 stars 1 forks source link

Token Completion Element for Bloc #15

Closed seandenigris closed 2 years ago

seandenigris commented 2 years ago

Here's the ideal:

https://user-images.githubusercontent.com/184176/150182634-6106c8d8-018a-413e-b912-420a59a459f5.mov

TokenCollectorMorph is a basic version that I'd like to port to GT, but unlike in Pharo, non-code editors don't have any concept of completion, so this is on hold hoping that changes.

Asked about this on GT Discord: https://discord.com/channels/729445214812504107/735945764597006466/931579642807214140

Here's a workable variant using Spotter:

https://user-images.githubusercontent.com/184176/150182813-61d45205-5820-449f-8d2d-11e80f0bc25f.mov

seandenigris commented 2 years ago

Implemented in https://github.com/magritte-metamodel/magritte/commit/1e70be838a90289fed4b3aba78fd3b83607605a2

Even better than the GH example because the completion dropdown is a full customizable Spotter!