[PD] [PD-announce] completion-plugin new version

Hans-Christoph Steiner hans at at.or.at
Fri May 27 17:37:26 CEST 2011


On May 23, 2011, at 7:16 AM, yvan volochine wrote:

> On 05/21/2011 11:46 PM, Mathieu Bouchard wrote:
>>>> that's great. don't know if you want to, but I would suggest to  
>>>> copy
>>>> another useful max feature: when you click on a send or receive  
>>>> object
>>>> (the same for their audio versions), a pop-up comes up listing  
>>>> how many
>>>> other objects exist using the same variable, and by clicking in  
>>>> any of
>>>> these objects it takes you to the patch where they are.
>>>
>>> AFAICS this is currently not possible because most of the gui is  
>>> still
>>> handle by pd (instead of tcl), therefore sub-patches are not
>>> accessible, etc..
>>
>> You need to modify the 'find' method in the canvas class. You make  
>> one
>> version that doesn't auto-select an item, but instead sends a list of
>> all matches to the tcl side for your use.
> [SNIP]
>
> that's what I meant, it's currently not possible in a gui-plugin  
> (i.e. in tcl only)


It wouldn't be hard to code this in C, the question for me is what  
would the interface be, both in terms of coding in Tcl and the GUI  
itself.

This plugin is really looking quite amazing.  I am curious about the  
send/receive symbols in it.  Does it use all s/r symbols that are  
active?  That list could get quite long, but I guess that's what it is  
supposed to do.

One little deployment suggestion:  the 'extra_objects' folder is a  
good idea with auto-loading the text files, etc.  I think it would be  
easiest if it just loaded any .txt file that was in 'extra_objects',  
then people could just drop their own custom ones in there without  
having to edit the completion-plugin.tcl. Then the  
add_libraries_externals loading logic could try loading a standard  
filename like completion.cfg from each of the loaded libraries.  So  
anyone can add a 'completion.cfg' to their library, and it'll be  
loaded.  Perhaps that's a bigger problem than should be tackled now,  
but I'm thinking it would be very nice, and not too hard to make the  
completion context aware, so that the completion list would be per- 
patch.  I.e. taking into account [import mylib], etc.

.hc


----------------------------------------------------------------------------

I spent 33 years and four months in active military service and during  
that period I spent most of my time as a high class muscle man for Big  
Business, for Wall Street and the bankers.      - General Smedley Butler





More information about the Pd-list mailing list