From mboxrd@z Thu Jan 1 00:00:00 1970 From: tony day Subject: Header Jumping Date: Thu, 25 Oct 2012 00:02:22 +1100 Message-ID: <205DDA2A-1D9D-4F02-B645-242AF0B3293A@gmail.com> References: <87k3unnyho.fsf@quasar.esben-stien.name> <874nln3mvd.fsf@ucl.ac.uk> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR0bX-0005xQ-93 for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 09:02:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR0bN-0003t9-Ik for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 09:02:39 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:36318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR0bN-0003t4-D4 for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 09:02:29 -0400 Received: by mail-pa0-f41.google.com with SMTP id fa10so370922pad.0 for ; Wed, 24 Oct 2012 06:02:28 -0700 (PDT) In-Reply-To: <874nln3mvd.fsf@ucl.ac.uk> 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: Eric S Fraga , Esben Stien Cc: emacs-orgmode@gnu.org > Esben Stien writes: >=20 >> Is there some way to go directly to a node? >>=20 >> F.ex, I have:=20 >>=20 >> * foo >> ** bar.. >> ** baz.. >> ** hukarz.. >>=20 >> I do C-c a s to search for baz, which brings up a buffer with baz >> somewhere in there and I have to move down the list to hit TAB on = baz. >>=20 Whoever crafted org-refile thought ahead. C-u C-c C-w selects and jumps = to the header selected rather than doing a refiling. Just played around with that and =3Dbookmark-set=3D and it works nicely = with norang settings eg #+begin_src emacs-lisp ; Targets include this file and any file contributing to the agenda - up = to 4 levels deep (setq org-refile-targets (quote ((nil :maxlevel . 2) (org-agenda-files :maxlevel . 2)))) ; Use full outline paths for refile targets - we file directly with IDO (setq org-refile-use-outline-path t) ; Targets complete directly with IDO (setq org-outline-path-complete-in-steps nil) ; Allow refile to create parent tasks with confirmation (setq org-refile-allow-creating-parent-nodes (quote confirm)) ; every header is a refile target (setq org-refile-target-verify-function nil) ; use IDO (setq org-completion-use-ido t) (defun org-jump () (interactive) (bookmark-set "org-jumped-from") (org-refile t nil nil "Jump") (bookmark-set "org-jumped-to")) =20 =20 (defun org-jump-back() (interactive) (if (equal (point) (bookmark-get-position "org-jumped-from")) (bookmark-jump "org-jumped-to") (if (bookmark-get-position "org-jumped-to") (bookmark-jump "org-jumped-from")))) =20 =20 (bind-key "C-. j" 'org-jump) (bind-key "C-. l" 'org-jump-back) #+end_src tony =20