Quote SciTEDoc> Set selection.additional.typing to 1. to allow typing, backspace and delete to affect all selections including each line of rectangular selections.
The proposed patch allows you to paste text from the clipboard to affect all selections.
(Author: neo4max)
Enhancement has been successful in SciTE-Ru.
--
mozers
<http://scite.net.ru>
I would be interested to see this going to main branch, if you find no
problems in the patch, Neil.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
> I would be interested to see this going to main branch, if you find no
> problems in the patch, Neil.
This was discussed in August. Since there are other reasonable
behaviours for pasting into multiple selections such as pasting items
from the clipboard into each selection, I don't want to implement this
as default in Scintilla yet and instead wait to see how well different
approaches work in applications.
As for this particular patch, it only works on Windows (while it
may need a test inside ScintillaWin.cxx, the bulk of the code should
be platform-independent) and has some wrapping code that appears
unnecessary.
Neil
What kind of behavior may be more reasonable and intuitively expected in this case?
--
mozers
<http://scite.net.ru>
> What kind of behavior may be more reasonable and intuitively expected in this case?
If I selected 3 pieces of text, performed Cut, then selected 3
positions and performed Paste then I'd expect each of the pieces of
text to be pasted into the corresponding positions. This is also more
similar to the rectangular selection case.
Neil