求助: 在网页剪藏时用org-capture模板生成独立文件名

https://www.orgroam.com/manual/Template-Walkthrough.html#Template-Walkthrough

https://www.zmonster.me/2020/06/27/org-roam-introduction.html#orgec47e48

看你的意思是打算从网上抓取后直接做成roam笔记?org-roam的capture可能会符合你的要求。

如果续用原来的template,就可能要自己写函数了

  (defun my-create-notes-file ()
    "Create a notes file."
    (interactive)
    (let ((name (read-string "Filename: ")))
      (expand-file-name (format "%s.org"
                                  name) "Your Dir")))
    (setq org-capture-templates

      `(("pb" "Protocol Bookmarks" entry (file my-create-notes-file)
        "* %U - %:annotation  %:initial" :immediate-finish t :kill-buffer t)

        ("pn" "Protocol Bookmarks" entry (file my-create-notes-file)
         "* %U - %:annotation  %:initial" :immediate-finish t :kill-buffer t))

这个不知道符不符合你的要求