bracket closing tool
in
Library and Tool Development
•
3 months ago
Hi,
because I like the simplicity of the PDE, but it is missing some important features (like auto closing brackets, code completion, ...), I decided to write a small tool for faster code editing.
Right now the tool just closes open brackets while you type them (and wraps them around selected text):
The tool is still beta and I have a few questions:
· Can I check if the tool is already running?
If I activate the tool a second time, it adds an additional closing bracket, like { } }
· Is there a way to auto-load a tool?
In the future I would like to add multi selection support like in
sublime text:
Right now I just insert the String into the textarea, without a real caret or a selection.
Is it possible to extend the textarea class to handle multiple selections? Has somebody a clue how to solve this?
I hope you find it useful.
Any feedback is much appreciated.
Here is the tool:
And here you can find the source code:
3