You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I started using Zoxide, after I close the . ranger, after navigating to some folder and closing ranger, I am not dropped to the last folder and I see the following message on my terminal:
zoxide: no match found
Investigating a bit, I think I found where/why the error occurs. Also, I think I know how to solve it, but I would like to know from the developers if my idea is good or bad :)
With Zoxide installed, it is common to alias cd to __zoxide_z.
IMHO, simply modifying cd -- "$chosen_dir" to cd "$chosen_dir" would solve such error.
But if you guys added -- in there, I assume it is because some corner cases might make cd misbehave. At the same time, I didn't find a documentation on cd talking about the possible usage of --.
So: is it "safe" to simply get rid of the --? 🙂
Thanks for your attention 😁
The text was updated successfully, but these errors were encountered:
I have been using Ranger with its nice
. ranger
approach in order to be dropped into the last folder a navigate to in Ranger after I close it.Recently I started also using Zoxide.
After I started using Zoxide, after I close the
. ranger
, after navigating to some folder and closing ranger, I am not dropped to the last folder and I see the following message on my terminal:Investigating a bit, I think I found where/why the error occurs. Also, I think I know how to solve it, but I would like to know from the developers if my idea is good or bad :)
With Zoxide installed, it is common to alias
cd
to__zoxide_z
.In this line:
ranger/ranger.py
Line 20 in 80baec6
We will have:
This will cause the internals of Zoxide (you can use
which __zoxide_z
to check) to do this mistake:Which will bring the error
IMHO, simply modifying
cd -- "$chosen_dir"
tocd "$chosen_dir"
would solve such error.But if you guys added
--
in there, I assume it is because some corner cases might makecd
misbehave. At the same time, I didn't find a documentation oncd
talking about the possible usage of--
.So: is it "safe" to simply get rid of the
--
? 🙂Thanks for your attention 😁
The text was updated successfully, but these errors were encountered: