Script Editor Multiple Cursors
-
Yes the delete key causes havoc (I don't remember why, but I remember that this was extremely messy to implement), but the backspace key should work fine as long as you are within the selection (in your case between
v
anda
ora
andr
). I admit it's a bit glitchy, but once you get used to its special behaviour, it does the job just fine. -
Where have the multiple cursors gone?
-
Huh? Are they gone? I am pretty sure I‘ve used this last week.
-
Maybe it's a Linux thing, a few keyboard shortcuts don't seem to be working. I'll try on Windows in my VM
-
On macOS the shortcut is Cmd+D instead of Ctrl+D (which is the Win key on a standard Windows keyboard layout). Maybe Linux also uses this modifier key.
-
That didn't work but it got me experimenting, turns out it's ctrl+shift+D. Any chance that keyboard shortcuts could be made user assignable? :)
-
Superweird, theres nothing in my code that enforces the Shift key. Is this Linux only?
It might be possible that if I wrote
D
as shortcut character it actually wants an uppercase letter thus the shift key, but apart from that I am clueless. -
Oh yeah Linux is very sensitive about upper and lower case so that could explain it. CTRL+c and CTRL+v work as expected, are they lower case in your code?
-
I‘ve just checked and yes, the idiot that wrote the code used the uppercase
D
there... -
Easy solution though :)
-
If you can‘t wait you can fix it yourself. It‘s in the file hi_scripting/components/ScriptingCodeEditor.cpp in the keyPressed method.
-
Thanks, I'll check it out
Edit: Done, that was simple enough, wish I knew more about C++ and JUCE to be able to make some real contributions.... one day maybe.
-
I also changed CTRL+H (72) to CTRL+h (104). Isn't CTRL+f more standard for find/replace and F11 for full screen?
-
Yes I wanted to change that for quite some time.