Compare contents - edit mode - delete selected text

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Compare contents - edit mode - delete selected text

Post 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...
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post 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.
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post 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.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Well, maybe TC really should have 'Cut' context menu item since it already have items 'Copy' and 'Paste'...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post 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.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Post Reply