From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: automatic completion of file tags Date: Sun, 26 Jan 2020 18:04:44 +0100 Message-ID: <878slucfo3.fsf@gnu.org> References: <87lfpyv9hl.fsf@polytechnique.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38541) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivlL7-000476-3D for emacs-orgmode@gnu.org; Sun, 26 Jan 2020 12:04:50 -0500 In-Reply-To: <87lfpyv9hl.fsf@polytechnique.org> (Alan Schmitt's message of "Thu, 23 Jan 2020 09:54:14 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Alan Schmitt Cc: emacs-orgmode 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