|
|
insert-immediate
Sibling tests covered the slug helper, link-description, demote-subtree, format-roam-node, and the copy-todo-to-today hook. This batch covers the tag/find/insert family:
- `cj/org-roam-filter-by-tag`: returns a predicate; keeps matching nodes, rejects non-matching.
- `cj/org-roam-list-notes-by-tag`: returns file paths for matches, empty list when no matches.
- `cj/org-roam-add-node-to-agenda-files-finalize-hook`: removes itself, adds the captured buffer's file to `org-agenda-files` when not aborted, skips on abort.
- `cj/org-roam-find-node`: calls `org-roam-node-find` with a filter predicate + templates.
- `cj/org-roam-find-node-topic` / `-recipe`: delegate with the right tag + key (+ subdir).
- `cj/org-roam-node-insert-immediate`: appends `:immediate-finish t` to the first capture template before calling `org-roam-node-insert`.
Top-level `defvar`s for `org-note-abort`, `org-agenda-files`, `org-roam-capture-templates`, and `org-capture-after-finalize-hook` make the let-bindings reach the dynamic vars under lexical scope.
|