Rectangular paste

General questions regarding the usage of CodeLite
prose
CodeLite Curious
Posts: 2
Joined: Sun Dec 06, 2015 9:43 am
Genuine User: Yes
IDE Question: c++
Contact:

Rectangular paste

Post by prose »

Hi,

I've been using CodeLite for about two weeks on both Mac and Linux, and so far it has been great.

However, I'm missing one basic editing feature.

With CodeLite I can easily make a rectangular selection ( Shift+Alt + arrows ).

I can then copy or cut this selection to the clipboard.

Once in the clipboard, however, if I paste, it comes out as regular lines of text. If I paste in the middle of an existing line, the newline in the clipboard splits the existing line.

I would like to have it come out as a rectangular block ( or at least have that option ).

Is this already possible ( and I'm just missing how to do it )?

This is a feature that I got addicted to long ago in VisualStudio, and that I use frequently in SciTE.

I can see thee possibilities: either the text in the clipboard "knows" it is a rectangle, and automatically pastes specially. Or: there is a special paste command that pastes as a rectangle. Or: you have to make a zero width rectangular selection to mark location for the rectangular paste.

Thanks!
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Rectangular paste

Post by eranif »

prose wrote: and that I use frequently in SciTE.
This is strange, since if SciTE has it, CodeLite should have it too.
CodeLite uses the same editing component as SciTE (scintilla), however, our version is a bit behind, it is 3.5.5.
I will check to see if there is a flag I am missing in the scintilla documentation

Eran
Make sure you have read the HOW TO POST thread
prose
CodeLite Curious
Posts: 2
Joined: Sun Dec 06, 2015 9:43 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Rectangular paste

Post by prose »

Thanks for looking into it.

I am using the latest version of SciTE, but the rectangular paste has been working since at least 2013 ( and probably much earlier ).

In SciTE there is no explicit special paste action. If it went into the clipboard from a rectangular selection, it automatically pastes as a rectangle.
Post Reply