francostellari / NppPlugins

Other
111 stars 7 forks source link

[Feature Request] RunMe with "open" or "run" shell entry instead of default shell entry #19

Open ghost opened 3 years ago

ghost commented 3 years ago

Pressing Shift+F5 will open the file in the default settings. I tend to associate most text files (ps1, reg, etc.) with Notepad++ by adding registry entry like:

[HKCR\regfile\shell] @="edit"

So that I can edit them by double clicking (since it's the most frequent thing I do). But with this registry edit Shift+F5 won't work as the default shell action is "edit" instead of "open".

It will be nice if RunMe can associate commands in [HKCR\filetype\shell\open] or [HKCR\filetype\shell\run] instead of [HKCR\filetype\shell\edit], so that I can double click a reg or PS1 file and directly press Shift+F5 to run it.

francostellari commented 2 years ago

RunMe is designed to perform a shellexecution which is the default action for a given file. It is equivalent to double clicking the file. If I have time I will investigate selecting other options associated with the file type.