#102 Drag in the Text Editor Should Move Rather Than Copy

closed
nobody
None
5
2007-04-16
2005-12-04
No

There are two common requirement:

1) Drag a selected block of code from one position to
another.

2) Copy a line or block of lines to use it as the basis
of a new block.

It is less likely that the user will want the combined
operation as provided by DrPython. It is inconvenient
to have to delete the unwanted original code which is
nolonger highlighted after the copy.

In the event that the user does want a copy it could be
achieved in two operations. Click to duplicate then
drag to move it.

Discussion

  • Brandon
    Brandon
    2005-12-09

    Logged In: YES
    user_id=1390579

    There is a preference setting under Drag and Drop that will
    change the default behavior to Cut (Move) instead of Copy.
    Which does what you are suggesting.

    From a Windows perspective, an option to disable the click
    to copy on a selection without turing off the drag to copy
    would be useful. Currently I have dragging turned off due
    to too many missed selections being copied when I try and
    deselect.

    -Brandon

     
  • Brandon
    Brandon
    2005-12-09

    Logged In: YES
    user_id=1390579

    There is a preference setting under Drag and Drop that will
    change the default behavior to Cut (Move) instead of Copy.
    Which does what you are suggesting.

    From a Windows perspective, an option to disable the click
    to copy on a selection without turing off the drag to copy
    would be useful. Currently I have dragging turned off due
    to too many missed selections being copied when I try and
    deselect.

    -Brandon

     
  • Logged In: YES
    user_id=187309

    It is a common design mistake when providing options to not
    think through what the default should be. There are several
    cases in DrPython where this is the case.

    I too have experienced the problem of unwanted copies. I
    would suggest that the copy action should be made more
    positive. For example: perhaps it should only happen on a
    double click.

    I think it would also be helpful if after dragging a block
    of text it remained highlighted in case the user wants to
    change the indentation.

     
    • status: open --> closed