aerial.nvim icon indicating copy to clipboard operation
aerial.nvim copied to clipboard

Feature Request: store locations in jumplist

Open wbthomason opened this issue 2 years ago • 3 comments

Thanks for the excellent plugin! I would like to suggest a small tweak to better integrate with Neovim's existing navigation tools - saving the current location to the jumplist before jumping to a new symbol.

This would allow users to move between symbols with a combination of aerial and the standard <c-o>/<c-i>/etc. jump operators.

I think this should only take a 1-line (or so) change around here (although I haven't read through the codebase in depth): https://github.com/stevearc/aerial.nvim/blob/aff1bb8fecff83d3e3a2d544c4d4e6d65718bd19/lua/aerial/navigation.lua#L237-L241

Specifically, it should suffice to set the ' register with m' just before jumping, if the user has jumping configured. If you're open to this, I'd be happy to make a PR.

wbthomason avatar Jun 09 '23 16:06 wbthomason

This seems like a good idea, sure!

stevearc avatar Jun 17 '23 15:06 stevearc

That will be a great feature, I really miss it 👍

quolpr avatar Sep 14 '23 16:09 quolpr

Finally got around to this in #305, sorry for the delay.

wbthomason avatar Oct 13 '23 05:10 wbthomason