#191 Rectangular selection


I wish rectangular selection behaved as in Nedit:

* Create spaces/tabs on the fly so you really select a
* Be able to move or copy the interactively rectangle
with the mouse.
* Cut & Paste operations based on rectangular
selections at origin and destination.


  • Neil Hodgson

    Neil Hodgson - 2005-02-23
    • priority: 5 --> 3
    • assigned_to: nobody --> nyamatongwe
  • Neil Hodgson

    Neil Hodgson - 2005-02-23

    Logged In: YES

    Creating spaces automatically at the ends of lines and
    removing them if not needed is referred to as "virtual
    space" and while I would like to see it implemented in
    Scintilla it is uite difficult.
    For the other points, I don't understand how your requested
    behaviour is different from the existing rectangular selection.

  • Nobody/Anonymous

    Logged In: NO

    Thanks for your quick answer!:)). I'll try to clarify the
    latest two points (it is difficult, though):

    In NEdit, when I have a rectangular selection, I can move
    the selection dragging it when the middle button mouse is
    pressed. If I hold shift, the original block is preserved
    (otherwise dissappears). If I hold Ctrl, the destination
    block is overwritten by the selection being moved; if not,
    the destination is preserved (block in motion creates spaces
    for itself) I can combine both Ctrl and Shift to achieve
    several kinds of block moving. All these process are
    interative and only apply when I release the third button.

    In NEdit, when I have a rectangular selection, I can copy it
    and then select another rectangular selection to paste the
    contents. The contents are pasted and new lines are
    generated when necessary. To do so it is important the
    "virtual spaces" issue.

    In general, NEdit is also more responsive to block
    definition. In part it is because of the "virtual spaces
    issue" that uncouples block from the actual data in the
    file. Scintilla behaves weirdly (impossible to achieve,
    AFAIK) when you try to select a block outside the current
    disposal area in order to fill in with let's say "\" in a
    Makefile for continuation marks. I wish you gave a try to
    NEdit (http://www.nedit.org) to see the pros and the cons-
    perhaps we could comment these points further...

  • Neil Hodgson

    Neil Hodgson - 2005-03-03

    Logged In: YES

    In SciTE you can drag a block around with the primary mouse
    button. If the difference here is that you see the block
    in-place as you move it then that may be possible.
    I don't see how to make progress on the other issues without
    virtual spaces.

  • christopher

    christopher - 2008-03-05

    Logged In: YES
    Originator: NO

    I am also in agreement with this poster. The current method for selecting a rectangle produces undesired effects. An example of this can be reproduced by starting a rectangular selection in the middle of a line, then dragging downwards and to the right, until the caret is on an empty line (causing the caret x position to be lower than the start of the selection x position while the mouse's x position is greater). The selection is inverted. At this point I clearly want a selection of a box to the right of the starting x position, but am given one to the left.

    For an example of desired effects, compare to selection in a Command Prompt (WinXP). While a command prompt is open, right click and select Mark. Now continue to draw a box anywhere in the console.

  • Neil Hodgson

    Neil Hodgson - 2010-01-20

    Feature added in 2.0.

  • Neil Hodgson

    Neil Hodgson - 2010-01-20
    • milestone: --> Completed
    • status: open --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks