Re: Inserting org-mode heading links the org-refile way

2020-05-06 Thread Josh Moller-Mara
Hi, Here's an example of how to create an ivy prompt that inserts links. It isn't exactly what you're looking for, as it doesn't hijack `org-insert-link` functionality, nor does it specifically use `org-refile-target-verify-function` to do filtering. Instead, this uses org-ql to select TODO head

Re: Inserting org-mode heading links the org-refile way

2020-05-05 Thread Ihor Radchenko
> This looks impressive, and is *similar* to the effect I am going for, but > what I am looking at is intercepting the `org-insert-link` functionality > (or replacing it) with the ability to insert a link from the global > filter-and-select interface via ivy for `org-refile`. So, in other words,

Re: Inserting org-mode heading links the org-refile way

2020-05-05 Thread Daryl Manning
This looks impressive, and is *similar* to the effect I am going for, but what I am looking at is intercepting the `org-insert-link` functionality (or replacing it) with the ability to insert a link from the global filter-and-select interface via ivy for `org-refile`. So, in other words, global acc

Re: Inserting org-mode heading links the org-refile way

2020-05-04 Thread Joseph Vidal-Rosset
Le lun. 05/04/20 mai 2020à 03:11:57 , Ihor Radchenko a envoyé ce message: > Can you try the following simplified code? Hello, I confirm that the simplified code below does not break the code of my setup and that org-links for gnus work. Thanks ! > (defun org-id-prompt-i

Re: Inserting org-mode heading links the org-refile way

2020-05-04 Thread Ihor Radchenko
> Always interested in org-links, I have tested your code. It will maybe > interesting that I point out that, even if I am unable to understand > why, I have checked that it breaks the function for org-linking from > emails in gnus, at least in my setup i.e. with the following code: It

Re: Inserting org-mode heading links the org-refile way

2020-05-03 Thread Joseph Vidal-Rosset
Le lun. 05/04/20 mai 2020à 01:09:53 , Ihor Radchenko a envoyé ce message: > If I understand you correctly, the following code should achieve what > you want. The code reuses org-refile interface to complete id: links. > > (defun org-id-prompt-id () > "Prompt for the id duri

Re: Inserting org-mode heading links the org-refile way

2020-05-03 Thread Ihor Radchenko
If I understand you correctly, the following code should achieve what you want. The code reuses org-refile interface to complete id: links. (defun org-id-prompt-id () "Prompt for the id during completion of id: link." (let ((org-refile-history nil) (org-refile-cache nil) (org

Inserting org-mode heading links the org-refile way

2020-05-03 Thread Daryl Manning
I use ivy and org-refile to process my inbox.org file hyper-efficiently and get things into my GTD system. In a recent discussion on org-roam (which nicely links to files in a nice wiki-like manner) it occurred to me if I had a similar interface to search for headlines in the manner of org-refile