Paste text to all selections

3 views
Skip to first unread message

mozers

unread,
Jan 6, 2010, 4:54:10 AM1/6/10
to scite-i...@googlegroups.com
Hello Scite-interest,

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>

ScintillaWin.cxx.patch

Philippe Lhoste

unread,
Jan 6, 2010, 4:44:47 PM1/6/10
to scite-i...@googlegroups.com
On 06/01/2010 10:54, mozers wrote:
> The proposed patch allows you to paste text from the clipboard to affect all selections.

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
-- -- -- -- -- -- -- -- -- -- -- -- -- --

Neil Hodgson

unread,
Jan 7, 2010, 4:14:57 AM1/7/10
to scite-i...@googlegroups.com
Philippe Lhoste:

> 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

mozers

unread,
Jan 7, 2010, 4:47:19 AM1/7/10
to Neil Hodgson
Thursday, January 7, 2010, 12:14:57 PM, Neil wrote:
> 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

What kind of behavior may be more reasonable and intuitively expected in this case?

--
mozers
<http://scite.net.ru>

Neil Hodgson

unread,
Jan 7, 2010, 6:43:47 AM1/7/10
to scite-i...@googlegroups.com
mozers:

> 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

Reply all
Reply to author
Forward
0 new messages