-
Notifications
You must be signed in to change notification settings - Fork 45
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 report: wd show command does not work for directories under home #105
Comments
Strange, I can't reproduce with exactly your steps. Does |
|
Hmm.
|
Might be a macOS specific issue, I don't have one to test on though. Could you try to run the test suite? Just clone this repo, cd into to the |
Sorry about taking so long. I have run the tests:
|
Looks to me like the difference is in the output of the
Here is the output from gnu's
|
One thing that I notice looking at the code for
The substitution does work, in general, but I think the
|
Well, ignore my comment above. I looks like the substitution does work when I quote it:
|
Running with debug output
|
As noticed in mfaerevaag#105, MacOS `wc -l` produces extra whitespace padding at the front of the word count. This makes it so that running the tests on MacOS produces false negatives. The fix here is to add a new function that calls `wc -l` then uses `sed` to strip out the extra whitespace. This is only used in the tests. After running this on a MacOS machine, all tests pass as expected.
As noticed in #105, MacOS `wc -l` produces extra whitespace padding at the front of the word count. This makes it so that running the tests on MacOS produces false negatives. The fix here is to add a new function that calls `wc -l` then uses `sed` to strip out the extra whitespace. This is only used in the tests. After running this on a MacOS machine, all tests pass as expected.
Looks like the issue may be being caused by how the warp point is formatted when it's saved - it's not matching anything when it's being looked up here. From your |
Alternatively, adding an |
the saved warp points are like this:
|
I have the same symptoms and it looks like the zsh option
Before I turned to my zsh setup and deactivated active options one at a time (kidding, I was going to, but
The strings look the same, but aren't from zsh's point of view. I'm using ubuntu 20.04, zsh 5.8. |
This fixes the behaviour described in mfaerevaag#105 for my setup.
This fixes the behaviour described in mfaerevaag#105 for my setup.
This is why I never found the issue, because the things were literally equal (to my puny human eyes), thank you for finding this! |
@kelbyers do you have extend_glob set in your setup, or is this possibly something else on macOS? |
This fixes the behaviour described in #105 for my setup.
Closing as fixed until we hear otherwise, I'll cut a v0.5.2 release shortly. Thank you very much tomterl! |
Describe the bug
wd show
is not correctly showing warp points that are located within my home directory structure. Warp points that just go to$HOME
do show up with theshow
command.To Reproduce
Steps to reproduce the behavior:
cd
to a temporary unique directory in your home directory:cd $(mktemp -d ~/tmp.XXXXXXXX)
wd add mytmp1
wd list
wd show
Expected behavior
A response that one warp point is defined for the current directory:
Screenshots
Desktop (please complete the following information):
Additional context
I do see that there is a version of wd tagged as 0.5.1. The version that I have is installed using
zgenom load mfaerevaag/wd
, and it displays its version as 0.5.0.The text was updated successfully, but these errors were encountered: