When using column mode edit, if I paste a piece of text, I'd expect the text to be append on every line selected. Instead, only the first line get the pasted text.
This is the behaviour of Scintilla, the editing component. Scite (another editor using Scintilla) has the same behaviour.
The problem is that there is no way to tell you want the text inserted on each line, it is only inserted once at the start. You will note that if you copied a column and pasted it, it is pasted on however many lines it needs.
Sorry, I got used to the behavior of jEdit.
I think its easy to tell. If you want only to paste text at the first row of a column, you don't need to use column select in the first place. If a user is selecting multiple lines, one must want to edit multiple line all at once. That's not the problem.
I understand that Geany copy multiple lines contents and paste it in middle of lines with column mode edit. The real problem is its hard to tell if a user want to paste multiple lines the same or differently.
That is also solvable. It all depends on what is in the pasteboard in the paste event. On paste to a column mode multiple-lines selection, if only single line content is in the pasteboard, user must expect to paste the same content multiple times. On the other hand, if the pasteboard has multiple line content, the user must expect to paste on each lines differently.
Scintilla provides a way of telling it to paste as single or multiple, but AFAICT the paste buffer is completely handled by Scintilla, I can't find a way we can tell if the paste buffer is multiple or just contains line end characters.
I should have pointed out that Scintilla is a separate project (www.scintilla.org), it isn't part of Geany.
I don't understand the technical details of why this should be problematic since I know nothing about the Scintilla or Geany code, but it would be magnificent if this kind of functionality were implemented. I often find the need to paste a single word to multiple lines at the same time. Since I'm not able to do that, I always have to write manually whenever I want text to appear simultanuoesly on multiple lines, which is less convenient.
@elextr I think that if I select multiple rows in column mode (Control and Shift keys or Alt and Shift on Windows) I want to copy on all the rows and not just in the first as yookoala already said.
And at http://www.geany.org/manual/current/index.html#column-mode-editing-rectangular-selections is written that "It is also possible to create a zero-column selection - this is useful to insert text on multiple lines".
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.