phibr0 / obsidian-advanced-toolbar

Advanced Toolbar - Obsidian Plugin | Enhances Obsidian Mobile's Quick Action Toolbar
GNU Affero General Public License v3.0
88 stars 3 forks source link

Hide the toolbar if active view is not MarkdownView #35

Open zsviczian opened 1 year ago

zsviczian commented 1 year ago

See this issue: https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/798

I recommend adding an app.workspace.off("active-leaf-change",show_hide_toolbar); and checking if activeLeaf.view is a MarkdownView

brimwats commented 1 year ago

worth noting that this only happens with "always show toolbar". Perhaps an excalidraw compatibility mode toggle? (I feel silly that it's been months and I didn't know there were undo/erase buttons!