denote icon indicating copy to clipboard operation
denote copied to clipboard

Providing a way to extend the content of the backlinks buffer ?

Open lucasgruss opened this issue 2 years ago • 5 comments

Hi there ! Thank you for coming up with (and maintaining) denote :)

Recently in citar-denote @pprevos and I discussed a way to find all the notes citing a specific reference. The solution uses the completion framework, which is coherent with the philosophy of the citar-denote.

This made me realize that there could be additional sources of backlinks between notes, e.g. citations.

As such, would it be a good idea to provide an entry point for packages and users to populate the backlinks buffer with their own content ?

I was thinking that we could define a customization option as a list of functions to run when denote-link-backlinks is invoked, each populating the backlinks buffer with their results.

lucasgruss avatar Feb 13 '23 11:02 lucasgruss

Hello @lucasgruss!

This is a good idea. I don't have a concrete proposal right now. My idea would be to explore ways to abstract the denote-link--prepare-backlinks function. Then we can pass a function to it that finds whatever arbitrary field we need.

This would functionally work like project-find-regexp.

protesilaos avatar Feb 13 '23 12:02 protesilaos

I am toying around with a function that shows the local 'neigbhourhood' of a note using the hierarchy package. That could be a function that taps into the backlink buffer.

This function will display a tree with all notes linked to current buffer at 2 of three levels deep.

pprevos avatar Feb 15 '23 01:02 pprevos

@pprevos Sounds promising! Once we have something concrete to experiment with, we will see how best to put this together and what other options we have.

protesilaos avatar Feb 15 '23 05:02 protesilaos

@protesilaos It will take me a while. I am trying to achieve a balance between working with Emacs and working on Emacs is

pprevos avatar Feb 15 '23 08:02 pprevos

@pprevos Yes, that's important.

protesilaos avatar Feb 15 '23 11:02 protesilaos

The backlinks buffer is more flexible now, though I have not checked if it can do what you had originally described here. If do have time to check, please let me know. Closing this in the meantime.

protesilaos avatar May 07 '24 06:05 protesilaos