From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernhard =?iso-8859-1?Q?Pr=F6ll?= Subject: Re: Insert org-id Link at Point via Outline Path Completion Date: Sat, 1 Aug 2015 11:07:06 +0200 Message-ID: <20150801090706.GA3296@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLSl8-00007r-DW for emacs-orgmode@gnu.org; Sat, 01 Aug 2015 05:07:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLSl4-00077I-DW for emacs-orgmode@gnu.org; Sat, 01 Aug 2015 05:07:14 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:37535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLSl4-00076m-6T for emacs-orgmode@gnu.org; Sat, 01 Aug 2015 05:07:10 -0400 Received: by wibud3 with SMTP id ud3so57927765wib.0 for ; Sat, 01 Aug 2015 02:07:09 -0700 (PDT) Content-Disposition: inline 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: Xebar Saram Cc: org mode , Dominic Surano Hi Saram, I've been in the same boat and decided to write a company-backend for this purpose. So if you're already using company-mode, this may be worth looking into: https://github.com/mutbuerger/company-org-headings Keep in mind that I'm in the process of learning Elisp and there has been little to no testing done on the package. Furthermore it uses org-store-link instead of org-id-store-link. Regards, Bernhard Pr=F6ll On Fri, 31. Jul 09:43, Xebar Saram wrote: >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 wro= te: > > Hello, > > I use org-mode a lot like a wiki so links to other org-mode headings a= re > 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) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(or= g-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) > > > >