[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: TortoiseMerge right click behavior

From: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Thu, 31 Mar 2011 08:45:32 +0100

On 31 March 2011 08:15, Hans-Emil Skogh <Hans-Emil.Skogh_at_tritech.se> wrote:
>>>> When right clicking on a (non-selected) line in TortoiseMerge I
>>>> would expect that line to be selected and the context menu to
>>>> appear. Right now the context menu appears but the selection is not
>>>> affected. This is confusing since it is far too easy to perform
>>>> unintended actions on selected lines that might even not be on screen.
> ...
>> The rule used now, which seems to cover everything, is very simple:
>> If right-click is inside selection, keep it, otherwise, select block
>> under cursor. This also simplifies the code, making some logic on when
>> to clear the selection obsolete.
>
> Nice!
>
> However, the line selection behavior is different on right and left click. I would expect them to behave the same way.
>
> Now if you right single click; a block is selected. If you left single click; a line is selected.
>
> I really like the possibility to select a block easily. But at the same time it feels awkward that left/right click has different actions, except for bringing up the context menu.
>
> Does anyone have an idea on how to make it possible to in an intuitive way select:
> 1.) A block*
> 2.) A single line
> 3.) A group of lines
>
> *A block is here defined as a selection that you can get by using the "Next difference" button.

In many apps a single click positions the cursor, a double click
selects a word and a triple click selects a line. Also a click in the
left margin selects a line. TMerge currently has rather different
behaviour: double click highlights every occurrence of the word under
the cursor, triple click does nothing. Click in the left margin is the
same as a click at start of line. I'm not sure whether that
double-click 'search' shortcut is more useful than a 'select word'
shortcut, but that is another question.

I suggest doing these with the left margin click:

single click: select line.
double-click: select diff-block (if there is one).
click and drag: select group of whole lines.

Simon

-- 
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2715542
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-03-31 09:45:39 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.