Is there a shortcut to jump to the next hunk or change? I'd like to be able to jump to the region below, where I knew there was a change in the file but it was not until line 1360. I'm using Practicalli AstroNvim
Just found this, but here's my scenario:
I took a WIP commit I had done earlier and I reset the branch back to its parent commit. Everything then comes back to the working dir as modifications as far as git is concerned, and the change points are marked as such in the sidebar when the file is open, but the shortcuts above don't work
If I then go and make further changes, I can navigate to those with those shortcuts, but only those - which are the same ones I see in the :changes list.
Gitsigns plugin says it can navigate hunks, although I haven't tried this yet.
[c and ]c may be mapped already. If not, the GitHub readme for the project has an example mapping
https://github.com/lewis6991/gitsigns.nvim#keymaps
Seems AstroNvim has [g and ]g mapped to navigate between hunks already
It does, awesome!
Thanks
I need to get used to the fact that ] and [ have lots of previous/next navigation options
It works in neotree too 💕
Ah, in neotree as well, that is good to know. Thank you for helping me learn more.