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: Mon, 27 Jan 2020 12:12:20 +0100 [thread overview]
Message-ID: <87mua9gnl7.fsf@gnu.org> (raw)
In-Reply-To: <87zheaqd2h.fsf@polytechnique.org> (Alan Schmitt's message of "Sun, 26 Jan 2020 19:37:10 +0100")
Hi Alan,
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> 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 was wondering if there was
> infrastructure to help me enter the tags there.
Thanks - I now understand better.
You may want to hack something together based on this:
#+begin_src emacs-lisp
(replace-regexp-in-string "::+" ":" (mapconcat (lambda(s) (if (stringp (car s)) (car s))) org-tag-alist ":"))
#+end_src
--
Bastien
prev parent reply other threads:[~2020-01-27 11:12 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
2020-01-26 18:37 ` Alan Schmitt
2020-01-27 11:12 ` Bastien [this message]
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=87mua9gnl7.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).