From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: How to generate a list of ``who-links''? Date: Sun, 14 Oct 2018 15:08:48 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBoZA-00040c-8c for emacs-orgmode@gnu.org; Sun, 14 Oct 2018 18:08:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBoZ9-0007t1-H7 for emacs-orgmode@gnu.org; Sun, 14 Oct 2018 18:08:52 -0400 Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]:38241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gBoZ9-0007sU-9O for emacs-orgmode@gnu.org; Sun, 14 Oct 2018 18:08:51 -0400 Received: by mail-lf1-x143.google.com with SMTP id g89-v6so12715157lfl.5 for ; Sun, 14 Oct 2018 15:08:50 -0700 (PDT) In-Reply-To: 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: Mirko Vukovic Cc: "emacs-orgmode@gnu.org" this is good eonugh for me but perhaps you want to improve on it. (define-key org-mode-map (kbd "C-c w") 'alpha-org-what-links-here) (defun alpha-org-what-links-here () "Show all links that point to the current node. Possibly also show the target node itself. - fixme Bug in Org: g in agenda removes entries - fixme org text search does not work in non-org-mode files or in org files text above the outline tree ka This makes id links quasi-bidirectional. " (interactive) (let ((org-agenda-files (alpha-org-all-org-files)) org-agenda-skip-comment-trees org-agenda-skip-archived-trees (search-string (or ;; raw id so it will pick up target (alpha-awhen (org-entry-get nil "ID" t) (regexp-quote it)) (concat "{\\(" ;; tries searching a link to id ;; not sure if useful (regexp-quote (org-store-link nil)) "\\|\\<" ;; not sure if useful (regexp-quote (org-get-heading)) "\\>\\)}")))) (org-search-view nil search-string))) On 10/14/18, Mirko Vukovic wrote: > Hello, > > I am looking for a way to get a list of all remote references to the > current node? > > Currently, I do: > - org-id-copy > - In org-agenda I search the copied id. > > Is there > - a better built-in way? > - a contributed-package? > - a suggestion how to code it in my elisp? > > Thanks, > > Mirko > --=20 The Kafka Pandemic: The disease DOES progress. MANY people have died from it. And ANYBODY can get it at any time. "You=E2=80=99ve really gotta quit this and get moving, because this is murd= er by neglect." --- .