hey! you are wrong :P
I found the easy way (that also solve the issue 2). I just enabled scintilla
multiple selections ! in fact scintilla is able to do exactly what I was
searching for :)
(thank go to elextr that point me to the right direction in IRC)
...and now the patch is just a 3 liner:
+++ b/src/editor.c
@@ -4677,6 +4677,11 @@ static ScintillaObject *create_new_sci(GeanyEditor *editor)
/* virtual space */
SSM(sci, SCI_SETVIRTUALSPACEOPTIONS, editor_prefs.show_virtual_space, 0);
+ /* multiple selection */
+ SSM(sci, SCI_SETMULTIPLESELECTION, 1, 0);
+ SSM(sci, SCI_SETADDITIONALSELECTIONTYPING, 1, 0);
+ SSM(sci, SCI_SETRECTANGULARSELECTIONMODIFIER, SCMOD_SUPER, 0);
In real they should be just 2 line, the last one is there to solve a scintilla issue (also found in scite):
The multiple selection hard-coded binding (Ctrl+Alt) is "shadowed" by the rectangular selection
binding (Ctrl). So the only way I found to make multiple selection + rectangular selection to work
is to change the binding for the rect selection.
With the patch applied you can make rectangular selection with "Super" and multiple selections with "Ctrl+Alt".
Probably you will not like the binding change (I don't like to change it, I'm quite used to use Ctr for rect selections) so I'm searching another way to solve the binding conflict... suggestions are welcome
NOTE: I switched to github (as requested). Now you can find the new (and the old) patch
into 2 branch I have done at:
https://github.com/DaveMDS/geany/tree/enable-multiselection ( the new one)
https://github.com/DaveMDS/geany/tree/multicursor ( the old one )
feedbacks welcome :)
davemds