emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Is it possible to embed tag search as a link?


From: Sebastien Vauban
Subject: Re: [O] Is it possible to embed tag search as a link?
Date: Thu, 25 Jun 2015 13:14:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt)

Jay Dresser <address@hidden> writes:
> Sebastien Vauban <address@hidden> writes:

>> Jay Dresser <address@hidden> writes:
>>>> Piotr Isajew <pisajew <at> yahoo.com> writes:
>>>>> what I'm looking for is a link format that, when C-c C-o'ed,
>>>>> opens agenda "match query" view for custom query which arguments
>>>>> are specified in the link. I.e.:
>>>>>
>>>>> org-search://+work-boss-TODO="DONE"
>>>>>
>>>>> I am aware of org-protocol which can be used to develop a custom
>>>>> handler for something like this. I would just like to check if
>>>>> there exists any working solution before I start working on my
>>>>> own.
>>>
>>> Jay Dresser <org-mode <at> jaydresser.us> writes:
>>>
>>> I just happened to run across this which seems to better match your
>>> original question, to do it as a new link type:
>>> http://endlessparentheses.com/use-org-mode-links-for-absolutely-anything.html
>>>
>>> so you could have [[org-search:+work-boss-TODO="DONE"]]
>>
>> When I click on such a link, I have the "error":
>>
>> --8<---------------cut here---------------start------------->8---
>> No match - create this as a new heading? (y or n)
>> --8<---------------cut here---------------end--------------->8---
>>
>> Best regards,
>>   Seb
>
> Did you add the elisp from the article into your .emacs?
>
> Although the article described using "tag" as the link type I displayed
> "org-search" since that's what the OP wanted. To get the desired effect
> add this to .emacs:
>
> (org-add-link-type
>  "org-search" 'endless/follow-tag-link)
>
> (defun endless/follow-tag-link (tag)
>   "Display a list of TODO headlines with tag TAG.
> With prefix argument, also display headlines without a TODO keyword."
>   (org-tags-view (null current-prefix-arg) tag))

No, I skipped that part -- thinking it was standard.

Thanks.

Best regards,
  Seb

-- 
Sebastien Vauban




reply via email to

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