#400 Vertical Selection

Completed
closed
Neil Hodgson
SciTE (230)
2
2010-04-06
2007-02-08
Anonymous
No

Hi,

I use the Scite Version 1.72, and I would like to suggest a new funcionality: the vertical selection.

You should be able to select only the right part of a tex t or a column like you do in excel.

If you need any clarification regarding the description of this feature don't hesitate in contact me trough the following email: tejano96@yahoo.com.

Best regards

Nuno

Discussion

1 2 > >> (Page 1 of 2)
  • Neil Hodgson
    Neil Hodgson
    2007-02-09

    Logged In: YES
    user_id=12579
    Originator: NO

    Already implemented.

     
  • Neil Hodgson
    Neil Hodgson
    2007-02-09

    • priority: 5 --> 2
    • assigned_to: nobody --> nyamatongwe
     
  • Philippe Lhoste
    Philippe Lhoste
    2007-02-09

    Logged In: YES
    user_id=2556
    Originator: NO

    OK, at first I laughed when reading this, since it is implemented since years...
    Then I searched the SciTEDoc for a description of this functionality, and unless I missed something, I found only a reference to rectangular selection in the Keyboard commands section...
    So maybe we could transform this request to a request for doc. improvement...

    First draft, for Nuno:

    You can make a rectangular selection by holding the Alt key while dragging the mouse. This draws a rectangle (approximative with proportional fonts, as the right side of the selection ends on char boundary).
    You can then change this selection (hold Alt+Shift and click, also works for initial selection), and perform usual operations on selections: copy, cut, delete, paste, drag'n'drop...
    The pasting/dropping takes in account the rectangular nature of the selection.
    You can also use the keyboard to make/change such selection: hold down Alt+Shift while moving the caret.
    There is a current limitation: the selection cannot be wider than the length of the last selected line. Workaround: add temporary chars to achieve the selection.

     
  • Philippe Lhoste
    Philippe Lhoste
    2007-02-09

    Logged In: YES
    user_id=2556
    Originator: NO

    Forget my last comment about updating the doc!
    I saw Robert's one on the mailing list, and indeed it is described at the very start of the manual... I searched 'selection', and missed 'selected'... :-P

     
  • Som-Som
    Som-Som
    2007-03-23

    Logged In: YES
    user_id=5406
    Originator: NO

    Vertical selection, aka. column mode selection would be rather useful. As far as I remember, text editor of DOS Navigator supported it about 15 years ago. My colleagues are using UltraEdit and can do quite everyday things easily, that I cannot do with SciTE/Geany/GEdit/whatever Scintilla-based editors.

    For example you have the following code:
    int a; /* A variable */
    int b = 0; /* B variable */

    Now you want to add the following line, while starting variable names, initializations and comments aligned:
    unsigned long c = -1; /* C variable */

    So you have to align each line individually. If your editor supports column mode that is easy.

     
  • Som-Som
    Som-Som
    2007-03-23

    Logged In: YES
    user_id=5406
    Originator: NO

    Sorry, I played with Alt+Shift+Click for even more and realized how to widen the space between columns. So you have to select a column of spaces (in the example the column of spaces between int and variable names), then copy and paste it several times to achieve the same effect.

    Well, rather odd way to do that and - as it was mentioned by philo earlier - it does not work if you happen to have a shorter line (e.g. a #if).

     
  • Nobody/Anonymous
    Nobody/Anonymous
    2007-04-16

    Logged In: NO

    I also think 'Vertical Selection' is very very very important!
    Hope Scintilla will have the same 'Vertical Selection' function as
    UltraEdit, jEdit and so on.

    I love 'Vertical Selection' without any more temporary whitespace chars.

     
  • Nobody/Anonymous
    Nobody/Anonymous
    2007-04-16

    Logged In: NO

    I also think 'Vertical Selection' is very very very important!
    Hope Scintilla will have the same 'Vertical Selection' function as
    UltraEdit, jEdit and so on.

    I love 'Vertical Selection' without any more temporary whitespace chars.

     
  • Nobody/Anonymous
    Nobody/Anonymous
    2008-01-11

    Logged In: NO

    I would like to add something to this request.
    Not only should you be able to select vertically, but apply modifications like Copy&Past and Indentation to that selection only.

     
  • Neil Hodgson
    Neil Hodgson
    2010-04-06

    Improvements were made to rectangular selection in 2.0 that cover this.

     
1 2 > >> (Page 1 of 2)