How can I use counsel-org-tag, or some similar command that uses counsel, to apply/remove tags to all headlines in the region?

I would like the tags to be changed only at the highest selected headline level. For example, selecting the whole of the following as the region and tagging:

* top<mark is here>
** foo
*** spam
*** eggs
** bar
*** spam<point is here>

should result in this:

* top
** foo :tag:
*** spam
*** eggs
** bar : tag
*** spam

because * top is not selected, so the highest-level headlines in the region are at ** level, so tags are only applied to those.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.