[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] `org-store-link' to skip link storing functions without touching
From: |
Kyle Meyer |
Subject: |
Re: [O] `org-store-link' to skip link storing functions without touching `org-context-in-file-links' |
Date: |
Sat, 20 May 2017 18:55:08 -0400 |
York Zhao <address@hidden> writes:
> However, the biggest problem I'm having now is that once I loaded
> org-git-link.el, I'm forced to always store links linking to git repository
> which is not always I want because I also need to be able to store links
> linking to the files in the working directory instead of in the git
> repository.
>
> I'm aware of the 'C-u C-u' prefix of `org-store-link', however, by the
> current design, using 'C-u C-u' negates `org-context-in-file-links', i.e.,
> the link would be stored without embedding the text to search for.
Yeah, org-store-link overloads ARG, and there seems to be an undesirable
interaction here.
> Is it possible to make `org-store-link' able to skip the link storing
> functions without touching `org-context-in-file-links'?
I think that, when negating org-context-in-file-links, the function
should check whether a single C-u was given rather than just checking if
ARG is non-nil. If someone uses C-u C-u to fall back to core Org
functions, I don't see any reason to assume that they also want to
reverse their org-context-in-file-links preference.
--
Kyle