neorg icon indicating copy to clipboard operation
neorg copied to clipboard

following links should push onto the tag stack

Open teepark opened this issue 1 year ago • 1 comments

Issues

  • [X] I have checked existing issues and there are no existing ones with the same request.

Feature description

Following links between or within neorg files behaves a lot like jumping to definitions, such as in the vim help pages. This leads to a reasonable expectation that Ctrl-T will behave like a "back" button on a history stack, but because neorg doesn't push the jumped-from location onto the tag stack that doesn't work.

Following a rabbit hole within one's own notes should be a well-supported behavior, and this would help a lot.

Help

Yes, but I don't know how to start. I would need guidance

Implementation help

I'm willing to help, but I haven't worked in a sizable lua (or [neo]vim) project before and would need pointers on where to get started.

teepark avatar Feb 05 '24 15:02 teepark

It does effect the jump list though, so <c-o> works. If you're just looking for a way to deal with this in the short term.

As far as adding this functionality so that you can use the tag stack, I'd start with :h settagstack()

benlubas avatar Feb 07 '24 00:02 benlubas