Handling specific case for links abbreviations: only hide those part of link, which duplicate page name.
This perfectly reduces redundant information.
Demo
Example
Links in page «Namespace/Subpage»:
* [[Namespace/Subpage/Item 1]]
* [[Namespace/Subpage/Item 2]]
* [[Namespace/Subpage/Item 3]]
Will be displayed as:
* [[↳ Item 1]]
* [[↳ Item 2]]
* [[↳ Item 3]]
And in page «Namespace» — as:
* [[↳ Subpage/Item 1]]
* [[↳ Subpage/Item 2]]
* [[↳ Subpage/Item 3]]
But in any «Other Page» — will be displayed fully:
* [[Namespace/Subpage/Item 1]]
* [[Namespace/Subpage/Item 2]]
* [[Namespace/Subpage/Item 3]]
How to install?
- Copy this code to
<PATH TO YOUR GRAPH>/logseq/custom.js
file. - Enjoy the