-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
How to apply the KeyBinding Manager to invoke an external program configured for the OpenWith...
command?
#1083
Comments
It's not currently supported since the external programs are not bound to known commands. However, after giving this some thought I think what I can do is add an option to provide a "KeyboardShortcut" to the entry in ExternalPrograms and then attempt to add that shortcut to the keybindings. The main issue with a short cut is that there will be no context. So this would have to be generically tied to the editor surface. It won't work in the folder browser. |
Applying the "KeyboardShortcut" option for "ExternalPrograms" always to the current document (if one exists)
|
The keyboard bindings are not global - they are tied to the editor anyway so they won't work outside of that context regardless. There are bindings in the UI that forward to other tasks, but those are implementation specific and is not something that you would be linking to. External programs thus are tied to the editor surface only. So it won't work in the table editor. The External program shortcuts are added to context menus in various contexts so they may apply to files in the folder browser, the editor and a few other places, but that's explicitly made so by the application. There's no way to make this more generic. As it is it'll be hard enough to find key combos that can actually be used and not interfere with existing behavior. I've renamed the key to |
Ah that's a good point. I have to move the original code into the command and then use the command in both places. Currently the shortcut menu option is inline. Will take a look. |
Updated in 3.2.6 It ended up not being quite so easy because of the different use cases where the execution can be run from. I ended up with a helper that manages the saving of the file if unsaved consistently that is called from the calling context. FWIW, the two contexts are a file in the Folder Browser, or from within the editor and the current file. |
It works like a charm. Thank you so much! I can use this little time saver very often when writing documentation. |
Thanks for the feedback! Aloha. |
I am glad to see that mm's KeyBinding Manager has been improved recently, especially because I hope that it would fulfill also the last part of feature request #947. However, I could not figure out how to extend
MarkdownMonster-KeyBindings.json
properly.I also asked ChatGPT 4 which responded:
Please give me an example which may also be added to the fine Markdown Monster Documentation.
The text was updated successfully, but these errors were encountered: