[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible to set block switches "globally"?
From: |
Tom Gillespie |
Subject: |
Re: Possible to set block switches "globally"? |
Date: |
Fri, 3 May 2024 10:12:21 -0700 |
Hi,
Thanks for getting things going on this again João.
Based on what is in org-element-example-block-parser
and org-element-src-block-parser I think
:number-lines (yes|no|continue) as João proposes
:indent (preserve|align|???) not sure about naming
:labels (link|keep|remove|remove-whitespace)
:label-format regexp-string
Defaults would be :number-lines no, :indent align,
:labels remove-whitespace and :label-format would
inherit from the default.
The remove-whitespace option would remove the label
itself along with any whitespace leading up to it, this
avoids the user needing to specify the leading whitespace
in :label-format. The remove option by itself is retained
in the event that someone has aligned their labels and
wants to retain the whitespace. This may be too complex
though and remove-whitespace is not needed because
:label-format can be modified as needed.
Header arguments need to have a single value, so I think
we should split :labels and :label-format, that way users
can also specify :label-format without having to specify
:labels first (otherwise there is ambiguity about what a single
argument :labels means.
Best,
Tom