From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sacha Chua Subject: Re: Single Search Hit and Quick Jump Date: Sun, 15 Jun 2014 15:58:43 -0400 Message-ID: <87bntugd1o.fsf@sachachua.com> 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]:49806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwGb5-0005ZN-5N for emacs-orgmode@gnu.org; Sun, 15 Jun 2014 16:00:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwGay-00042r-Uo for emacs-orgmode@gnu.org; Sun, 15 Jun 2014 16:00:11 -0400 Received: from plane.gmane.org ([80.91.229.3]:45463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwGay-00040W-OJ for emacs-orgmode@gnu.org; Sun, 15 Jun 2014 16:00:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WwGax-00044V-PP for emacs-orgmode@gnu.org; Sun, 15 Jun 2014 22:00:03 +0200 Received: from 69-165-143-207.dsl.teksavvy.com ([69.165.143.207]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 Jun 2014 22:00:03 +0200 Received: from sacha by 69-165-143-207.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 Jun 2014 22:00:03 +0200 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: emacs-orgmode@gnu.org Esben Stien writes: Hello, Esben! (Digging up old thread, sorry!) > 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? Would you consider defining org-refile-targets and then using C-u M-x org-refile (which you can bind to a handy keyboard shortcut, of course)? org-refile-targets lets you specify the level or maxlevel to consider, and C-u for org-refile jumps instead of refiling. > 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" Something like (org-end-of-subtree) and (org-back-to-heading), maybe in a custom function or in a hook? Sacha