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.
This commit is contained in:
@@ -338,6 +338,14 @@ backslash-quote sequences in the exported post."
|
||||
(should (string-match-p "^tags: \\[\\]$" body))
|
||||
(should (string-match-p "^image: $" body))))))
|
||||
|
||||
(ert-deftest org-roam-export-blog/run-opens-the-generated-post ()
|
||||
(let ((root (roeb-test--new-jekyll-root)))
|
||||
(roeb-test--with-export nil root
|
||||
(with-current-buffer (find-file-noselect (roeb-test--file "note.org"))
|
||||
(org-roam-export-blog--run (org-roam-export-blog--jekyll-target)))
|
||||
(should (get-file-buffer
|
||||
(expand-file-name "_drafts/will-it-blend.md" root))))))
|
||||
|
||||
(ert-deftest org-roam-export-blog/jekyll-frontmatter-shape ()
|
||||
(let ((org-roam-export-blog-author "Willem"))
|
||||
(should (equal
|
||||
|
||||
Reference in New Issue
Block a user