From mboxrd@z Thu Jan  1 00:00:00 1970
From: Jay Dresser <org-mode@jaydresser.us>
Subject: Re: Is it possible to embed tag search as a link?
Date: Sun, 21 Jun 2015 08:19:19 +0000 (UTC)
Message-ID: <loom.20150621T101656-254@post.gmane.org>
References: <slrnmo77o4.88m.pisajew@lnb.localnet>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36210)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1Z6yg9-0005l6-6Q
	for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 06:10:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1Z6yg1-0007w7-Bt
	for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 06:10:13 -0400
Received: from plane.gmane.org ([80.91.229.3]:51500)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1Z6yg1-0007u1-5K
	for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 06:10:05 -0400
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1Z6yfz-0007Jo-Pu
	for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 12:10:04 +0200
Received: from c-73-202-45-37.hsd1.ca.comcast.net ([73.202.45.37])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <emacs-orgmode@gnu.org>; Mon, 22 Jun 2015 12:10:03 +0200
Received: from org-mode by c-73-202-45-37.hsd1.ca.comcast.net with local
	(Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00
	for <emacs-orgmode@gnu.org>; Mon, 22 Jun 2015 12:10:03 +0200
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: emacs-orgmode@gnu.org

Piotr Isajew <pisajew <at> yahoo.com> writes:
> 
> 
> Hi,
> 
> 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.
> 
> Bests,
> 
> Piotr

You could always do it with elisp, perhaps:

   [[elisp:(org-tags-view nil "+work-boss-TODO=\"DONE\"")]]

which would be like "C-c a m"

Or:

   [[elisp:(org-match-sparse-tree nil "+work-boss-TODO=\"DONE\"")]]

which would be like "C-c \".

Change "nil" to "t" for TODO only.