tweak(org): separate roam tags from types
- No longer hard-code fontification of tags and types in roam completion. - Prefix types with @ and tags with # -- makes them easier to search for in completion -- and swap types and hierarchy columns. I.e. before: TYPE TITLE [TAG [TAG...]] after: TITLE @TYPE [#TAG [#TAG...]] - Exclude unwanted (i.e. meta) tags from public display, like ATTACH, ARCHIVE, or anything in org-num-skip-tags.
This commit is contained in:
parent
11cc896e8f
commit
7304a8de8f
2 changed files with 34 additions and 19 deletions
|
@ -72,12 +72,17 @@ In case of failure, fail gracefully."
|
|||
(file-truename)
|
||||
(file-name-as-directory))
|
||||
org-roam-node-display-template
|
||||
"${doom-hierarchy:*} ${doom-tags:45}"
|
||||
(format "${doom-hierarchy:*} %s %s"
|
||||
(propertize "${doom-type:15}" 'face 'font-lock-keyword-face)
|
||||
(propertize "${doom-tags:-1}" 'face 'org-tag))
|
||||
org-roam-completion-everywhere t
|
||||
org-roam-db-gc-threshold most-positive-fixnum
|
||||
;; Reverse the default to favor faster searchers over slower ones.
|
||||
org-roam-list-files-commands '(fd fdfind rg find))
|
||||
|
||||
(add-to-list 'org-roam-node-template-prefixes '("doom-tags" . "#"))
|
||||
(add-to-list 'org-roam-node-template-prefixes '("doom-type" . "@"))
|
||||
|
||||
(setq-hook! 'org-roam-find-file-hook
|
||||
org-id-link-to-org-use-id +org-roam-link-to-org-use-id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue