Files
org-roam/20230522132213-org_attach.org
2025-11-05 09:18:11 +01:00

918 B

org-attach

File Storing System based on org headers. For browsing,helm-org-rifle

Default Keybinding:

C-c C-a

(the view may be shifted, scroll up with M-v)

Code to try (not yet integrated):

  (setq org-attach-directory "~/.emacs.d/data")
  (setq org-attach-method (quote mv))

  (defun yourname/create_temp_dir ()
    (setq uuid  (org-id-copy))
    (setq dir_temp (org-attach-id-uuid-folder-format uuid))
    (setq dir_temp2 (concat org-attach-directory "/" dir_temp "/"))
    (setq dir_temp_usage (concat org-attach-directory "/" "TEMP/"))
    (org-set-property "DIR" dir_temp_usage)
    (copy-directory dir_temp2 dir_temp_usage t t t))

  (global-set-key (kbd "<f12>") (lambda () (interactive) (yourname/create_temp_dir)))