emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Insert org-id Link at Point via Outline Path Completion


From: Bernhard Pröll
Subject: Re: [O] Insert org-id Link at Point via Outline Path Completion
Date: Sat, 1 Aug 2015 11:07:06 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

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öll

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 <address@hidden> 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)







reply via email to

[Prev in Thread] Current Thread [Next in Thread]