[Top][All Lists]

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

Re: [O] Easily adding notes to a TODO item

From: Matt Lundin
Subject: Re: [O] Easily adding notes to a TODO item
Date: Wed, 27 Apr 2011 08:42:56 -0400
User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux)

Shawn Willden <address@hidden> writes:

> On Tue, Apr 26, 2011 at 10:40 AM, Matt Lundin <address@hidden> wrote:
>> Shawn Willden <address@hidden> writes:
>>> I'd also like to be able to easily take notes using something like
>>> "remember", but with the notes by default automatically appended to
>>> the text under the task I'm currently clocked into, with an attached
>>> timestamp.
>> You can also use a capture template for this, e.g.:
> I had to update org-mode to get a working org-capture, and it looks
> like I can't get plain text automatically placed in the correct spot
> (though list entries work fine, which is acceptable), and I've created
> a custom function to take the current file path and linkify it nicely,
> with some variation depending on the contents of the path.
> ... but that last bit isn't working.
> I have a function "linkify-path" which takes a path as a parameter and
> properly converts the path into an org-mode link in the way I want.
> But the function doesn't work correctly when I call it from my
> template.
> My template looks like:
>   ("c" "Clock sibling" item (clock) "%T %(linkify-path \"%F\")")
> It almost works.  The first think linkify-path does is call
> string-match to look for a particular substring that I want to handle
> specially.  When I call linkify-path normally, this works.  When it's
> invoked by the expansion of the template, the match appears always to
> fail, so I never get the special handling.

I'm not too familiar with invoking sexp expansion within capture
templates and am not sure whether you can expand an item within a sexp.
I imagine other community members might have some ideas. (I'm Cc'ing the
ML on this reply.)

Would the following work, or do you require something more complex?

("c" "Clock sibling" item (clock) "%T %a")


reply via email to

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