mirror of
https://github.com/org-roam/org-roam
synced 2025-08-03 12:27:23 -05:00
(feat): extract idle timer interval as a customizable value (#1122)
Co-authored-by: Jethro Kuan <jethrokuan95@gmail.com>
This commit is contained in:
@ -113,6 +113,11 @@ If nil, `find-file' is used."
|
|||||||
:type 'function
|
:type 'function
|
||||||
:group 'org-roam)
|
:group 'org-roam)
|
||||||
|
|
||||||
|
(defcustom org-roam-update-db-idle-seconds 2
|
||||||
|
"Number of idle seconds before triggering an Org-roam database update."
|
||||||
|
:type 'integer
|
||||||
|
:group 'org-roam)
|
||||||
|
|
||||||
(defcustom org-roam-include-type-in-ref-path-completions nil
|
(defcustom org-roam-include-type-in-ref-path-completions nil
|
||||||
"When t, include the type in ref-path completions.
|
"When t, include the type in ref-path completions.
|
||||||
Note that this only affects interactive calls.
|
Note that this only affects interactive calls.
|
||||||
@ -1716,7 +1721,7 @@ M-x info for more information at Org-roam > Installation > Post-Installation Tas
|
|||||||
(add-hook 'org-open-at-point-functions #'org-roam-open-id-at-point)
|
(add-hook 'org-open-at-point-functions #'org-roam-open-id-at-point)
|
||||||
(add-hook 'org-open-link-functions #'org-roam--open-fuzzy-link)
|
(add-hook 'org-open-link-functions #'org-roam--open-fuzzy-link)
|
||||||
(unless org-roam--file-update-timer
|
(unless org-roam--file-update-timer
|
||||||
(setq org-roam--file-update-timer (run-with-idle-timer 2 t #'org-roam--process-update-queue)))
|
(setq org-roam--file-update-timer (run-with-idle-timer org-roam-update-db-idle-seconds t #'org-roam--process-update-queue)))
|
||||||
(advice-add 'rename-file :after #'org-roam--rename-file-advice)
|
(advice-add 'rename-file :after #'org-roam--rename-file-advice)
|
||||||
(advice-add 'delete-file :before #'org-roam--delete-file-advice)
|
(advice-add 'delete-file :before #'org-roam--delete-file-advice)
|
||||||
(when (fboundp 'org-link-set-parameters)
|
(when (fboundp 'org-link-set-parameters)
|
||||||
|
Reference in New Issue
Block a user