You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use denote-backlinks, visit the backlinks’ buffer, follow a backlink.
Use denote-find-backlink, select a backlink from the minibuffer.
I'm seeing a difference in behavior after following a backlink.
(1) The backlink buffer opens the referenced file at the exact location of the outgoing link, which is useful.
(2) With denote-find-backlink, I just land at the top of the file, which is less useful.
I think it would be convenient to have the behavior of (1) in (2).
I hope I was able to make clear what I mean, I'm happy to provide some screenshots or more explanations if necessary.
The text was updated successfully, but these errors were encountered:
From: johkneisl ***@***.***>
Date: Sun, 27 Oct 2024 07:23:36 -0700
[... 8 lines elided]
(1) The backlink buffer opens the referenced file at the exact
location of the outgoing link, which is useful.
I assume you have set 'denote-backlinks-show-context' to non-nil? In
that scenario, it should indeed take you to the exact match. Otherwise,
it opens the file and leaves the point whereever it would be after a
normal 'find-file'.
(2) With `denote-find-backlink`, I just land at the top of the file,
which is less useful.
Indeed. To make this happen, we need to store the position of each match
and then use it when we perform the jump to the file. In the scenario I
mentioned above, we get this for free because of how Xref works.
Let me take a look at it and report back to you.
The idea is for us to then use this information in 'denote-find-backlink'
(or related) to jump to the position of the match, rather than simply
visit the corresponding file.
This is a preliminary response to what johkneisl requested in issue
471: <#471>.
Between the two major options to visit backlinks
denote-backlinks
, visit the backlinks’ buffer, follow a backlink.denote-find-backlink
, select a backlink from the minibuffer.I'm seeing a difference in behavior after following a backlink.
(1) The backlink buffer opens the referenced file at the exact location of the outgoing link, which is useful.
(2) With
denote-find-backlink
, I just land at the top of the file, which is less useful.I think it would be convenient to have the behavior of (1) in (2).
I hope I was able to make clear what I mean, I'm happy to provide some screenshots or more explanations if necessary.
The text was updated successfully, but these errors were encountered: