From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Single Search Hit and Quick Jump Date: Wed, 12 Mar 2014 17:27:25 +0100 Message-ID: <87wqfz8jrm.fsf@bzg.ath.cx> References: <87a9cw8dhd.fsf@quasar.esben-stien.name> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNm0P-0004oQ-Bv for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 12:27:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNm0J-00029p-LP for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 12:27:45 -0400 Received: from rs249.mailgun.us ([209.61.151.249]:34665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNm0J-00029Z-DE for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 12:27:39 -0400 In-Reply-To: <87a9cw8dhd.fsf@quasar.esben-stien.name> (Esben Stien's message of "Wed, 12 Mar 2014 01:30:58 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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: Esben Stien Cc: emacs-orgmode@gnu.org Hi Esben, Esben Stien writes: > Now, If I f.ex do C-c a s corge, I get multiple hits, but I really only > search for level 3 items always. Is there any way to restrict the search > to only level 3 items? You can have a custom agenda command like this one: (setq org-agenda-custom-commands '(("c" "Level 3 courge" tags "+LEVEL=3" ((org-agenda-regexp-filter-preset '("+corge")))))) > Also, when I find a result, I want to jump to the last item in that > tree, so if I search for "corge", I want to end up with point on the > level 4 item "**** garply" You can hack around `org-agenda-after-show-hook'. HTH, -- Bastien