update packages

This commit is contained in:
2026-06-27 11:34:21 +02:00
parent 4be4f859c4
commit 1aaef48596
246 changed files with 7997 additions and 4359 deletions

View File

@@ -567,7 +567,7 @@ Return the ID of the location."
;; caller.
(save-excursion
(goto-char p)
(if-let ((id (org-entry-get p "ID")))
(if-let* ((id (org-entry-get p "ID")))
(setf (org-roam-node-id org-roam-capture--node) id)
(org-entry-put p "ID" (org-roam-node-id org-roam-capture--node)))
(prog1

View File

@@ -1,13 +1,11 @@
;;; org-roam-dailies.el --- Daily-notes for Org-roam -*- coding: utf-8; lexical-binding: t; -*-
;;;
;; Copyright © 2020-2025 Jethro Kuan <jethrokuan95@gmail.com>
;; Copyright © 2020 Leo Vivier <leo.vivier+dev@gmail.com>
;; Author: Jethro Kuan <jethrokuan95@gmail.com>
;; Leo Vivier <leo.vivier+dev@gmail.com>
;; URL: https://github.com/org-roam/org-roam
;; Keywords: org-mode, roam, convenience
;; Package-Requires: ((emacs "26.1") (org-roam "2.1"))
;; This file is NOT part of GNU Emacs.

View File

@@ -4,8 +4,6 @@
;; Author: Jethro Kuan <jethrokuan95@gmail.com>
;; URL: https://github.com/org-roam/org-roam
;; Keywords: org-mode, roam, convenience
;; Package-Requires: ((emacs "26.1") (org "9.6") (org-roam "2.1"))
;; This file is NOT part of GNU Emacs.

View File

@@ -4,8 +4,6 @@
;; Author: Jethro Kuan <jethrokuan95@gmail.com>
;; URL: https://github.com/org-roam/org-roam
;; Keywords: org-mode, roam, convenience
;; Package-Requires: ((emacs "26.1") (org "9.6") (org-roam "2.1"))
;; This file is NOT part of GNU Emacs.

View File

@@ -28,6 +28,7 @@
;;; Code:
(require 'crm)
(require 'subr-x)
(eval-when-compile (require 'rx))
(require 'org-roam)
;;; Options
@@ -793,27 +794,41 @@ Assumes that the cursor was put where the link is."
;;;;;; Completion-at-point interface
(defconst org-roam-bracket-completion-re
"\\[\\[\\(\\(?:roam:\\)?\\)\\([^z-a]*?\\)]]"
"Regex for completion within link brackets.
We use this as a substitute for `org-link-bracket-re', because
`org-link-bracket-re' requires content within the brackets for a match.")
(rx "[["
(group (opt "roam:"))
;; Change from org-link-bracket-re: allow empty URI part
(group (zero-or-more
(or (not (any "[]\\"))
(and "\\" (zero-or-more "\\\\") (any "[]"))
(and (one-or-more "\\") (not (any "[]"))))))
"]]")
"Regexp for completion within link brackets.
Intended for org-roam-complete-link-at-point, which see.")
(defun org-roam-complete-link-at-point ()
"Complete \"roam:\" link at point to an existing Org-roam node."
(let (roam-p start end)
(when (org-in-regexp org-roam-bracket-completion-re 1)
(setq roam-p (not (or (org-in-src-block-p)
(string-blank-p (match-string 1))))
start (match-beginning 2)
end (match-end 2))
(list start end
(org-roam--get-titles)
:exit-function
(lambda (str &rest _)
(delete-char (- 0 (length str)))
(insert (concat (unless roam-p "roam:")
str))
(forward-char 2))))))
"Complete inside link brackets to an existing Org-roam node.
Targets [[$title]] and [[roam:$title]] links. [[id:$id][$description]]
links are not targeted to allow for changing link descriptions without
changing the target node."
(when-let* ((_ (org-in-regexp org-roam-bracket-completion-re 1))
(uri-start (match-beginning 1))
(title-start (match-beginning 2))
(end (match-end 2))
;; dont try to complete if point is in the delimiting brackets
(_ (<= title-start (point) end))
(_ (not (org-in-src-block-p))))
(list title-start end
(org-roam--get-titles)
:exit-function
(lambda (str &rest _)
"Replace title inserted by completion with ID and title."
(delete-region uri-start (point))
(insert "id:"
(org-roam-node-id (org-roam-node-from-title-or-alias
(substring-no-properties str)))
"][" str)
;; Move point after closing brackets
(forward-char 2)))))
(defun org-roam-complete-everywhere ()
"Complete symbol at point as a link completion to an Org-roam node.
@@ -821,7 +836,7 @@ This is a `completion-at-point' function, and is active when
`org-roam-completion-everywhere' is non-nil.
Unlike `org-roam-complete-link-at-point' this will complete even
outside of the bracket syntax for links (i.e. \"[[roam:|]]\"),
outside of the bracket syntax for links (i.e. \"[[|]]\"),
hence \"everywhere\"."
(when (and org-roam-completion-everywhere
(thing-at-point 'word)
@@ -833,7 +848,10 @@ hence \"everywhere\"."
:exit-function
(lambda (str _status)
(delete-char (- (length str)))
(insert "[[roam:" str "]]"))
(insert "[[id:"
(org-roam-node-id (org-roam-node-from-title-or-alias
(substring-no-properties str)))
"][" str "]]"))
;; Proceed with the next completion function if the returned titles
;; do not match. This allows the default Org capfs or custom capfs
;; of lower priority to run.
@@ -1095,13 +1113,7 @@ and when nil is returned the node will be filtered out."
(defun org-roam-tag-completions ()
"Return list of tags for completions within Org-roam."
(let ((roam-tags (mapcar #'car (org-roam-db-query [:select :distinct [tag] :from tags])))
(org-tags (cl-loop for tagg in org-tag-alist
nconc (pcase tagg
('(:newline)
nil)
(`(,tag . ,_)
(list tag))
(_ nil)))))
(org-tags (seq-filter #'stringp (mapcar #'car org-tag-alist))))
(seq-uniq (append roam-tags org-tags))))
;;;; Editing

View File

@@ -4,8 +4,6 @@
;; Author: Jethro Kuan <jethrokuan95@gmail.com>
;; URL: https://github.com/org-roam/org-roam
;; Keywords: org-mode, roam, convenience
;; Package-Requires: ((emacs "26.1") (org "9.6") (org-roam "2.1"))
;; This file is NOT part of GNU Emacs.

View File

@@ -1,14 +1,14 @@
;; -*- no-byte-compile: t; lexical-binding: nil -*-
(define-package "org-roam" "20260224.1637"
(define-package "org-roam" "20260425.1623"
"A database abstraction layer for Org-mode."
'((emacs "26.1")
'((emacs "27.1")
(compat "30.1")
(org "9.6")
(emacsql "4.1.0")
(magit-section "3.0.0"))
(emacsql "4.3.3")
(magit-section "4.4.2"))
:url "https://github.com/org-roam/org-roam"
:commit "20934cfb5a2e7ae037ec10bbc81ca97478738178"
:revdesc "20934cfb5a2e"
:commit "c54c523dec175695645399705606ea19056a3053"
:revdesc "c54c523dec17"
:keywords '("org-mode" "roam" "convenience")
:authors '(("Jethro Kuan" . "jethrokuan95@gmail.com"))
:maintainers '(("Jethro Kuan" . "jethrokuan95@gmail.com")))

View File

@@ -1,10 +1,9 @@
;;; org-roam-protocol.el --- Protocol handler for roam:// links -*- coding: utf-8; lexical-binding: t; -*-
;; Copyright © 2020-2025 Jethro Kuan <jethrokuan95@gmail.com>
;; Author: Jethro Kuan <jethrokuan95@gmail.com>
;; URL: https://github.com/org-roam/org-roam
;; Keywords: org-mode, roam, convenience
;; Package-Requires: ((emacs "26.1") (org "9.6") (org-roam "2.1"))
;; This file is NOT part of GNU Emacs.

View File

@@ -5,9 +5,9 @@
;; Author: Jethro Kuan <jethrokuan95@gmail.com>
;; URL: https://github.com/org-roam/org-roam
;; Keywords: org-mode, roam, convenience
;; Package-Version: 20260224.1637
;; Package-Revision: 20934cfb5a2e
;; Package-Requires: ((emacs "26.1") (compat "30.1") (org "9.6") (emacsql "4.1.0") (magit-section "3.0.0"))
;; Package-Version: 20260425.1623
;; Package-Revision: c54c523dec17
;; Package-Requires: ((emacs "27.1") (compat "30.1") (org "9.6") (emacsql "4.3.3") (magit-section "4.4.2"))
;; This file is NOT part of GNU Emacs.

View File

@@ -1095,8 +1095,7 @@ Completions within link brackets are provided by
org-roam-complete-link-at-point.
The completion candidates are the titles and aliases for all Org-roam
nodes. Upon choosing a candidate, a roam:Title link will be inserted,
linking to node of choice.
nodes. Choosing a candidate inserts an ID link to the chosen node.

File: org-roam.info, Node: Completing anywhere, Prev: Completing within Link Brackets, Up: Completion
@@ -1107,9 +1106,8 @@ File: org-roam.info, Node: Completing anywhere, Prev: Completing within Link B
The same completions can be triggered anywhere for the symbol at point
if not within a bracketed link. This is provided by
org-roam-complete-everywhere. Similarly, the completion candidates
are the titles and aliases for all Org-roam nodes, and upon choosing a
candidate a roam:Title link will be inserted linking to the node of
choice.
are the titles and aliases for all Org-roam nodes, and choosing a
candidate inserts an ID link to the chosen node.
This is disabled by default. To enable it, set
org-roam-completion-everywhere to t:
@@ -2393,7 +2391,7 @@ Appendix D Variable Index
[index]
* Menu:
* org-roam-completion-everywhere: Completing anywhere. (line 18)
* org-roam-completion-everywhere: Completing anywhere. (line 17)
* org-roam-dailies-capture-templates: Configuration. (line 12)
* org-roam-dailies-directory: Configuration. (line 8)
* org-roam-db-extra-links-elements: What to cache. (line 34)
@@ -2444,61 +2442,61 @@ Node: Citations35304
Node: Using the Cached Information35870
Node: Completion37013
Node: Completing within Link Brackets37808
Node: Completing anywhere38258
Node: Encryption39034
Node: The Templating System39790
Node: Template Walkthrough40505
Node: Org-roam Template Expansion42413
Node: Extensions44279
Node: org-roam-protocol44515
Node: Installation (1)44977
Node: Linux45812
Node: Mac OS47334
Ref: Testing org-protocol50101
Node: Windows51110
Node: The roam-node protocol51853
Node: The roam-ref protocol52240
Node: org-roam-graph53418
Node: Graph Options55307
Node: org-roam-dailies56313
Node: Configuration56600
Node: Usage57395
Node: org-roam-export59124
Node: Performance Optimization59642
Node: Garbage Collection59848
Node: The Org-mode Ecosystem60642
Node: Browsing History with winner-mode61139
Node: Versioning Notes62010
Node: Full-text search with Deft62801
Node: Org-journal63552
Node: Org-download64364
Node: mathpixel64881
Node: Org-noter / Interleave65458
Node: Bibliography65850
Node: Spaced Repetition66607
Node: FAQ67263
Node: How do I have more than one Org-roam directory?67731
Node: How do I create a note whose title already matches one of the candidates?69302
Node: How can I stop Org-roam from creating IDs everywhere?70203
Node: How do I migrate from Roam Research?70895
Node: How to migrate from Org-roam v1?71392
Node: How do I publish my notes with an Internet-friendly graph?72782
Node: Configure org-mode for publishing74137
Node: Overriding the default link creation function75615
Node: Copying the generated file to the export directory76287
Node: Developer's Guide to Org-roam77258
Node: Org-roam's Design Principle77530
Node: Building Extensions and Advanced Customization of Org-roam79512
Node: Accessing the Database80766
Node: Accessing and Modifying Nodes81495
Node: Extending the Capture System83360
Node: Appendix84887
Node: Note-taking Workflows85074
Node: Ecosystem86319
Node: Keystroke Index86436
Node: Command Index86587
Node: Function Index86740
Node: Variable Index88518
Node: Completing anywhere38222
Node: Encryption38960
Node: The Templating System39716
Node: Template Walkthrough40431
Node: Org-roam Template Expansion42339
Node: Extensions44205
Node: org-roam-protocol44441
Node: Installation (1)44903
Node: Linux45738
Node: Mac OS47260
Ref: Testing org-protocol50027
Node: Windows51036
Node: The roam-node protocol51779
Node: The roam-ref protocol52166
Node: org-roam-graph53344
Node: Graph Options55233
Node: org-roam-dailies56239
Node: Configuration56526
Node: Usage57321
Node: org-roam-export59050
Node: Performance Optimization59568
Node: Garbage Collection59774
Node: The Org-mode Ecosystem60568
Node: Browsing History with winner-mode61065
Node: Versioning Notes61936
Node: Full-text search with Deft62727
Node: Org-journal63478
Node: Org-download64290
Node: mathpixel64807
Node: Org-noter / Interleave65384
Node: Bibliography65776
Node: Spaced Repetition66533
Node: FAQ67189
Node: How do I have more than one Org-roam directory?67657
Node: How do I create a note whose title already matches one of the candidates?69228
Node: How can I stop Org-roam from creating IDs everywhere?70129
Node: How do I migrate from Roam Research?70821
Node: How to migrate from Org-roam v1?71318
Node: How do I publish my notes with an Internet-friendly graph?72708
Node: Configure org-mode for publishing74063
Node: Overriding the default link creation function75541
Node: Copying the generated file to the export directory76213
Node: Developer's Guide to Org-roam77184
Node: Org-roam's Design Principle77456
Node: Building Extensions and Advanced Customization of Org-roam79438
Node: Accessing the Database80692
Node: Accessing and Modifying Nodes81421
Node: Extending the Capture System83286
Node: Appendix84813
Node: Note-taking Workflows85000
Node: Ecosystem86245
Node: Keystroke Index86362
Node: Command Index86513
Node: Function Index86666
Node: Variable Index88444

End Tag Table