mirror of
https://github.com/org-roam/org-roam
synced 2025-09-12 15:36:48 -05:00
(fix)db: update atime on file access (#2174)
Previously we only updated the database on file save, but we need to update the file's atime on file access, so we hook into `find-file-hook` to do so. We only update the file atime if the file exists in the file table.
This commit is contained in:
@@ -73,7 +73,7 @@ It takes a single argument NODE, which is an `org-roam-node' construct."
|
||||
:group 'org-roam
|
||||
:type 'function)
|
||||
|
||||
(defcustom org-roam-node-default-sort 'file-mtime
|
||||
(defcustom org-roam-node-default-sort 'file-atime
|
||||
"Default sort order for Org-roam node completions."
|
||||
:type '(choice
|
||||
(const :tag "none" nil)
|
||||
|
Reference in New Issue
Block a user