mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(feat): apply error face if file link is broken (#560)
This commit is contained in:
@ -14,6 +14,7 @@
|
||||
### Features
|
||||
* [#538](https://github.com/jethrokuan/org-roam/pull/538) Optionally use text in first headline as title
|
||||
* [#553](https://github.com/jethrokuan/org-roam/pull/553) Add prefix argument to `org-roam-db-build-cache` for forcing rebuilds
|
||||
* [#560](https://github.com/jethrokuan/org-roam/pull/560) Apply 'error face to distinguish broken links
|
||||
|
||||
## 1.1.0 (21-04-2020)
|
||||
|
||||
|
@ -644,7 +644,9 @@ Applies `org-roam-link-current' if PATH corresponds to the
|
||||
currently opened Org-roam file in the backlink buffer, or
|
||||
`org-roam-link-face' if PATH corresponds to any other Org-roam
|
||||
file."
|
||||
(cond ((and (org-roam--in-buffer-p)
|
||||
(cond ((not (file-exists-p path))
|
||||
'error)
|
||||
((and (org-roam--in-buffer-p)
|
||||
(org-roam--backlink-to-current-p))
|
||||
'org-roam-link-current)
|
||||
((org-roam--org-roam-file-p path)
|
||||
|
Reference in New Issue
Block a user