mfaerevaag/wd

Allow slashes to cd relative to warp point

towc opened this issue · 5 comments

towc commented

Say this is my setup:

cd some/path
mkdir y
wd add x
cd ~

Something I keep accidentally doing is this:

wd x/y

Instead, I guess the intended workflow is

wd x
cd y

Any chance this could be a feature? Maybe that would need enabling in the rc file, so it doesn't conflict with people's existing warp points?

Would be lovely if you could also wd x/y/z/other, not just one level deep

towc commented

oh, just noticed #17. Maybe this should be documented somewhere more visible?

So I guess the intended flow is wd x y. Still, can this be made to work with slashes as well?

Ah you're right. We have forgot to document it actually.

And yes, I do believe it's possible, but it should considered whether it could lead to ambiguities when having warp names with slashes. That being said, I do remember we looked into this, but found that it wasn't trivial to solve due to the zsh completion syntax. You're most welcome to give it a shot yourself, though. If you submit a PR we'll be happy to look at it 😄

This is now a thing! Work in progress, but the core of the functionality is there 😄

See the PR above

@alpha-tango-kilo need any help with this one? Is this stuck?

See the comments I left on the PR