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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.