Suppose I have hundreds lines of items:
**** aa **** bb ...... **** cc
I try to multiply set tags. I tried to mark them, and use
C-c C-q, but it didn't works
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
As org files are plain text files, we can add tags using a simple approach:
M-x query-replace-regexpor use the default binding
:and the tag.
\& :MYTAG. Here
\&represents whatever text was matched in the "search" step above.
!if you want to append tags to all the org headings in the buffer.
Here's an example org buffer:
* abc ** def *** ghi * jkl ** mno
By implementing the above steps and hit
! in that last step, that would get converted to:
* abc :MYTAG ** def :MYTAG *** ghi :MYTAG * jkl :MYTAG ** mno :MYTAG
org-agenda supports many bulk actions. Do an
org-agenda search (
C-c a) that matches the entries you're interested in. In the agenda view use
m to mark them (or
* to mark everything) and the
B to select a bulk action. The
+ action will add a tag to each entry.