all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: Support for tagging (special) blocks
@ 2022-09-01  4:13 Payas Relekar
  2022-09-01  6:13 ` Ihor Radchenko
  0 siblings, 1 reply; 13+ messages in thread
From: Payas Relekar @ 2022-09-01  4:13 UTC (permalink / raw)
  To: emacs-orgmode

Kaushal Modi <kaushal.modi@gmail.com> writes:

Tags are bit more generic though, and allow searching across not just
code blocks, but TODOs as well.

Thanks,
Payas

> On Wed, Aug 31, 2022 at 4:19 PM Sébastien Miquel <sebastien.miquel@posteo.eu>
> wrote:
>
>> Hi,
>>
>> I've been using tags on special blocks, src blocks and other, for two
>> purposes:
>>
>>   1. to control which blocks get exported, using the `#+exclude_tags`
>>      property.
>>   2. to fine tune the export, according to tags, of special blocks such as
>>      #+BEGIN_exercice                                            :hard:
>>      …
>>      #+END_exercice
>>
>> Does anyone think this is useful and might warrant adding support for ?
>>
>
> I think that using the #+header: property for something like this might be
> more canonical.
> https://orgmode.org/manual/Using-Header-Arguments.html
>
> Example:
>
> =====
>
> #+header: :tags noexport
> #+begin_foo
>
> ..
> #+end_foo
> =====
>
> or
>
> =====
>
> #+header: :tags hard
> #+begin_foo
>
> ..
> #+end_foo
> =====
>
> It's also relatively easy to parse these headers:
>
> =====
> (org-babel-parse-header-arguments (car (org-element-property :header
> special-block)))
> =====
>

--


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Support for tagging (special) blocks
@ 2022-08-31 20:10 Sébastien Miquel
  2022-08-31 20:38 ` Kaushal Modi
  2022-09-01  6:59 ` Fraga, Eric
  0 siblings, 2 replies; 13+ messages in thread
From: Sébastien Miquel @ 2022-08-31 20:10 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I've been using tags on special blocks, src blocks and other, for two
purposes:

  1. to control which blocks get exported, using the `#+exclude_tags`
     property.
  2. to fine tune the export, according to tags, of special blocks such as
     #+BEGIN_exercice                                            :hard:
     …
     #+END_exercice

Does anyone think this is useful and might warrant adding support for ?

-- 
Sébastien Miquel


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-10-05  7:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-01  4:13 Support for tagging (special) blocks Payas Relekar
2022-09-01  6:13 ` Ihor Radchenko
2022-09-01 16:40   ` Sébastien Miquel
2022-09-02 13:11     ` Ihor Radchenko
2022-09-02 15:32       ` Sébastien Miquel
2022-09-03  8:41         ` Ihor Radchenko
2022-09-03 10:00           ` Sébastien Miquel
2022-09-04  4:54             ` Ihor Radchenko
2022-10-04 16:58               ` Sébastien Miquel
2022-10-05  7:49                 ` Ihor Radchenko
  -- strict thread matches above, loose matches on Subject: below --
2022-08-31 20:10 Sébastien Miquel
2022-08-31 20:38 ` Kaushal Modi
2022-09-01  6:59 ` Fraga, Eric

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.