Commit Graph
12 Commits
Author SHA1 Message Date
Willem van den Ende 841fbabaea adopt(linux): add live-dictate and firehose-blog from linux-adopt
Two files that exist only on the Linux side, taken verbatim:

  lisp/live-dictate.el   streaming dictation over the Lemonade
                         OpenAI-compatible API (linux repo 978aa86)
  qwan/firehose-blog.el  drag-and-drop images into a firehose blog post,
                         with year dirs, collision suffixes and 16 ERT tests

Both are inert until something requires them.  Wiring lives in
config-linux.el (next commit), not in the shared config.el: live-dictate
depends on whisper.el plus a Lemonade server on :13305, and on macOS
neither exists yet.  Getting live dictation working there is a feature,
not a port: ffmpeg capture, an installed whisper.el, and a reachable
backend.

firehose-blog.el is OS-independent by design and should later replace
qwan/qwan-markdown-dnd.el on both sides -- see the note in config.el.
2026-11-03 12:32:31 +00:00
Willem van den Ende 07893269f1 feat(blog): open the generated post in another window after export
Export ends by visiting the generated post with find-file-other-window,
so the note stays visible next to the draft it produced; the git diff
on the generated file acts as the review step. Pinned by an ERT test
through the interactive run path.
2026-10-29 22:59:02 +00:00
Willem van den Ende baf389178d feat(blog): export org-roam notes to firehose and jekyll (SPC n r b / n r j)
Move the firehose exporter here from the firehose repo scripts directory
and rename it to the org-roam- prefix so M-x org-roam-export-blog sits
with the other roam commands. Both commands share one pipeline; each
target contributes frontmatter, post path and image convention:

- org-roam-export-blog: firehose draft (Elixir frontmatter, images to
  app/priv/static/images/blog), bound to SPC n r b
- org-roam-export-jekyll: jekyll draft in _drafts/ (YAML frontmatter,
  tags from #+filetags:, images to attachments/blogposts), bound to
  SPC n r j

Repo roots are defcustoms set home-relative in config.el so one value
works on macOS and Linux; unset or absent roots fail loudly. ERT tests
and the fixture vault live alongside; run with the emacs --batch
command in the test file commentary.

Also split per-machine config: config.el now loads config-mac.el only
on darwin and the new config-linux.el on GNU/Linux, and ignores stale
*.elc files that would otherwise shadow newer sources.
2026-10-29 22:55:12 +00:00
Willem van den Ende d22566dfe2 qwan markdown works 2026-07-02 17:32:30 +01:00
Willem van den Ende 50fa992901 how to run test 2026-07-01 22:32:45 +02:00
Willem van den Ende 1e5a4dfc48 unit test faulty generated image drag n drop 2026-07-01 22:26:27 +02:00
Willem van den Ende 6c2a08bee5 feat: add markdown drag-and-drop for blog images
- Fix org DND flag: +download-dnd → +dragndrop (was silently no-op)
- New qwan-markdown-dnd.el: handles file drops in markdown buffers
  copies images to configurable attachment dir (default: attachments/)
  inserts markdown image links at point
  per-repo config via .dir-locals.el (qwan-markdown-attachment-dir)
- AGENTS.md: document the new module and DND setup
2026-06-28 13:23:59 +02:00
Willem van den Ende 763350f5bd Add qwan/paste-stripped-url
qwen 0.6 had the good sense to go untiil end of the line with the regexp,
but called the wrong regexp function - or called it wrongly. elisp
'helpfully' gave End of File error.

qwen MoE 30 got the correct function, but put in a regexp that only
removed the ?. So I added `.*$` by hand, and it passed manual testing.

Since I will be using this a lot, no unit-ish test needed. (test
everything that can possibly break). Tested on mac, should work on
linux (according to MoE30)
2025-05-20 14:21:47 +01:00
Willem van den Ende 125c93085b qwan-blog: save buffer before moving the file under it 2025-05-05 09:30:59 +01:00
Willem van den Ende 4a8617d6c7 REfactor qwan functions from config.el, esp. for blogging 2025-05-04 18:32:34 +01:00
Willem van den Ende 8bb1bbf233 Publish draft moved 2025-05-04 18:28:03 +01:00
Willem van den Ende b350812edb Move copy path (to wrong file) 2025-05-04 18:18:45 +01:00