Suggest: Option to hide Windows Context Menu items when >N items are selected and right-clicked.

Discussion related to "Everything" 1.5 Alpha.
Post Reply
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Suggest: Option to hide Windows Context Menu items when >N items are selected and right-clicked.

Post by raccoon »

I'd be very interested in an option that excludes Windows Explorer context menu items from appearing in the selected results right-click menu, if there are greater than 1, or 100 or 10,000 items selected (user's choice). Instead, only Everything's own menu items will appear, absent the Explorer items.

Optional: Display a menu item named "Explorer Menu" that will then launch a request for the Windows Explorer context menu, when >N items are selected and right-clicked upon. (Let N be 0 to INF)

This will prevent Everything from seizing up for 20 minutes if I have 2 or 20 million items selected by accident.
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: Suggest: Option to hide Windows Context Menu items when >N items are selected and right-clicked.

Post by void »

Hit Escape to cancel the creation of the context menu in Everything 1.5.

-or-

Use the main File menu to access the Everything only context menu items.


I will consider an ini option to ignore context menu shell extensions when more than x items are selected. (or show the context menu shell extensions under a submenu)
Thank you for the suggestion.
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Suggest: Option to hide Windows Context Menu items when >N items are selected and right-clicked.

Post by SuperDude »

Disclaimer: The following is confirmed on my computer. Adjust this key is at your own peril.

There is a registry key that controls this setting. The registry key is:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer

and the sub-key you want to set is: "MultipleInvokePromptMinimum"

By default, the maximum number of files that can be selected that will still show Explorer context menu items is 15.

The default key looks like this when exported to a .reg file:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"MultipleInvokePromptMinimum"=dword:0000000F


... where dword:0000000f equals 15 files. By changing this value you can set the number of files that can be selected. For example:

dword:0x0000000A = 10
dword:0x0000000F = 15 (Default limit)
dword:0x00000014 = 20
dword:0x00000019 = 25
dword:0x0000001e = 30
dword:0x00000023 = 35
dword:0x00000028 = 40
dword:0x0000002D = 45
dword:0x00000032 = 50
dword:0x00000037 = 55
dword:0x0000003C = 60
dword:0x000F4240 = 1,000,000 files (Don't do this)

Setting the limit to 5 files would be dword:00000005
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Suggest: Option to hide Windows Context Menu items when >N items are selected and right-clicked.

Post by SuperDude »

Little side note to my previous post: Modifying the "MultipleInvokePromptMinimum"=dword value also affects Windows/File Explorer context menus. Setting the limit so it only applies within Everything will probably require @void's magic touch.
horst.epp
Posts: 1443
Joined: Fri Apr 04, 2014 3:24 pm

Re: Suggest: Option to hide Windows Context Menu items when >N items are selected and right-clicked.

Post by horst.epp »

Setting this value to high may lead to all sorts of problems not only in Everything.
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Suggest: Option to hide Windows Context Menu items when >N items are selected and right-clicked.

Post by SuperDude »

@horst.epp

Correct. I have mine set to 20 items since I often need to check hashes (using HashMyFiles) of identically named files that are the same size but are possibly actually different. I once had it set to 100, but then accidentally launched 100 programs at once. My computer did not like that at all, and it let me know it.
Post Reply