Ticket #167 (closed enhancement: fixed)

Opened 4 years ago

Last modified 2 years ago

Rectangular editing

Reported by: szabgab Owned by: azawawi
Priority: major Milestone:
Component: Rectangular Editing Version: 0.20
Keywords: visual edit vertical selection Cc:

Description

Allow the user to mark a rectangular part of the text and then whatever is being edited on one line should be repeated in all the other lines.
(In vi it is Ctrl-v to swtich to blockwise Visual mode and the Shift-i to start the editing that will be repeated)

Change History

comment:1 Changed 4 years ago by Sewi

  • Keywords visual edit vertical selection added

comment:2 Changed 4 years ago by azawawi

Rectangular editing in Padre can be done using shift-alt and then use the arrow keys. That's already implemented in scintilla by default.

From yellowbrain STC docs,
"If <ALT> is pressed while selecting text, then the selection is forced to be rectangular. See SelectionIsRectangle? for a way to detemine the type of selection programmatically."

We could add an option to simplify that to the user.

comment:3 Changed 4 years ago by azawawi

  • Status changed from new to closed
  • Resolution set to fixed

I am closing this one since it is already implemented by Scintilla by default. Please re-open if you think otherwise. I also added it as "Rectangular Selection" in wiki:Features.

Have a nice day :)

comment:4 Changed 4 years ago by szabgab

  • Status changed from closed to reopened
  • Resolution fixed deleted

I would like to see this working with keyboard only. (no mouse)

comment:5 Changed 4 years ago by azawawi

  • Owner set to azawawi
  • Status changed from reopened to assigned

comment:6 Changed 4 years ago by azawawi

  • Status changed from assigned to closed
  • Resolution set to fixed

It is already working using the keyboard and mouse. Shift-alt and move left and right using your keyboard.

Please reopen if you think otherwise :)

comment:7 Changed 2 years ago by szabgab

  • Component changed from editor to Rectangular Editing
Note: See TracTickets for help on using tickets.