huettenhain / frc

A FAR Manager Plugin for Integration with Everything File Search
12 stars 1 forks source link

Global context menu commands #5

Open pasha-zzz opened 2 months ago

pasha-zzz commented 2 months ago

client.exe may be added to system context menu and then entries will be visible not only on Everything but in other software... Something like:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Show in Far Manager]
"Icon"="\"C:\\Program Files\\Far Manager\\Far.exe\""

[HKEY_CLASSES_ROOT\*\shell\Show in Far Manager\command]
@="\"C:\\Program Files\\Far Manager\\Plugins\\FRC\\client.exe\" GOTO \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\Show in Far Manager]
"Icon"="\"C:\\Program Files\\Far Manager\\Far.exe\""

[HKEY_CLASSES_ROOT\Directory\shell\Show in Far Manager\command]
@="\"C:\\Program Files\\Far Manager\\Plugins\\FRC\\client.exe\" GOTO \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\Open folder in Far Manager]
"Icon"="\"C:\\Program Files\\Far Manager\\Far.exe\""

[HKEY_CLASSES_ROOT\Directory\shell\Open folder in Far Manager\command]
@="\"C:\\Program Files\\Far Manager\\Plugins\\FRC\\client.exe\" INTO \"%1\""

Can be converted to the CMD file for paths substitution. And in cmd we can localize menu entries for system language.

huettenhain commented 2 months ago

That actually sound pretty cool, but what's the ask; do you want me to include this in the repository? I am happy to, but you can also make this part of a pull request if you prefer?