journelly: roam refs before title

This commit is contained in:
Willem van den Ende
2026-02-08 21:04:04 +00:00
parent f6d8accfe4
commit 9c84faa6aa
2 changed files with 9 additions and 2 deletions
+7
View File
@@ -15,6 +15,8 @@
:stream t
:models '(Qwen3-Coder-30B-A3B-Instruct-Q6_K
Qwen3-30B-A3B-Thinking-2507-Q6_K
qwen3-coder-80b
;; GLM models (reasoning handled globally via gptel-include-reasoning)
(GLM-4.7-Flash-Q4_K_M
:description "GLM-4.7-Flash 30B MoE Q4 (17GB)"
@@ -59,6 +61,11 @@
:model 'Qwen3-Coder-30B-A3B-Instruct-Q6_K
:backend "llama.cpp")
(gptel-make-preset 'elisp
:system "You are an expert programmer, specialising in Emacs Lisp and testing with ERT, you live in Emacs"
:model 'qwen3-coder-80b
:backend "llama.cpp")
;; GLM-4.7-Flash presets
;; GLM requires explicit stop tokens to prevent infinite generation
;; Fast mode: thinking disabled for quick responses
@@ -53,10 +53,10 @@ Opens the capture buffer for review before finalizing."
:templates `(("d" "default" plain
,initial-content
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
,(concat "#+title: ${title}\n"
,(concat "\n"
(when url (concat "#+roam_refs: " url "\n"))
(when heading (concat "#+journelly_heading: " heading "\n"))
"\n"))
"\n#+title: ${title}\n" ))
:unnarrowed t))))))
(ert-deftest test-journelly-parse-basic ()
(let* ((entry " * [2025-10-08 Wed 22:39] @ -