-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full support for orgmode links (denote:
type)
#104
Comments
Hello @telenieko and thanks for the detailed explanation! Yes, please proceed to the PR. The As for why this wasn't already done: (i) I was not sure it was needed, as I thought people might prefer the regular |
I forgot to mention: you are welcome to try the mailing list+patch workflow. Whatever you prefer. |
Submitted via e-mail: https://lists.sr.ht/~protesilaos/denote/patches/35137 |
Thank you! |
Hi, Denote, uses the `denote:` link type internally. This patch adds support for `org-store-link` of denote files meaning that you can call `org-store-link` from a note and get a `denote:` link instead of the current `file:` link. The main benefit of a denote link is that it is resilient to renames, etc. A file link would brake if the note was ever to be renamed. As a side benefit, as `org-capture` uses `org-store-link` now you can capture tasks on notes with resilient links! This may seem related to `denote-link-use-org-id` though that one would only work with orgmode notes (and, I think, as long as those were withing `org-directory` when using `id:` links). This should work with notes in any format, now `org-capture` works and `org-store-link` too. Best, Marc PS: This closes #104 on Github[1]. PSS: Second attempt at submitting a patch via git-email ... [1]: #104 Signed-off-by: Marc Fargas <[email protected]>
The patch is below the ~15 line threshold and thus does not require copyright assignment to the Free Software Foundation. It was discussed on the mailing list: <https://lists.sr.ht/~protesilaos/denote/patches/35137>. A prior exchange took place on issue 104 over at the GitHub mirror: <#104>.
@protesilaos are the |
Hello @gregoryg! Yes, the backlinks work with the
In the latter I invoked The downside of the |
OK - I should have done that test myself - but it's good to know from you that there are no "hidden" downsides! Thank you for this response and for the excellent package! Your lean approach is refreshing - when I first stared using Denote, I would look for the "search notes" function and the "go to directory" function and so forth. Suddenly realizing I could just add a regular bookmark made me laugh. |
There shouldn't be any hidden downsides, though please let me know if you encounter any. I have not done any work using your approach.
You are welcome!
Ah yes, this the point where you realise that these are regular files/buffers and Emacs already has a tone of ways to operate on them. I am happy to accommodate extensions or other packages in general. This way we have a maintainable core and can integrate with a variety of tools. |
Hi,
Denote, within orgmode files, uses the
denote:
link type internally.denote-link
inserts such links.One may expect such links to work on any orgmode files, for example on your
org-agenda-files
. Which works, because:But there is someone missing there,
:store
. This means you cannot save adenote:
links to a note using standard orgmode tooling (org-store-link
). For example:org-capture
from a note, for example to add a task on your agenda linking to that note.This is unrelated to #8 / #20 /
denote-link-use-org-id
though mixed withorg-id-extra-files
might enable some workflows (only to orgmode format notes).So:
denote:
links from any org file anywhere to your denote notes in any format.org-insert-link
) links todenote:
notes in any orgmode file.org-store-link
to get a link to the current note; which prevents using%a
inorg-capture
The fix is easy though, implement
:store
; This is my current take on it:This should work with notes in any format, now
org-capture
works andorg-store-link
too.Did I miss anything? Is there any particular reason this is not yet in denote? (seems odd that all other
org-link-set-parameters
are there but this).If the code looks good I can open a PR (or try to submit it via the mailing list as an exercise!!), maybe in time for 1.0 !!
The text was updated successfully, but these errors were encountered: