Page 1 of 1

Compare contents - edit mode - delete selected text

Posted: 2012-10-31, 09:37 UTC
by wanderer
In compare by contents, when in edit mode, one can traverse through differences via the "next/prev difference" buttons. When pressing them, TC selects the parts that are different in both windows or in case something is missing from one of the windows, it selects the part in the other window only. What if the user wishes to delete the selected text though (in case it exists in one window only)?

TC has done a fine job selecting it but there is no way to delete it. If you press the "del" button, nothing happens because the active control on this form is the "next difference" button. If you click inside the window, the text gets deselected and you have to select it again.

What i think would be a simple solution is to have a "delete selection" option in the right-click menu of the text window, or even better (for some that may need it) a "cut selection" option (cut to clipboard).

PS: As a workaround, by using the keyboard shortcuts ALT+N, ALT+P for Next/Prev difference one can work-around the problem, but if the mouse us used...

Posted: 2012-10-31, 11:08 UTC
by MVV
When you edit text, you shouldn't do that with mouse...
Even if you like mouse, Alt+N and Del is MUCH EASIER AND FASTER so you should drop your mouse immediately if you need to do such task.

Posted: 2012-10-31, 11:16 UTC
by wanderer
MVV wrote:When you edit text, you shouldn't do that with mouse...
Even if you like mouse, Alt+N and Del is MUCH EASIER AND FASTER so you should drop your mouse immediately if you need to do such task.
Well, that's a matter of user preference, since a simple copy-paste between two windows (without altering the text) can be easily done with the mouse too. That's why the buttons exist after all, to be pressed. :) Also, sometimes you start playing with the mouse, going to "next difference" without expecting to edit stuff but if you end up editing, a "cut" would be very useful in the menu.

Posted: 2012-10-31, 11:53 UTC
by MVV
Well, maybe TC really should have 'Cut' context menu item since it already have items 'Copy' and 'Paste'...

Posted: 2012-11-01, 14:21 UTC
by ghisler(Author)
The problem is that the mouse button has the focus, so TC wouldn't know on which side to delete the selection.

Posted: 2012-11-01, 14:34 UTC
by wanderer
!!!

I hadn't noticed that. I assumed that when you rightclick on one of the windows (left or right), the window received the focus.

Why is that a problem though? Paste seems to work.