Avni Bilgin115 downloadsSets the left and right sidebar widths per note based on frontmatter properties or tags.
Set the width of the left and right sidebars per note, based on a note's frontmatter properties or tags. Useful when some notes need a wide file explorer or a roomy right sidebar while others should stay compact.
You define rules in the plugin settings. Each rule has:
When you open a note, the plugin checks it against your rules from top to bottom and applies the first one that matches.
A rule matches a note when either is true:
[!IMPORTANT] For a property, only the key has to exist — its value is irrelevant.
home_sidebars: (empty),home_sidebars: falseorhome_sidebars: anythingall match equally. You do not need to set it totrue.
In the plugin settings, add a rule: property home_sidebars, left 400, right
empty. Then add that key to any note's frontmatter — no value needed:
---
home_sidebars:
---
Opening that note widens the left sidebar to 400 px. Notes without the key keep whatever width they had.
Prefer tags? Use a rule with a tag instead — e.g. #wide applies to every
note carrying that tag.
The When no rule matches setting controls what happens on notes that don't match any rule:
main.js, manifest.json, and styles.css from the latest
release.<your vault>/.obsidian/plugins/custom-sidebar-width/.This plugin is desktop-only, because mobile sidebars behave as overlays rather than fixed-width panes.
npm install
npm run dev # watch build
npm run build # production build + type check