Skip to content

Conversation

rylwin
Copy link

@rylwin rylwin commented Dec 22, 2024

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.

@ajeetdsouza ajeetdsouza force-pushed the main branch 3 times, most recently from c770a05 to 3fe42e9 Compare January 8, 2025 23:06
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.
@rylwin rylwin force-pushed the rw/case-sensitive-option branch from 3571c32 to 99d6827 Compare July 3, 2025 20:49
@rylwin
Copy link
Author

rylwin commented Jul 3, 2025

I've rebased this branch on top of latest main

Copy link
Contributor

@azaleacolburn azaleacolburn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me!

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