Pasting selection in vertical mode

78 views
Skip to first unread message

zetah

unread,
Sep 6, 2012, 6:38:33 AM9/6/12
to scite-i...@googlegroups.com
Do you think that pasting clipboard contents when user is in vertical selection mode, maybe should paste selection on all lines and retain vertical selection mode, instead just pasting on first line and dismissing vertical mode?
At least just in case when clipoard contents does not contain cr/lf?

Philippe Lhoste

unread,
Sep 6, 2012, 8:53:37 AM9/6/12
to scite-i...@googlegroups.com
You describe the old behavior. SciTE (actually Scintilla) has been fixed quite some time
ago to do the behavior you want.
Unless this is controlled by some property?

--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --



zetah

unread,
Sep 6, 2012, 10:14:04 AM9/6/12
to scite-i...@googlegroups.com
I use latest (3.2.2) version.
Are you saying that when you paste clipboard contents in vertical selection mode, pasted contents in distributed on all lines in current vertical selection?

Philippe Lhoste

unread,
Sep 7, 2012, 4:58:54 AM9/7/12
to scite-i...@googlegroups.com
On 06/09/2012 16:14, zetah wrote:
> I use latest (3.2.2) version.
> Are you saying that when you paste clipboard contents in vertical selection mode, pasted
> contents in distributed on all lines in current vertical selection?

Yes. Even for multiline content of the clipboard. Each line receives this content.

zetah

unread,
Sep 7, 2012, 6:37:51 AM9/7/12
to scite-i...@googlegroups.com
That's strangle then, as I checked scite doc for rectangular selection properties, and neither property affects this behavior.

Don't want to be boring, but I'll assume this plastic description: You can copy single word (let's say word "sample") and then do rectangular selection (of let's say 10 vertical lines) and then when you paste clipboard content in this mode, you get word "sample" on all 10 lines.
That's not what happening here on Windows XP

Philippe Lhoste

unread,
Sep 7, 2012, 8:33:03 AM9/7/12
to scite-i...@googlegroups.com
On 07/09/2012 12:37, zetah wrote:
> That's strangle then, as I checked scite doc for rectangular selection properties, and
> neither property affects this behavior.

Yes, a quick look at my user properties shown nothing related. Looks like it works (or
should) out of the box.

> Don't want to be boring, but I'll assume this plastic description: You can copy single
> word (let's say word "sample") and then do rectangular selection (of let's say 10 vertical
> lines) and then when you paste clipboard content in this mode, you get word "sample" on
> all 10 lines.
> That's not what happening here on Windows XP

Yes. Today I have SciTE 3.2.1 on Windows 7, but I switched some months ago from XP and it
was working already.

Standard SciTE, compiled by myself, but the only changes are in custom lexers.

John Yeung

unread,
Sep 7, 2012, 11:41:28 AM9/7/12
to scite-i...@googlegroups.com
On Fri, Sep 7, 2012 at 6:37 AM, zetah <klo...@gmail.com> wrote:
> Don't want to be boring, but I'll assume this plastic description: You can
> copy single word (let's say word "sample") and then do rectangular selection
> (of let's say 10 vertical lines) and then when you paste clipboard content
> in this mode, you get word "sample" on all 10 lines.
> That's not what happening here on Windows XP

You're not crazy. The behavior you want is not happening for me
either. I'm using 3.2.2 on Windows 7. When I do the steps you
describe, the result is that "sample" is on the first line only, and
whatever else was inside the selection rectangle has been deleted.

John

Philippe Lhoste

unread,
Sep 10, 2012, 5:37:32 AM9/10/12
to scite-i...@googlegroups.com
I just downloaded Sc322.exe from the site and ran it.
It is a standalone version, so I am sure it has default settings, not mine.
I made a rectangular selection and pasted a word. It replaced the selection on each line.
So there is no regression on 3.2.2.

I wonder what is going on. A problem of locale? (I use plain old ISO-8859-1)

zetah

unread,
Sep 10, 2012, 8:25:49 AM9/10/12
to scite-i...@googlegroups.com
I followed your example (and archived user properties so that it uses 'factory' settings)
Unfortunately, I still can't see it working - copied word is pasted just on first line from vertical selection

John Yeung

unread,
Sep 10, 2012, 10:08:28 AM9/10/12
to scite-i...@googlegroups.com
On Mon, Sep 10, 2012 at 5:37 AM, Philippe Lhoste <Phi...@gmx.net> wrote:
> I just downloaded Sc322.exe from the site and ran it.
> It is a standalone version, so I am sure it has default settings, not mine.

It has default settings, but it still reads properties files. In
particular, if you have user settings that live in %USERPROFILE%, it
will definitely use those, no matter where you put the standalone
executable. I believe it also uses other properties files in the same
way that SciTE does (so if you were to put the standalone in the same
directory as your regular SciTE, it should behave just like regular
SciTE).

The closest thing to a relevant setting I could find is

selection.additional.typing

Set selection.additional.typing to 1. to allow typing, backspace and
delete to affect all selections including each line of rectangular
selections.

But when I tried this, it only affected actual typing, not pasted
content. So I still haven't seen automatic duplication of the
clipboard onto multiple lines.

John

zetah

unread,
Oct 5, 2012, 5:39:57 PM10/5/12
to scite-i...@googlegroups.com
Similar idea as Google spreadsheet feature: http://googledrive.blogspot.com/2012/10/table-improvements-and-easier.html

Posting for fun ^_^
Reply all
Reply to author
Forward
0 new messages