CursorAI/Project Rule/logseq-asset-linker.mdc
Logseq Asset Linker
GitHub Link
Rule Contents
Description
- This rule helps convert file paths into relative Markdown links for Logseq
- Logseq uses namespaces to add hierarchy in the file system
- In Logseq, page titles with namespaces (e.g.,
[[Work/Projects/Logseq]]) become filenames with double underscores (Work__Projects__Logseq.md) - This allows Logseq to show hierarchical namespaces while storing files in a single directory
- Example:
[[Parent/Child/Grandchild]]becomesParent__Child__Grandchild.md
Use Case 1: Path Name to Markdown Asset Link
Use Case 2: Namespace Name to Asset Path
File Link Handling Instructions
Key Rules and Best Practices