symphonycms/symphony-2 — pull request #1530 by nilshoerrmann (2012-11-05 11:53:07+00:00)
Title: Parameter Suggestions

As described in #1353 this pull request adds parameter suggestions to the filter inputs in the Data Source editor. **This need to be tested thoroughly!**

Suggestions are handled by a new jQuery plugin – this is what it does:

- As soon as you type `{$` into a filter input, a list of all available parameters is shown as a dropdown (page parameters, default parameters, output parameters).
- If a filter already contains a parameter and you move your cursor, the suggestions are updated based on your cursor position: if the existing parameter is `$ds-entries.system-id` and your cursor is after `$ds|` you'll get a list of all output parameters available while you'll only get `system-author`, `system-modification-date` and `system-creation-date` if your at `$ds-entries-system|` for example.

The suggestions can either be selected by mouse or by keyboard.
Have fun breaking it :)