ขณะนี้การแทรกลิงก์ org-id โหมดองค์กรภายในฉันไปที่ส่วนหัวหรือดึงขึ้นในมุมมองกำหนดการ (การทดสอบการทดสอบส่วนหัวของ RET), จัดเก็บลิงก์ด้วย Cl (org-store-link) กลับไปยังตำแหน่ง ฉันต้องการแทรกลิงค์จากนั้นใส่ลิงค์ด้วย Cc Cl (org-insert-link)
ฉันต้องการแมปคีย์ที่ให้ฉันแทรกลิงค์ที่จุดปัจจุบันโดยใช้การเติมเต็มของแท็บที่คล้ายกับ org-refile (Cc Cw) แทน ผลลัพธ์ที่ตั้งใจไว้จะเป็นลิงค์ภายใน org-id ในรูปแบบ:
[[id:d7534b2f-c221-4dea-8566-d5ce3e4e1b78][Example Link]]
เมื่อมองผ่าน org-id.el ดูเหมือนว่า org-id-get-with-outline-path-complete ถูกออกแบบมาเพื่อจุดประสงค์นี้ ฉันเหนื่อย:
(global-set-key "\C-ci" (lambda () (interactive) (org-id-get-with-outline-path-completion)))
แต่มันไม่ทำงานตามที่ตั้งใจไว้
ฉันมีสิ่งต่อไปนี้ในไฟล์ init.el ของฉัน:
;; Use global IDs
(require 'org-id)
(setq org-id-link-to-org-use-id t)
;; Update ID file .org-id-locations on startup
(org-id-update-id-locations)
;; Refile options
(setq org-refile-targets (quote ((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))))
(setq org-refile-use-outline-path 'file)
(setq org-outline-path-complete-in-steps t)
(setq org-refile-allow-creating-parent-nodes t)
org-id-get-with outline-path-completion
ใน นั่นเป็นปัญหาหรือไม่