Re: [PATCH 1] lisp/org-fold.el: Fold header lines in blocks (was: Proposal: folding stacked `#+header:' lines in src blocks)

2022-12-13 Thread Ihor Radchenko
h...@heagren.com writes: > Great! I've worked up a patch (well, two patches), attached. > > Some details of the implementation: > - folding blocks now cycles: >- everything folded (only top header line visible if present, > otherwise only `#+begin' line visible). >- all content visibl

[PATCH 1] lisp/org-fold.el: Fold header lines in blocks (was: Proposal: folding stacked `#+header:' lines in src blocks)

2022-12-12 Thread hugo
On 2022-12-07 19:58, Thomas S. Dye wrote: I would use this feature. My stack typically includes headers, a name, and a caption. It would be nice to fold them all out of sight. Great! I've worked up a patch (well, two patches), attached. Some details of the implementation: - folding blocks no

Re: Proposal: folding stacked `#+header:' lines in src blocks

2022-12-07 Thread Thomas S. Dye
h...@heagren.com writes: First question: what do people think of this, do people support this as an idea? I would use this feature. My stack typically includes headers, a name, and a caption. It would be nice to fold them all out of sight. All the best, Tom -- Thomas S. Dye https://t

Proposal: folding stacked `#+header:' lines in src blocks

2022-12-07 Thread hugo
Sometimes I deal with large blocks (generally src blocks) with a lot of header arguments. To deal with this, I stack them up in `#+header:' lines. Real example from a file I have: , | #+header: :results (if (org-export-derived-backend-p org-export-current-backend 'latex) "latex" "file raw")