From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-custom-id-goto? Date: Wed, 04 Dec 2019 20:36:42 -0500 Message-ID: References: <87r21kumas.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38296) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icg4m-0004TW-6K for emacs-orgmode@gnu.org; Wed, 04 Dec 2019 20:37:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icg4f-0007Ie-F0 for emacs-orgmode@gnu.org; Wed, 04 Dec 2019 20:37:01 -0500 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]:47090) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icg4Z-00071A-Gy for emacs-orgmode@gnu.org; Wed, 04 Dec 2019 20:36:52 -0500 Received: by mail-qk1-x72f.google.com with SMTP id f5so1877590qkm.13 for ; Wed, 04 Dec 2019 17:36:47 -0800 (PST) In-reply-to: <87r21kumas.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" To: emacs-orgmode@gnu.org If you like ivy, you might find this helpful: (defun ivy-org-jump-to-heading () "Jump to heading in the current buffer." (interactive) (let ((headlines '())) (save-excursion (goto-char (point-min)) (while (re-search-forward ;; this matches org headings in elisp too. "^\\(;; \\)?\\(\\*+\\)\\(?: +\\(.*?\\)\\)?[ ]*$" nil t) (cl-pushnew (list (format "%-80s" (match-string 0)) (cons 'position (match-beginning 0))) headlines))) (ivy-read "Headline: " (reverse headlines) :action (lambda (candidate) (org-mark-ring-push) (goto-char (cdr (assoc 'position candidate))) (outline-show-entry))))) https://github.com/jkitchin/scimax/blob/master/scimax-org.el#L587 There are also helm equivalents. Fraga, Eric writes: > On Wednesday, 4 Dec 2019 at 10:26, Matt Price wrote: >> Is there a quasi-equivalent of ~org-id-goto~ or >> ~org-babel-goto-named-src-block~ which will jump to a header in the >> current buffer? > > If by header you mean headline or heading, I don't think there is > anything exactly how you might want it but you should maybe look at > "org-goto" and "org-occur" (or both in combination). -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu