enhance: display namespace when possible

This commit is contained in:
Tienson Qin
2024-09-13 17:29:56 +08:00
parent bf50c8ca02
commit 2d2cd2e103
6 changed files with 72 additions and 55 deletions

View File

@@ -232,7 +232,10 @@
"whiteboard"
:else
"page")
title (title/block-unique-title page)
parent (:logseq.property/parent entity)
title (if (and parent (not (ldb/class? parent)))
(str (:block/title parent) "/" (title/block-unique-title page))
(title/block-unique-title page))
title' (if source-page (str title " -> alias: " (:block/title source-page)) title)]
(hash-map :icon icon
:icon-theme :gray