ThePrimeagen / harpoon

MIT License
7.02k stars 376 forks source link

Is there a way to set harpoon context to global context #167

Closed heron982 closed 11 months ago

heron982 commented 2 years ago

I mean, I want to open my harpoon files on every windows I created

matu3ba commented 2 years ago

I dont understand this request. What cwd would be used to open neovim? What would be the opened file be? Why is using a quickjumper like zoxide to jump into the project window not sufficient?

If you want to copy entries and you have identical files in multiple projects, you can use jq to copy the values within harpoon.json

marco-silva0000 commented 1 year ago

I have a project with a client directory and a server directory. I'm trying to figure out how harpoon sets it's base dir as I open nvim on the basedir but harpoon creates 2 lists, one for frontend stuff and the other for backend. I assum it stops at the package.json and not at the .git, maybe the same for pyproject.toml. the point is it's not clear and it would be nice to be able to define it. maybe it is and just needs docs

marco-silva0000 commented 1 year ago

https://github.com/ThePrimeagen/harpoon/blob/master/lua/harpoon/utils.lua#L10

just found here it's where it's being set.

marco-silva0000 commented 1 year ago

https://github.com/ahmedkhalf/project.nvim

turns out I have to fix it here, harpoon is using a reasonable api, I think changing that function can still be done anyway because lua