amake / orgro

An Org Mode app for iOS and Android
https://orgro.org
GNU General Public License v3.0
478 stars 22 forks source link

Support arbitrary blocks #79

Closed TheMadPrompter closed 1 year ago

TheMadPrompter commented 1 year ago

In Org mode, everything between #+begin... and #+end... is considered a block. While the source code blocks are the most common, arbitrary blocks can be created. They are often used to create self-contained collapsible sections independent of the header hierarchy.

In my experience, the only 'common' blocks like #+begin_src or #+begin_quote are treated by the app as blocks and can be folded. I use a lot of blocks with other names, so not being able to fold them in the app like I can in Emacs is pretty inconvenient.

amake commented 1 year ago

I didn't support this because it's actually a minor pain to parse, but I can do it.

Just to be extra sure, can you provide a snippet with a block that you would like supported?

TheMadPrompter commented 1 year ago

Just to be extra sure, can you provide a snippet with a block that you would like supported?

Some of the common blocks I use look like

#+BEGIN_RESULTS 
Text
#+END_RESULTS

and

#+BEGIN_DESCRIPTION
Text
#+END_DESCRIPTION
amake commented 1 year ago

This will be available in v1.31.0. Look for it soon:

amake commented 1 year ago

This is now available in v1.31.2.