emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Bernhard Pröll" <bmutbuerger@gmail.com>
To: Xebar Saram <zeltakc@gmail.com>
Cc: org mode <emacs-orgmode@gnu.org>, Dominic Surano <sk8ingdom@gmail.com>
Subject: Re: Insert org-id Link at Point via Outline Path Completion
Date: Sun, 2 Aug 2015 09:03:21 +0200	[thread overview]
Message-ID: <20150802070321.GA28191@gmail.com> (raw)
In-Reply-To: <CAOQHXPqftB+EmxZfFXnLANRzTu4Pfxxx0ePWFKrKreT4Rh3iGg@mail.gmail.com>

Hi again,

my guess into the blue: You haven't set the directory as described in
the readme (it defaults to nil).

Since I don't use helm, I haven't considered it.

The purpose of this backend is avoiding the `find-file-noselect' as used
in `org-refile' and the `helm-org-agenda-headings' suggested by John.
It's somewhat in-between using `org-refile' and an indexing with
external tools (recoll for example as recently debated on this list).

Regards,
Bernhard Pröll

On Sat, 01. Aug 16:20, Xebar Saram wrote:
>Thx so much Bernhard
>
>this looks really promising. i never had luck with either company or
>auto-complete t o get it to work reliably (it often stops working even though
>its still in the mod bar).
>anyway i tried it and added this to my config (after cloning from git):
>
>(add-to-list 'load-path "/home/zeltak/.emacs.g/company-org-headings")
>(add-hook 'org-mode-hook
> (lambda () (set (make-local-variable 'company-backends)
>    '((company-org-headings)))))
>
>i dont see it completes on org heading, is there any keys i need to press or
>anything else in need to config? does this work only when you try to insert a
>link?
>
>best and thx so much, this look awesome
>
>P.S have you considered Helm for this as well?
>
>best
>
>Z
>
>
>
>On Sat, Aug 1, 2015 at 12:07 PM, Bernhard Pröll <bmutbuerger@gmail.com> wrote:
>
>    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 <sk8ingdom@gmail.com>
>        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)
>
>
>
>
>
>

      parent reply	other threads:[~2015-08-02  7:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-12 19:57 Insert org-id Link at Point via Outline Path Completion Dominic Surano
2015-07-31  6:43 ` Xebar Saram
2015-07-31  7:13   ` Eric Abrahamsen
2015-08-01  9:07   ` Bernhard Pröll
2015-08-01 13:20     ` Xebar Saram
2015-08-01 16:33       ` John Kitchin
2015-08-01 17:36         ` Xebar Saram
2015-08-01 17:49           ` Xebar Saram
2015-08-01 19:03             ` John Kitchin
2015-08-01 19:17               ` Dominic Surano
2015-08-02 18:20               ` Xebar Saram
2015-08-02 18:31                 ` John Kitchin
2015-08-02 18:38                   ` Xebar Saram
2015-08-02  7:03       ` Bernhard Pröll [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150802070321.GA28191@gmail.com \
    --to=bmutbuerger@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sk8ingdom@gmail.com \
    --cc=zeltakc@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).