Customised auto-completion to give priority to specific packages
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.
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). -- View this message in context: http://forum.world.st/Customised-auto-completion-to-give-priority-to-specifi... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
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-specifi... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
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. <http://forum.world.st/file/n4844128/screenshot_150819-191603.png> -- View this message in context: http://forum.world.st/Customised-auto-completion-to-give-priority-to-specifi... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
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-specifi... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Hi 2015-08-19 19:04 GMT+02:00 Attila Magyar <m.magyar3@gmail.com>:
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.
participants (5)
-
Attila Magyar -
Denis Kudriashov -
Dimitris Chloupis -
stepharo -
webwarrior