Customised auto-completion to give priority to specific packages

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Customised auto-completion to give priority to specific packages

kilon.alios
As a next step for my project Ephestos , I want to mess with auto-completion. My goal is for auto completion to give priority to the Ephestos packages. This way the Ephestos users will get recommended first auto completion of Ephestos classes and methods, I will then add a line to separate those from the rest of Pharo recommendations.

I could customise this further to accomodate for any package inside pharo thus making the autocompletion prioritise your packages and classes/methods. Is there any interest for something like that ?

If there is then I could make it into a separate Pharo project and make it easy to install via Package Browser (Pharo 5 configuration browser) . If there is no interest then I can keep it as part of my project and not do the extra work for separating the code.

I also welcome any advice and recommendation on how to achieve this by people who already hacked auto completion. I already study the NECompletion package so I have a general idea but so far have not figure out how to priorotise recommendations.
Reply | Threaded
Open this post in threaded view
|

Re: Customised auto-completion to give priority to specific packages

webwarrior
I have interest in customized auto-completion.
It would be also cool if it was possible to assign customized auto-completion to some instvars/arguments (for example based on knowlege about what their type is expected to be).
Reply | Threaded
Open this post in threaded view
|

Re: Customised auto-completion to give priority to specific packages

Attila Magyar
It would be really nice to have real message completion in the debugger/inspector/workspace where the types of the variables are known. For example, when I'm debugging a method and an instance variable is already initialized to a String, then the auto completion could show me only the messages associated to a Strings instead of showing everything in the image.
Reply | Threaded
Open this post in threaded view
|

Re: Customised auto-completion to give priority to specific packages

Attila Magyar
Attila Magyar wrote
It would be really nice to have real message completion in the debugger/inspector/workspace where the types of the variables are known. For example, when I'm debugging a method and an instance variable is already initialized to a String, then the auto completion could show me only the messages associated to a Strings instead of showing everything in the image.
This is how it works in Python. After evaluating the first line the variable a becomes a list, so in the second line only list methods are shown.

python repl

Reply | Threaded
Open this post in threaded view
|

Re: Customised auto-completion to give priority to specific packages

stepharo
In reply to this post by Attila Magyar
I agree!
I would really like to have another pass done on the ecompletion.

Stef

Le 19/8/15 19:04, Attila Magyar a écrit :

> It would be really nice to have real message completion in the
> debugger/inspector/workspace where the types of the variables are known. For
> example, when I'm debugging a method and an instance variable is already
> initialized to a String, then the auto completion could show me only the
> messages associated to a Strings instead of showing everything in the image.
>
>
>
> --
> View this message in context: http://forum.world.st/Customised-auto-completion-to-give-priority-to-specific-packages-tp4841003p4844125.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Customised auto-completion to give priority to specific packages

Denis Kudriashov
In reply to this post by Attila Magyar
Hi

2015-08-19 19:04 GMT+02:00 Attila Magyar <[hidden email]>:
It would be really nice to have real message completion in the
debugger/inspector/workspace where the types of the variables are known. For
example, when I'm debugging a method and an instance variable is already
initialized to a String, then the auto completion could show me only the
messages associated to a Strings instead of showing everything in the image.

Future is close. Playground already provides such completion. Try type "1 ab" and you will see only messages from numbers.