Lara, Bruno and Astorga, Dadai and Mendoza-Bock, Emmanuel and Pardo, Manuel and Escobar, Esaú and Ciria, Alejandra ::: Embodied Cognitive Robotics and the Learning of Sensorimotor Schemes

Table of Contents

Backlinks

Here’s a script to insert multiple org-roam nodes

(defun hermanhel-strings-to-hash (strings)
  "Convert a list of STRINGS to a hash table with the strings as keys."
  (let ((hash (make-hash-table :test 'equal)))
    (dolist (str strings)
      (puthash str t hash))
    hash))

(defun hermanhel-org-roam-insert-multiple-nodes-as-list ()
  (interactive)
(let
    (
     (candidates (hermanhel-strings-to-hash (org-roam--get-titles)))
     (selected-nodes (citar--select-multiple "References: " candidates))
     )
(dolist (title selected-nodes)
      (insert "+ " "[[roam:" title "]]" "\n")
      )
)
)

Author: Linfeng He

Created: 2024-04-03 Wed 19:37