Add support for case-sensitive queries#959
Open
rylwin wants to merge 1 commit into
Open
Conversation
c770a05 to
3fe42e9
Compare
Add _ZO_CASE_SENSITIVITY env var to control whether queries should be performed in a case-sensitive manner, keeping the current behavior (case-insensitive) as the default. Setting _ZO_CASE_SENSITIVITY=case-sensitive changes the query behavior to be case-sensitive.
3571c32 to
99d6827
Compare
Author
|
I've rebased this branch on top of latest main |
azaleacolburn
approved these changes
Jul 6, 2025
azaleacolburn
left a comment
Contributor
There was a problem hiding this comment.
This looks good to me!
|
I'd be very interested in this change. I've been using |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add _ZO_CASE_SENSITIVITY env var to control whether queries should be performed in a case-sensitive manner, keeping the current behavior (case-insensitive) as the default.
Setting _ZO_CASE_SENSITIVITY=case-sensitive changes the query behavior to be case-sensitive.
I switched to zoxide a few months ago and have found it to be a much more robust tool than what I was using before. I also enjoy all of the integrations it has.
One thing I miss from my previous jump tool is case-sensitivity: I have some dirs that happen to have capitalization that I can use to get to exactly where I want to go, with a single character, as long as the search is case sensitive.
This PR adds case-sensitivity as an option. This could also lay the groundwork for a "smart case" variant (requested in #224)
Also, I've done minimal rust, so if anything here is not idiomatic / should be adjusted happy to make any changes.