Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching between sessions clears harpoon entries #594

Open
sevi-kun opened this issue May 17, 2024 · 5 comments
Open

Switching between sessions clears harpoon entries #594

sevi-kun opened this issue May 17, 2024 · 5 comments

Comments

@sevi-kun
Copy link

sevi-kun commented May 17, 2024

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
Copy link

maxrzaw commented May 19, 2024

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
Copy link
Author

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

@sevi-kun sevi-kun changed the title When switching between sessions clears harpoon entries Switching between sessions clears harpoon entries May 25, 2024
@maxrzaw
Copy link

maxrzaw commented May 25, 2024

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
Copy link
Author

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
Copy link

simaxme commented Jun 1, 2024

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

  • Using possession.nvim the harpoon list does not restore.
  • When opening the project while being outside of the project folder through the nvim path argument, it also does not restore.
    The only way it works is by manually jumping into the folder and typing nvim .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants