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
1197
+
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
1198
+
symlink itself. The default is to treat the symlink transparently as
1199
+
a directory.
1200
+
1201
+
*** org_attach_use_inheritance
1202
+
:PROPERTIES:
1203
+
:CUSTOM_ID: org_attach_use_inheritance
1204
+
:END:
1205
+
- Type: ='always'|'selective'|'never'=
1206
+
- Default: ='selective'=
1207
+
1208
+
Attachment inheritance for the outline.
1209
+
1210
+
Enabling inheritance implies that running =attach= inside a node without
1211
+
attachments will operate on the first parent headline that has an
1212
+
attachment.
1213
+
1214
+
Possible values are:
1215
+
1216
+
- =always= - inherit attachments
1217
+
- =selective= - respect [[#org_use_property_inheritance][org_use_property_inheritance]] for the properties =DIR= and =ID=
0 commit comments