phibr0 / obsidian-commander

Commander - Obsidian Plugin | Add Commands to every part of Obsidian's user interface
MIT License
693 stars 34 forks source link

Configure distinct commands for left/middle click on ribbon items #105

Open ybnd opened 11 months ago

ybnd commented 11 months ago

Describe the feature

Configure distinct commands for left/middle click on ribbon items.

This could be especially useful for commands that change tab content or open new tabs.

Does this fix a problem? If so, specify.

When adding files to the ribbon together with the Open files with commands plugin, they can either open in the current tab or a new tab. So if you configure the command to open the file in the current tab, middle click will open in the current tab and vice verse, which is pretty jarring.

If the Commander plugin supports configuring separate commands for left/middle click, we could bind commands to open that file in current/new tab for a more consistent experience.

Did you consider other alternatives?

No response

Screenshots and recordings

No response