Open Vzz1c opened 3 months ago
class="directory"
ormaxfolders="1"
, we need to differentiate betweenDirectory\Background\shell
andFolder\shell
.
ShellAnything does not differentiate between right-clicking a directory background or the right-clicking the directory itself. If you right-click on any of the following :
it does not matter for ShellAnything. All these events are evaluated as the same event for ShellAnything : "a directory was selected, now show the menus when a single directory was clicked".
The code in the shell extension can detect that but this information is not used.
let's say I customize a 7zip, we don't want to have a menu command to compress a folder when we haven't selected a folder yet!
I am uncertain of what you mean. Are you referring to the menu that is shown when right-clicking a file/directory, dragging to another location and then releasing your mouse?
In File Explorer, if you right-click the white area after the last file on the right-pane, you will see menus that are related to this directory. A directory is selected even though you did not made any selection. This is not a feature of ShellAnything, it is baked-in File Explorer. For example, try the following :
C:\Users\%USERNAME%\AppData\Local\Temp
).Notice the option "Open PowerShell window here". This menu will open a PowerShell prompt located in this directory. Also, if you select menu "Properties", you will see properties of the Temp directory. This white area is referenced as the "directory background".
I'd like to add this feature, thanks!
Sure I would gladly accept a pull request to help improve ShellAnything. This feature would allow showing a menu only when the user right-click a white background or a directory. That would be great! Could you please elaborate on how you plan to implement this feature? Maybe setting a property selection.background
to true
or false
?
class="directory"
ormaxfolders="1"
, we need to differentiate betweenDirectory\Background\shell
andFolder\shell
, let's say I customize a 7zip, we don't want to have a menu command to compress a folder when we haven't selected a folder yet! I'd like to add this feature, thanks!