HenriAugusto / completion-plugin

Completion for Pure Data
BSD 3-Clause "New" or "Revised" License
19 stars 1 forks source link

PD AutoComplete Plugin

This Gui-Plugin enables auto-completion for pure-data objects.

Here is a link to the original repo by Yvan Volochine.

Gif

PD AutoComplete Plugin gif

How to install:

After you install the plugin you must restart Pure Data.

Deken (easy way)

Manually (not so easy way)

How to use:

Just 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.

Search modes

There are three search modes

How to use each one:

Externals scanning

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.

duplicates

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.

Extra keywords

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.

Settings

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.

Development

Please fill in an issue on the github repository if you find a bug.

Development Guide

I've written a developtment guide to make it easier to tackle on the code.

Change log

You can find it here.