Skip to content
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

Some pattern that didn't worked #5

Closed
Geobert opened this issue Apr 14, 2021 · 1 comment
Closed

Some pattern that didn't worked #5

Geobert opened this issue Apr 14, 2021 · 1 comment

Comments

@Geobert
Copy link

Geobert commented Apr 14, 2021

In this situation:

.
── foo
│  └── bar
├── libfoo
│  └── bar

$ kn foo
$ kn ../lib-/bar
Path not found

I don't know if it's suppose to work so I'm reporting :)

Feel free to close is it's intended behaviour :)

@micouy
Copy link
Owner

micouy commented Apr 14, 2021

Hi! It would be enough for you to type an abbreviation of libfoo, i.e. lib:

$ kn foo
$ kn ../lib/bar

Wildcards are only supposed to be used as a whole path component when you don't want to type any letter of that component, i.e. kn a/-/c would match a/b/c/ but as you can see kn lib- doesn't work. You could use a wildcard if you knew there is only one folder containing the dir you want to go to i.e. let's say there was no bar/ in foo/. Then you could type the command below and it would take you to libfoo/bar/:

$ kn -/bar

@micouy micouy closed this as completed Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants