pjeby / pane-relief

Obsidian plugin for per-pane history, pane movement/navigation hotkeys, and more
223 stars 6 forks source link

Pinned state not visible when maximized #56

Open pjeby opened 3 months ago

pjeby commented 3 months ago

When a tab is maximized, there's no way to see its pinned state. The leaf's .tabHeaderStatusPinEl needs to be moved from the .tabHeaderStatusContainerEl to its view header, and back again when unmaximized. The .setPinned() method needs to be wrapped so that fresh pins are moved right away.

This will probably require refactoring the existing maximize implementation (which is something of a hack). It might also make sense to move the tab's close "x" (.tabHeaderCloseEl) onto the view header as well, perhaps as the last action before the "more" menu items.