-
-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow keyboard shortcuts to be customised #476
Comments
This is part of some broader work to make accelerators updatable. To do that, the accelerator text on menu items will need to be dynamically generated (rather than fixed in the .rc file). That then requires that items that have multiple accelerators have the "default" accelerator (the one shown on the menu entry) chosen in a deterministic way. That isn't going to work with the .rc file, since entries there can be rearranged incidentally, when adding or updating entries. Additionally, I'm not sure that LoadAccelerators() makes any guarantees about the order in which items appear in the loaded table anyway. Fixed ordering is important, since without it, items that have multiple accelerators could have different menu accelerator text generated in different builds. For example, a search can be initiated using either Ctrl+F or F3. Only one of those shortcuts should appear on the menu and that choice should be explicit and deterministic. By defining the accelerators in code, the "default" accelerator can be set by the order in which accelerators are defined. This is part of the work for issue #476.
This is part of the work for issue #476.
Previously, the strings were hardcoded into the .rc file. Dynamically generating the strings is needed to allow accelerators to be updated. This is part of the work for issue #476.
Is the LUA plugin functionality still available though, while this is being worked on? Just asking, because I have the following file/directory-layout for EPP (Version 1.5.0.2485, latest dev-build at the time of writing this):
So, as you can see I have the
The shortcut EDIT / UPDATE: According to: Load plugins on application startup the command-line switch is actually called For testing, the file
However, EPP just doesn't pick up any of this, and none of those accelerators defined in the So, either I'm doing something wrong, or this functionality is not currently available in the latest dev builds. Any help and additional tips on how to enable the plugin functionality for keyboard accelerators (keyboard shortcuts), would be greatly appreciated. Cheers, Sam |
This is part of the work for issue #476.
Sorry, the command line in
I've updated
I haven't done much work on the plugins system for a while, but it should still work. Edit: Just to add, you can also view a full list of command line options by running |
Thanks! All of the above was super helpful! I will take further plugin related discussion to the appropriate location, presumably either to the official "Explorer++" forums or to the Github sections indended for discussion or issues. |
There are a few different ways this could be implemented:
command
andwhen
clauses. The big advantage here would be flexibility. For example, a shortcut could invoke a custom command only when a particular folder is opened in the current tab. The downside would be a potentially steeper learning curve. If implemented this way, thecommand
andwhen
clauses could be written in Lua and leverage the plugins API.In any case, the implementation will require a number of changes:
TranslateAccelerator
. Using a custom method will make it easier to execute custom commands and check constraints.shortcut_keys
functionality available to plugins.shortcut_keys
field.when
clauses.The text was updated successfully, but these errors were encountered: