-
-
Notifications
You must be signed in to change notification settings - Fork 350
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
(bug) Opening the quickmenu after starting vim from '~/' then :cd
to a dir deletes the list at that path
#553
Comments
this is how it should have always worked in harpoon2 if you change your directory you create a new hash. if for whatever we have changed that, then its my fault i let bad behavior exist If you wish to emulate that behavior, do this ( i haven't tested this, but it "should" work")
effectively, by executing cd, you have changed so the script above takes the FIRST cwd and uses it as the permanent one |
I was able to confirm this bug actually only occurs with the home directory. All other directories work fine as you intended, but for some reason, Demo, first normal, then starting from ~/: Normal experience:Steps:
cd
mkdir folder1
touch folder1/a.lua
touch folder1/b.lua
mkdir folder2
touch folder2/c.lua
cd folder1
nvim a.lua
cd ~/folder2
nvim c.lua
cd ~/folder1
nvim
The BugSteps:
cd
mkdir folder1
touch folder1/a.lua
touch folder1/b.lua
cd folder1
nvim a.lua
cd
nvim
cd ~/folder1
nvim
|
:cd
within vim overwrites the original list instead of the new path:cd
to a dir deletes the list at that path
Ok this is what more interesting, let me double check this!! |
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 masterPlease use
harpoon2
for branchSteps:
harpoon:list():add()
on a file:cd
(to home dir, or anything):q!
The text was updated successfully, but these errors were encountered: