* Normalizing tags
@ 2014-09-02 22:11 Brett Witty
2014-09-03 7:06 ` Christian Moe
0 siblings, 1 reply; 2+ messages in thread
From: Brett Witty @ 2014-09-02 22:11 UTC (permalink / raw)
To: Org mailing list
[-- Attachment #1: Type: text/plain, Size: 253 bytes --]
Hi,
Has anyone made a module to normalize tags across your entire setup? That
is if you have "Blog" and "blog" as tags, then you fix it as one or the
other, or "hint" and "tip" tags being collapsed.
If not, would people be interested in that?
BrettW
[-- Attachment #2: Type: text/html, Size: 374 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Normalizing tags
2014-09-02 22:11 Normalizing tags Brett Witty
@ 2014-09-03 7:06 ` Christian Moe
0 siblings, 0 replies; 2+ messages in thread
From: Christian Moe @ 2014-09-03 7:06 UTC (permalink / raw)
To: Brett Witty; +Cc: Org mailing list
Brett Witty writes:
> Hi,
>
> Has anyone made a module to normalize tags across your entire setup?
Not that I know of.
> That is if you have "Blog" and "blog" as tags, then you fix it as one
> or the other, or "hint" and "tip" tags being collapsed.
>
> If not, would people be interested in that?
There may not be a lot of demand for it since tags are bounded by colons
and can be easily search-replaced. Of course, a function that flags up
all the possible duplicates and queries you for the preferred form could
be a time-saver.
If you're planning to write one:
In addition to capitalization ("Blog"/"blog"), it would be useful to
look for English singular/plural ("blog"/"blogs") -- but let the user
beware ("aid" and "aids" may not be the same tag).
People tagging their documents in other languages might find some kind
of pattern-matching option helpful.
What I would find *really* nice, now that Org supports tag groups, is a
function to normalize old documents where entries are tagged with both a
group tag and its members. That is, given
#+TAGS: { music : classical rock folk }
and a heading like
* Woody Guthrie :music:American:folk:
the function would remove the redundant group tag to yield
* Woody Guthrie :American:folk:
Yours,
Christian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-03 7:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-02 22:11 Normalizing tags Brett Witty
2014-09-03 7:06 ` Christian Moe
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.