phibr0 / obsidian-commander

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

Hide the title bar icons if their checkCallback returns false #103

Open farcaller opened 1 year ago

farcaller commented 1 year ago

Describe the feature

A little quality-of-life improvement: it'd be great to hide the buttons in the title bar if they are checked and the check returns false. This way, the actions that cannot be invoked wouldn't even be a visual option (as opposed to a button that does nothing right now).

Does this fix a problem? If so, specify.

Currently if the action is checked and it cannot be invoked, clicking a button does nothing.

Did you consider other alternatives?

The menu actions work as expected, but that's one extra click and it's less visual.

Screenshots and recordings

No response