emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: automatic completion of file tags
Date: Sun, 26 Jan 2020 18:04:44 +0100	[thread overview]
Message-ID: <878slucfo3.fsf@gnu.org> (raw)
In-Reply-To: <87lfpyv9hl.fsf@polytechnique.org> (Alan Schmitt's message of "Thu, 23 Jan 2020 09:54:14 +0100")

Hi Alan,

> I'm playing with an implementation of Zettelkasten using deft and org
> files, and I want to tag each note with some tags taken from a list (I'm
> using the ~#FILETAGS:~ line for that at the moment). Is there a builtin
> org way of doing it (have a list of tags defined somewhere and tag a
> whole file with them using some completion mechanism, as for headlines),
> or do I need to roll up my own?

I'm not entirely sure: you want to tag all headline in a file with
multiple pre-defined tags?

With `org-loop-over-headlines-in-active-region' set to `t', you can
tag multiple headlines by selecting a region with the headlines you
want to tag, then C-c C-q to tag them one after another.

You cannot add multiple tags for each headline this way, though.

I would go for defining a temporary local tag like "replaceme" to
tag multiple (all) headline in the file, then simpy search/replace
occurrences of "replaceme" with your:list:of:tags

HTH,

-- 
 Bastien

  reply	other threads:[~2020-01-26 17:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-23  8:54 automatic completion of file tags Alan Schmitt
2020-01-26 17:04 ` Bastien [this message]
2020-01-26 18:37   ` Alan Schmitt
2020-01-27 11:12     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878slucfo3.fsf@gnu.org \
    --to=bzg@gnu.org \
    --cc=alan.schmitt@polytechnique.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).