For Obsidian plugin development,
is it possible to assign one set of keyboard shortcuts for Plugin A and another set for Plugin B? (Because I’d like to reuse the same shortcut keys across them—such as Cmd+Shift+K—and I’m concerned about conflicts.)
For example:
Plugin A has its own custom view, and Plugin B also has its own custom view.
When the custom view of Plugin A is active, only Plugin A’s shortcuts should work.
When the custom view of Plugin B is active, only Plugin B’s shortcuts should apply.
Class View has an optional scope field. If you specify one and register hotkeys on it, it will have higher priority than global registered commands when the corresponding view is focused.
Are you a developer? Or are you just asking for help with hotkeys? You posted this in the Developers section, so you are going to get technical answers about creating plugins.
If you are not a developer, then let me know and I’ll move this topic to Help.