* [FR] Tangling code blocks inside encrypted subtrees
@ 2024-01-18 12:03 Ihor Radchenko
0 siblings, 0 replies; only message in thread
From: Ihor Radchenko @ 2024-01-18 12:03 UTC (permalink / raw)
To: emacs-orgmode
Hello,
Currently, Org mode never tangles code blocks when they reside inside
encrypted subtrees. Never means that such code blocks will _not_ be
tangled even if encrypted subtree is temporarily decrypted via
org-decrypt-entry/org-decrypt-entries in the current buffer.
The current approach is indeed safe as it prevents leaking potentially
sensitive information. However, it is sometimes necessary to tangle the
code blocks from inside encrypted trees as well. For example, if the
file is a literate Org config - the whole point of such config is to
tangle it, including encrypted parts.
To allow tangling encrypted code, we may provide a special tag :TANGLE:
or maybe a special heading property, like :TANGLE-ENCRYPTED: yes. If
such property is set in the encrypted heading, Org will decrypt and
tangle the code blocks inside.
WDYT?
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-18 12:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-18 12:03 [FR] Tangling code blocks inside encrypted subtrees Ihor Radchenko
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).