harpoon
harpoon copied to clipboard
Harpoon2: Wrong state is loaded when working with multiple tabs - having different working dirs
WARNING
If this is about Harpoon1, the issue will be closed. All support and everything of harpoon1 will be frozen on master
until 4/20 or 6/9 and then harpoon2 will become master
Please use harpoon2
for branch
When opening a tab, and setting a different working folder in the new tab, the harpoon list is not loaded next time I start neovim.
I believe that the issue occurs because the data file uses the hash of the current working directory for to generate the file name.
local function fullpath(config)
local h = hash(filename(config))
return string.format("%s/%s.json", data_path, h)
end
When neovim loads, it uses the hash of the initial working folder, but when I open a new tab with a different working folder, it appears that the hash of the new working folder is used when saving the lists. So now lists are saved in a different file than the one loaded at startup.
Is there a reason for the hashing rather than one file?
The data file already contains data for multiple working directories already.