Next: Attachment options, Up: Attachments [Contents][Index]
By default, Org attach uses ID properties when adding attachments to outline nodes. This makes working with attachments fully automated. There is no decision needed for folder-name or location. ID-based directories are by default located in the ‘data/’ directory, which lives in the same directory where your Org file lives90.
When attachments are made using org-attach
a default tag ‘ATTACH’ is
added to the node that gets the attachments.
For more control over the setup, see Attachment options.
The following commands deal with attachments:
org-attach
)The dispatcher for commands related to the attachment system. After these keys, a list of commands is displayed and you must press an additional key to select a command:
org-attach-attach
)Select a file and move it into the task’s attachment directory.
The file is copied, moved, or linked, depending on
org-attach-method
. Note that hard links are not supported on
all systems.
Attach a file using the copy/move/link method. Note that hard links are not supported on all systems.
org-attach-buffer
)Select a buffer and save it as a file in the task’s attachment directory.
org-attach-new
)Create a new attachment as an Emacs buffer.
org-attach-sync
)Synchronize the current task with its attachment directory, in case you added attachments yourself.
org-attach-open
)Open current task’s attachment. If there is more than one, prompt
for a file name first. Opening follows the rules set by
org-file-apps
. For more details, see the information on
following hyperlinks (see Handling Links).
org-attach-open-in-emacs
)Also open the attachment, but force opening the file in Emacs.
org-attach-reveal
)Open the current task’s attachment directory.
org-attach-reveal-in-emacs
)Also open the directory, but force using Dired in Emacs.
org-attach-delete-one
)Select and delete a single attachment.
org-attach-delete-all
)Delete all of a task’s attachments. A safer way is to open the directory in Dired and delete from there.
org-attach-set-directory
)Set a specific directory as the entry’s attachment directory. This works by putting the directory path into the ‘DIR’ property.
org-attach-unset-directory
)Remove the attachment directory. This command removes the ‘DIR’ property and asks the user to either move content inside that folder, if an ‘ID’ property is set, delete the content, or to leave the attachment directory as is but no longer attached to the outline node.
If you move entries or Org files from one directory to
another, you may want to configure org-attach-id-dir
to contain
an absolute path.
Next: Attachment options, Up: Attachments [Contents][Index]