orgmode
orgmode copied to clipboard
feat: tangle
This PR develops ideas #435 (part of the code was taken right from there). In this PR, I implemented inheritance of properties for code blocks and headings.
Examples
All the following examples tangle code block to test.lua:
-
Document property:
#+PROPERTY: header-args :tangle test.lua #+begin_src lua local foo = "bar" #+end_src -
Heading property:
* Heading :PROPERTIES: :tangle: test.lua :END: #+begin_src lua local foo = "bar" #+end_srcor
* Heading :PROPERTIES: :header-args: :tangle test.lua :END: #+begin_src lua local foo = "bar" #+end_src -
Code block property:
#+begin_src lua :tangle test.lua local foo = "bar" #+end_src
TODO
- [x] Use queries instead of recursion
- [ ] Remove magic constants
- [ ] Add tests
- [ ] Add documentation