You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation follows the Emacs implementation in spirit, with some
additional separation of concerns:
1. the actual logic is implemented in `attach/core.lua`, with no
concerns for UI or configuration;
2. `attach/init.lua` combines the core with UI and configuration and
provides the public API;
3. `attach/ui.lua` contains any dialogs needed by the module;
4. `attach/fileops.lua` contains file operations that are provided to
the Emacs implementation by the Emacs core (e.g. recursive
copy/deletion of directories)
5. `attach/node.lua` provides an abstraction over headlines and whole
files that is absent in the Emacs implementation
6. `attach/translate_id.lua` corresponds to the Emacs implementation's
functions `org-attach-id-uuid-folder-format`,
`org-attach-id-ts-folder-format`, and
`org-attach-id-fallback-folder-format`. They are separated like this
because referring to pre-defined functions in Lua is more difficult
than in Emacs.
To reduce complexity, the following functions are left unimplemented in
this commit:
- `org-attach-file-list`
- `org-attach-expand`
- `org-attach-follow`
- `org-attach-complete-link`
- `org-attach-reveal`
- `org-attach-reveal-in-emacs`
- `org-attach-open`
- `org-attach-open-in-emacs`
- `org-attach-delete-one`
- `org-attach-delete-all`
- `org-attach-sync`
- `org-attach-archive-delete-maybe`
- `org-attach-expand-links`
- `org-attach-url`
- `org-attach-dired-to-subtree`
If =true=, whenever the attachments directory itself is a symlink, and it
1187
+
is copied due to the [[https://orgmode.org/manual/Attachment-defaults-and-dispatcher.html*index-C_002dc-C_002da-s][set_directory]] or [[https://orgmode.org/manual/Attachment-defaults-and-dispatcher.html*index-C_002dc-C_002da-S][unset_directory]] action, copy the
1188
+
symlink itself. The default is to treat the symlink transparently as
1189
+
a directory.
1190
+
1191
+
*** org_attach_use_inheritance
1192
+
:PROPERTIES:
1193
+
:CUSTOM_ID: org_attach_use_inheritance
1194
+
:END:
1195
+
- Type: ='always'|'selective'|'never'=
1196
+
- Default: ='selective'=
1197
+
1198
+
Attachment inheritance for the outline.
1199
+
1200
+
Enabling inheritance implies that running =attach= inside a node without
1201
+
attachments will operate on the first parent headline that has an
1202
+
attachment.
1203
+
1204
+
Possible values are:
1205
+
1206
+
- =always= - inherit attachments
1207
+
- =selective= - respect [[#org_use_property_inheritance][org_use_property_inheritance]] for the properties =DIR= and =ID=
0 commit comments