Autocompletion in code editor should only suggest relevant symbols
rillig opened this issue · comments
Is your feature request related to a problem? Please describe.
As a basic level programmer, I may have heard that Ctrl+Space provices autocompletion. When I press that shortcut in the code editor, I get really many suggestions. Most of them are not relevant for composing music or making noise.
The suggestions also include a raw PI
at the bottom. But when I select this suggestion, I get a "ReferenceError: PI is not defined". This may be irritating for beginners, and the suggestion should rather be Math.PI.
Describe the solution you'd like
Only the relevant symbols are suggested. These are:
- Math functions and constants
- knobs
- predefined utility functions (if there are any; see the example programs in #17)
- variables and functions declared in the program itself
- other useful things I forgot ;)
I really like that idea :)