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 | 7ed4c84e2e97a737ac2286376c89dc4b55cc884b (patch) | |
| tree | 7c4de005d5529ca5120f725414ebc92814184881 /snippets | |
| parent | 54616242ab2bebb6efb6660c311df0127a82f962 (diff) | |
| download | dotemacs-7ed4c84e2e97a737ac2286376c89dc4b55cc884b.tar.gz dotemacs-7ed4c84e2e97a737ac2286376c89dc4b55cc884b.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 'snippets')
0 files changed, 0 insertions, 0 deletions
