From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: Insert org-id Link at Point via Outline Path Completion Date: Fri, 31 Jul 2015 09:43:30 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15aed14f91f3051c2623b0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZL42X-00066c-4P for emacs-orgmode@gnu.org; Fri, 31 Jul 2015 02:43:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZL42W-0002ba-2Y for emacs-orgmode@gnu.org; Fri, 31 Jul 2015 02:43:33 -0400 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:33932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZL42V-0002bN-Qp for emacs-orgmode@gnu.org; Fri, 31 Jul 2015 02:43:32 -0400 Received: by pacan13 with SMTP id an13so36602798pac.1 for ; Thu, 30 Jul 2015 23:43:30 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dominic Surano Cc: org mode --047d7b15aed14f91f3051c2623b0 Content-Type: text/plain; charset=UTF-8 i also have a similar workflow and would love to hear Dominic if you found a solution for this or if anyone on the list has other suggestions? best Z On Tue, May 12, 2015 at 10:57 PM, Dominic Surano wrote: > Hello, > > I use org-mode a lot like a wiki so links to other org-mode headings are > very common. Currently, I navigate to the heading or pull it up in an > agenda view, store the link with C-l, going back to where I want to > insert the link, then insert the link with C-c C-l RET. This is a bit > time consuming. > > Instead, I would prefer to map a key that allows me to insert a link at > the current point using tab completion similar to org-refile (C-c C-w). > Looking through org-id.el, it seems like org-id-get-with-outline-path > completion was designed for this purpose. I tried: > > (global-set-key "\C-ci" (lambda () (interactive) (org-id-get-with > outline-path-completion))) > > but it didn't work as intended. Anyone have any ideas? > > Thanks! > -D > > For reference, I have the following set in my configuration: > > ;; Use global IDs > (require 'org-id) > (setq org-id-link-to-org-use-id t) > > ;; Update ID file .org-id-locations on startup > (org-id-update-id-locations) > > ;; Targets include this file and any file contributing to the agenda - > up to 9 levels deep > (setq org-refile-targets (quote ((nil :maxlevel . 9) > (org-agenda-files :maxlevel . 9)))) > (setq org-refile-use-outline-path 'file) > (setq org-outline-path-complete-in-steps t) > (setq org-refile-allow-creating-parent-nodes t) > > > --047d7b15aed14f91f3051c2623b0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
i also have a similar workflow and would love to hear Domi= nic if you found a solution for this or if anyone on the list has other sug= gestions?

best

Z

On Tue, May 12, 2015= at 10:57 PM, Dominic Surano <sk8ingdom@gmail.com> wrote:<= br>
Hello,

I use org-mode a lot like a wiki so links to other org-mode headings are very common. Currently, I navigate to the heading or pull it up in an
agenda view, store the link with C-l, going back to where I want to
insert the link, then insert the link with C-c C-l RET. This is a bit
time consuming.

Instead, I would prefer to map a key that allows me to insert a link at
the current point using tab completion similar to org-refile (C-c C-w).
Looking through org-id.el, it seems like org-id-get-with-outline-path
completion was designed for this purpose. I tried:

(global-set-key "\C-ci" (lambda () (interactive) (org-id-get-with=
outline-path-completion)))

but it didn't work as intended. Anyone have any ideas?

Thanks!
-D

For reference, I have the following set in my configuration:

;; Use global IDs
(require 'org-id)
(setq org-id-link-to-org-use-id t)

;; Update ID file .org-id-locations on startup
(org-id-update-id-locations)

;; Targets include this file and any file contributing to the agenda -
up to 9 levels deep
(setq org-refile-targets (quote ((nil :maxlevel . 9)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(org-agenda-files :maxlevel . = 9))))
(setq org-refile-use-outline-path 'file)
(setq org-outline-path-complete-in-steps t)
(setq org-refile-allow-creating-parent-nodes t)



--047d7b15aed14f91f3051c2623b0--