This Gui-Plugin enables auto-completion for pure-data objects.
Here is a link to the original repo by Yvan Volochine.
After you install the plugin you must restart Pure Data.
PD-AutoComplete-plugin
folder anywhere and add it to your pd paths in file->Preferences->PathJust hit the TAB key while typing into an object to trigger completion mode.
Use up and down to move through the suggestions. Use shift+arrows for faster navigation.
There are three search modes
How to use each one:
The plugin intelligently scans the paths set by the user (file->preferences->path) to scan for externals without the need for the user to type their name on a file. Consequently the script doesn't need a list of objects.
It searches the static default paths (ex: C:/PureData/pd-0.48-0.msw/pd/extra/) for libraries and then searches any path you've set in file->preferences->path or that Deken have set for you.
Some objects by design might be scanned twice as this reflects Pure Data objection instantiation.
If you've ser for example the following folder in file->preferences->path
C:/Users/Stravinsky/Dropbox/pd-0.48-0.msw/pd/extra/iemguts/
You can use the canvasargs external in two ways (regardless of the autocomplete plugin):
[canvasargs] [iemguts/canvasargs]
The first use the path you've set. The second uses the standard path. So the autocomplete plugin will show two options for canvasargs. Notice that the first method doesn't avoid naming conflicts while the seconds does. For that reason the latter is usually preferred.
You can define useful stuff in any .txt inside the folder custom_completions. I've already added some useful keywords like "anything", "adddollar", etc and even some constants like Pi and the golden ratio.
now you can configure the plugin under preferences->PD AutoComplete Settings.
Number of lines to display: number of completion suggestions the plugin will display
Font size: the size of the font used for the suggestions window
Maximum scan depth: how deep the plugin will look inside a search path.
bkg color options: change the background color for each search mode.
rescan: update the completions after you installed/uninstalled externals.
default: reset the plugin settings to the default
save to file: save your settings to the HD. The settings are saved in the completion.cfg
config file.
Settings are applied immediately after you change them but are only saved when you click "save to file". That means, unless you save them to the file, the next time you run PD the plugin will use the previous settings.
Please fill in an issue on the github repository if you find a bug.
I've written a developtment guide to make it easier to tackle on the code.
You can find it here.