From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: automatic completion of file tags Date: Sun, 26 Jan 2020 19:37:10 +0100 Message-ID: <87zheaqd2h.fsf@polytechnique.org> References: <87lfpyv9hl.fsf@polytechnique.org> <878slucfo3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55941) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivmmb-0002id-0c for emacs-orgmode@gnu.org; Sun, 26 Jan 2020 13:37:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivmmZ-0006LU-4d for emacs-orgmode@gnu.org; Sun, 26 Jan 2020 13:37:16 -0500 In-Reply-To: <878slucfo3.fsf@gnu.org> 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: Bastien Cc: emacs-orgmode Hi Bastien, On 2020-01-26 18:04, Bastien writes: > I'm not entirely sure: you want to tag all headline in a file with > multiple pre-defined tags? There are no headlines in the file (it's a small note). I want to tag the file itself (or its content). It's mostly to help with full-text search (I prefix my tags with '#' so they don't occur otherwise). I think the notion of file tag does not really exist in org mode, but as there is a '+#FILETAGS:' cookie (?), I=C2=A0was wondering if there was infrastructure to help me enter the tags there. > 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 Thank you. This is not what I want to do, but it's nice to know how to do this. Alan