diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-14 03:26:10 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-14 03:26:10 -0500 |
| commit | 4a2c51845893ae847f0496c70319dcaa34d92c41 (patch) | |
| tree | b2e66970d464caf7ff37e185be7265193ea54258 /modules/custom-buffer-file.el | |
| parent | 29c7e7b24c87859fa1ffc90edaef82dca67b7a9c (diff) | |
| download | dotemacs-4a2c51845893ae847f0496c70319dcaa34d92c41.tar.gz dotemacs-4a2c51845893ae847f0496c70319dcaa34d92c41.zip | |
test(org-noter-config): cover document path, find/create, session, start, insert
Sibling tests covered the preferred-split, title-to-slug, notes-template, and in-document / in-notes-file predicates. This batch fills in the rest:
- `cj/org-noter--get-document-path`: pdf-view-mode uses buffer-file-name, nov-mode uses `nov-file-name`, unrelated mode returns nil.
- `cj/org-noter--extract-document-title`: strips the extension.
- `cj/org-noter--find-notes-file`: returns the file containing the doc-path, nil when no doc or no match.
- `cj/org-noter--create-notes-file`: writes the template when absent.
- `cj/org-noter--session-active-p`: nil when unbound, non-nil when set.
- `cj/org-noter--toggle-notes-window`: deletes when visible, requests start when hidden.
- `cj/org-noter-start`: routes through the cond -- toggle in doc+session, switch-window in notes+session, message elsewhere.
- `cj/org-noter-insert-note-dwim`: with active session inserts directly; without one, starts then inserts.
org-noter / pdf-view / nov / org-id primitives are stubbed.
Diffstat (limited to 'modules/custom-buffer-file.el')
0 files changed, 0 insertions, 0 deletions
