pyscripter icon indicating copy to clipboard operation
pyscripter copied to clipboard

multi-caret editing in editor window

Open GoogleCodeExporter opened this issue 10 years ago • 9 comments

What steps will reproduce the problem?
1. Try to place cursor on the few lines in the same time, to add/remove 
characters from many lines at once
2.
3.

What is the expected output? What do you see instead?
Standard multi-line editing behaviour, such as in Notepad++, Wing, Comodo etc. 

What version of the product are you using? On what operating system?
PyScripter-v2.4.1, Win7 x64

Please provide any additional information below.
It would be very nice to be able to edit many lines at once

Original issue reported on code.google.com by vfxdomain on 13 Feb 2011 at 8:01

GoogleCodeExporter avatar Aug 24 '15 16:08 GoogleCodeExporter

I am not sure what you mean.  Could you please provide a more detailed 
description?

Original comment by pyscripter on 3 Mar 2011 at 2:19

GoogleCodeExporter avatar Aug 24 '15 16:08 GoogleCodeExporter

It's simple, i am talking about possibility to edit a few lines at once. In 
Notepad++ for example (and many other editors), you can place cursor on the 
line of text, then holding ctrl and place cursor on other line or lines, so 
when you type you're editing all those lines where you've placed the cursor at 
once.

Original comment by vfxdomain on 3 Mar 2011 at 10:59

GoogleCodeExporter avatar Aug 24 '15 16:08 GoogleCodeExporter

As the original poster said, this is an advanced editing feature that is 
supported by a few "programmer editors". A notable example is Notepad++, but is 
also possible (to a certain exten) in Eclipse.

Basically, it allows you to type the same text on several lines at once. There 
are several ways to achieve this in Notepad++:

- Hold Alt and then drag the mouse. Rather than a regular selection you get a 
"column selection". The selection area is a rectangle, with one vertex where 
you started your mouse drag, and the other opposite vertex where you stopped 
dragging. If you type something the text inside the rectangle is removed and 
substituted with what you type. If the selection spans several lines the text 
you type is repeated on all the lines that the selection spans. Note that it is 
possible to 

- Hold Ctrl and then click on several places. You get multiple cursors (one in 
each place you clicked). If you then type something the text you type is 
repeated wherever you placed a cursor.

This is very handy when you want to change many lines at once.

Original comment by [email protected] on 21 Aug 2011 at 3:28

GoogleCodeExporter avatar Aug 24 '15 16:08 GoogleCodeExporter

Issue 582 has been merged into this issue.

Original comment by pyscripter on 24 Nov 2011 at 7:03

GoogleCodeExporter avatar Aug 24 '15 16:08 GoogleCodeExporter

Out of curiosity, do these features exist now? 

I think I accidentally triggered vertical/column/box highlight but I'm not sure 
how. I had to restart pyscripter (2.5.30 x86) to get out of the multi select 
mode. It happened in one of my workspaces but not the other.

I am also interested to know if multiple cursors exists and how I can use it. 
Thanks!

Original comment by [email protected] on 15 Jul 2013 at 1:17

GoogleCodeExporter avatar Aug 24 '15 16:08 GoogleCodeExporter

To answer my own question: "Column Select" exists in the aforementioned version 
with the default shortcut as "Ctrl+Shift+c". To get out of that mode the 
default shortcut is "Ctrl+Shift+n" for "Normal Select". Though I would prefer 
something like Alt+mouse-drag for column select, I'm glad the feature exists!

Still wondering about multiple line inserts/editing.

Original comment by [email protected] on 2 Aug 2013 at 1:45

GoogleCodeExporter avatar Aug 24 '15 16:08 GoogleCodeExporter

This is a planned feature.

pyscripter avatar Jan 08 '19 03:01 pyscripter

Any updates on the "multiple line inserts/editing" feature?

I really think of changing the IDE due to lack of this feature. It annoys me every time I would like to use it

dejalu22 avatar Oct 21 '22 14:10 dejalu22

It is planned. Initial work has been done. Possibly in the next 6 months. https://github.com/pyscripter/SynEdit/issues/2

pyscripter avatar Oct 21 '22 14:10 pyscripter