Skip to content

Conversation

@ilyagr
Copy link
Contributor

@ilyagr ilyagr commented Aug 28, 2022

If z -b foo bar finds no exact match in the path to the current directory,
it tries a "fuzzy" substitution with a frecent directory. For example, if
we are in ~/github/jekyll/test and run z -b jek gh, it will try to
substitute the entire jekyll path component with gh. The result will
be equivalent to running z ~/github gh test.

The middle commit changes indentation, but is a no-op.

I've been using this for a bit. It seems nice.

ilyagr added 3 commits August 27, 2022 22:00
If `z -b foo bar` finds no exact match in the path to the current directory,
it tries a "fuzzy" substitution with a frecent directory. For example, if
we are in `~/github/jekyll/test` and run `z -b jek gh`, it will try to
substitute the entire `jekyll` path component with `gh`. The result will
be equivalent to running `z ~/github gh test`.
@skywind3000
Copy link
Owner

Thanks, this is a big patch, I will review later.

@ilyagr
Copy link
Contributor Author

ilyagr commented Aug 28, 2022

Sure, take your time! Anyone who wants to can try this out using this branch.

I added one more feature to z -b in my fork, but I have some doubts if that one actually makes sense or is worth the complexity.

@skywind3000 skywind3000 merged commit 83dfec0 into skywind3000:master Sep 6, 2022
@skywind3000
Copy link
Owner

thanks

@ilyagr
Copy link
Contributor Author

ilyagr commented Sep 9, 2022

Thank you! :)

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

Successfully merging this pull request may close these issues.

2 participants