-
Notifications
You must be signed in to change notification settings - Fork 0
Visibility Rules
Visibility rules let each Dock appear only in the parts of the vault where it is useful.
Open Visibility for the Dock you want to configure.
Ledge evaluates rules like this:
- If there are no enabled include rules with a value, the Dock is allowed everywhere.
- If include rules exist, the current note must match at least one include rule.
- If the current note matches any enabled exclude rule, the Dock is hidden.
visible = allowed by include rules AND not matched by an exclude rule
Exclude always wins.
Use include rules when the Dock should only exist in specific contexts.
Example: show a Media Dock only inside a media folder.
Match by: Folder path
Value: 20_Personal_Life/25_Media_Tracker
Once this enabled include rule exists, the Dock will not appear outside that folder unless another include rule matches.
Use exclude rules when a Dock should normally appear everywhere except a few places.
Example:
Match by: Note name
Value: Homepage
Matches the file name regardless of its folder. The .md extension is optional.
Homepage and Homepage.md both match a note named Homepage.md.
Matches one exact vault-relative file path.
Projects/Project A/Dashboard.md
Use this when two notes have the same name but live in different folders.
Matches every file inside that folder and all descendant folders.
Projects/Work
also matches:
Projects/Work/Client A/Notes.md
A leading # is optional. Tag rules also match nested tags.
A rule for #media matches both #media and tags such as #media/movie.
Rules of the same group behave like OR conditions. If any enabled include rule matches, the include side passes. Any matching exclude rule then hides the Dock.
A disabled rule has no effect, so you can temporarily turn a rule off without deleting it.