emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Re: tagging notes


From: Sacha Chua
Subject: [emacs-wiki-discuss] Re: tagging notes
Date: Fri, 17 Mar 2006 01:49:20 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

"thomas knoll" <address@hidden> writes:

> I've been tagging my notes like this:
> .#1  Some Awesome Title
> {tags:writing, important statement, takingovertheworld}
> foo bar. foo awesome foo hawt monkey note note note

Speaking of tags, I've been using

(defun sacha/planner-technorati-tag (beg end &optional attrs)
  (interactive)
  (let ((list (cdr (assoc "s" attrs))))
    (planner-insert-markup
     "On Technorati: "
     (mapconcat (lambda (string)
                  (concat
                   "<a href=\"http://technorati.com/tag/";
                   (planner-replace-regexp-in-string " " "+" string)
                   "\" rel=\"tag\">"
                   string "</a>"))
                (split-string list ",")
                ", "))))

(add-to-list 'muse-publish-markup-tags '("tag" nil t 
sacha/planner-technorati-tag))

to tag my notes with <tag s="foo,bar,baz">

One of these days I plan to write something that will actually index
the tagged blog entries and display a tag cloud or something like
that.

In retrospect, though, using something that can easily be grepped
would be a better idea. So: tag:writing tag:important
tag:takingovertheworld, or even ::writing ::important
::takingovertheworld - much easier to grep for it because you can, say,

grep ::writing * | grep ::important | grep -v ::takingovertheworld

to grab all of the stuff where you write about important stuff that is
_not_ about taking over the world! ;) 'course, you don't get titles,
but it should be easy enough to pull that out if you make a little
notes index...

-- 
Sacha Chua <address@hidden> - open source, free software geekette
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
interests: emacs, gnu/linux, personal information management, public speaking
sachac on irc.freenode.net#emacs . YM: sachachua83




reply via email to

[Prev in Thread] Current Thread [Next in Thread]