[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: |
Shawn Willden |
Subject: |
Re: [O] Easily adding notes to a TODO item |
Date: |
Wed, 27 Apr 2011 07:49:54 -0600 |
On Wed, Apr 27, 2011 at 6:42 AM, Matt Lundin <address@hidden> wrote:
> 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.
It does work, sort of. My function is of the form:
if path matches regexp
return complicated link construction
else
return "[[file:" + path + "]]"
What happens is that when called with the expanded %F the matching
always fails so the "else" branch is always taken. When called from
evaluated lisp code (e.g. (linkify "foo/bar")), the function works
correctly.
> I imagine other community members might have some ideas. (I'm Cc'ing the
> ML on this reply.)
Doh! Most ML's have the reply-to set to default to the list. I
didn't check to TO; I'd intended my reply to go to the ML as well.
> Would the following work, or do you require something more complex?
>
> ("c" "Clock sibling" item (clock) "%T %a")
I require something more complex. Our code repository has a pretty
nifty web interface with a lot of very useful features. What I'm
trying to do is arrange that if the file that I was working on when I
created the note is from the source repository, I create a link to the
web interface's rendition of the file, rather than to the file on the
file system. If the file isn't from the code repository then I just
create an ordinary file link.
Thanks,
--
Shawn
Re: [O] Easily adding notes to a TODO item, Matt Lundin, 2011/04/26