Left mouse button selection mode and multiple files selected

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
DVV
Junior Member
Junior Member
Posts: 28
Joined: 2009-09-30, 13:19 UTC

Left mouse button selection mode and multiple files selected

Post by *DVV »

When the Mouse selection mode is set to Left mouse button and there are multiple files selected in the file panels, a single click of a left mouse button removes all the selection from all the previously selected files.
Is the a custom option (or trick) to preserve the selection in the file panel when a left mouse button is clicked?
User avatar
Dalai
Power Member
Power Member
Posts: 9968
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Left mouse button selection mode and multiple files selected

Post by *Dalai »

This can be done the same way as in other Windows dialogs: press Ctrl while clicking the left mouse button to preserve the existing selection and just change (extend or reduce) the selection of the object you clicked on.

Holding the Shift key makes the selection contiguous while Ctrl allows to select non-contiguous blocks of objects.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Left mouse button selection mode and multiple files selected

Post by *ghisler(Author) »

Additionally you can click on the icons to just toggle the select of that specific file/folder and keep all the other selections.
Author of Total Commander
https://www.ghisler.com
DVV
Junior Member
Junior Member
Posts: 28
Joined: 2009-09-30, 13:19 UTC

Re: Left mouse button selection mode and multiple files selected

Post by *DVV »

Thank you, this works.
So the Mouse selection mode is actually not only about Left Mouse Button (LMB) and Right Mouse Button (RMB), it also includes different behavior.
Let me explain my use case to illustrate the difficulties I'm having with the Mouse selection mode.
I was using the option Use right mouse button (as in NC) - context menu after 1 second many years. The behavior with regards to selected files is perfect for me: the selected files remain selected when I click anywhere with either a LMB or RMB. However, I realized that the most usages of RMB today are connected to showing the context menu (achieved with a long RMB click during 1 second) rather than to selecting files.
So I've decided to get rid of long RMB clicks by selecting the Left mouse button (Windows standard). This, however, additionally changed the behavior to remove all the selection from files when either LMB or RMB is pressed. This is the exact behavior of Windows Explorer which irritates me and let me explain you why. Let's consider the following situation:
1) We have a folder with a lot of files.
2) We are looking through the files in this folder and mark files one by one. To do this, we sometimes scroll the view (to see the next files) and we should always remember to hold Ctrl while clicking a new file to be selected.
3) Let's imagine we've already selected dozens different files in the folder. At this point, any incautious mouse click (e.g. unintentional mouse click right after scrolling or just a click when you forgot to hold the Ctrl key) removes all the selection from all the files, and you should do everything from the beginning!
This situation is definitely what I do not want. In the same time, I'd like to have an ability to show a context menu by a short RMB click instead of a long RMB click. Is this behavior possible?
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Left mouse button selection mode and multiple files selected

Post by *Hacker »

DVV,
Not directly, but you could keep RMB selection mode and e.g. remap the middle mouse button to call the context menu using an external tool like AutoHotkey. This script would do that:

Code: Select all

#IfWinActive, ahk_class TTOTAL_CMD
MButton::AppsKey
HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Left mouse button selection mode and multiple files selected

Post by *petermad »

2DVV
I use these settings in the [Configuration] section of my wincmd.ini file

Code: Select all

UseRightButton=1
ContextProgress=0
PopupDelay=250
Then I hardly notice the delay, but still have the benefit of the right-click selection.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Dalai
Power Member
Power Member
Posts: 9968
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Left mouse button selection mode and multiple files selected

Post by *Dalai »

DVV wrote: 2022-07-14, 10:10 UTC 3) Let's imagine we've already selected dozens different files in the folder. At this point, any incautious mouse click (e.g. unintentional mouse click right after scrolling or just a click when you forgot to hold the Ctrl key) removes all the selection from all the files [...]
This is exactly how Explorer and all other common Windows dialogs (Open, Save etc.) behave. Hence, it's to be expected when a mouse selection mode called "Windows standard" is set in TC.

BTW, you can call the context menu without any delay with Shift+F10, regardless of which mouse selection mode is set.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
DVV
Junior Member
Junior Member
Posts: 28
Joined: 2009-09-30, 13:19 UTC

Re: Left mouse button selection mode and multiple files selected

Post by *DVV »

Pretty nice solutions are here, thank you!
So far I've ended up with:
1. The Mouse selection mode remains Use right mouse button (as in NC) to not lose the previous selection when LMB or RMB is clicked.
2. Either Peter's solution with wincmd.ini

Code: Select all

PopupDelay=200
or Hacker's solution with AutoHotkey's script can be used.
Here is a script I've created for AutoHotKey 2:

Code: Select all

#HotIf WinActive("ahk_class TTOTAL_CMD")
RButton::
{
  MouseClick "Left"
  Send "+{F10}"
}
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Left mouse button selection mode and multiple files selected

Post by *Hacker »

DVV,

Code: Select all

MouseClick "Left"
Ahh, right, I am using SingleClickStart, apologies.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply