ThePrimeagen / harpoon

MIT License
6.25k stars 348 forks source link

Switching between sessions clears harpoon entries #594

Open sevi-kun opened 1 month ago

sevi-kun commented 1 month ago

Yes, this is harpoon2.

So, I use the session-lens and auto-session plugins from rmagatti to switch between my projects. But when doing so, all entries of harpoon are being cleared.

My neovim configuration is available here: https://github.com/sevi-kun/nvim

maxrzaw commented 1 month ago

This could be due to your cwd changing. Changing the key function in the harpoon settings might help. The default is vim.uv.cwd().

sevi-kun commented 1 month ago

This could be it. I will look into it as soon as I have a bit more time.

maxrzaw commented 1 month ago

This could be it. I will look into it as soon as I have a bit more time.

Unfortunately, custom keys are broken right now. Which might actually be the root cause for your issue. Might be worth trying the branch from #572

sevi-kun commented 1 month ago

No... I tried the pr but my harpoon entries are still completely empty after switching sessions. Maybe the sessions plugin actually removes some entries? I hope I can look into the source code soon.

simaxme commented 1 month ago

I also have a problem that may be associated with this issue: