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

Seems to be case sensitive #220

Open
ghost opened this issue Nov 8, 2017 · 3 comments
Open

Seems to be case sensitive #220

ghost opened this issue Nov 8, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 8, 2017

I thought this was meant to be case-insensitive (and I wish it was), it frustrates me constantly that it doesn't seem to be.

$ z -l ia
common:    /Users/George/Documents/Subjects/Computing/BritishInformaticsOlympiad
0.5        /Users/George/Documents/Subjects/Computing/BritishInformaticsOlympiad/2017
0.75       /Users/George/Documents/Subjects/Computing/BritishInformaticsOlympiad/2016
1.5        /Users/George/Documents/Subjects/Computing/BritishInformaticsOlympiad/2016/Challenge
4.5        /Users/George/Documents/Subjects/Computing/BritishInformaticsOlympiad
16         /Users/George/Documents/Subjects/Computing/BritishInformaticsOlympiad/2015
$ z -l IA
common:    /Users/George/Documents/Subjects/Maths/IA
0.5        /Users/George/Documents/Subjects/Maths/IA/Examples
7          /Users/George/Documents/Subjects/Maths/IA
19.5       /Users/George/Documents/Subjects/Maths/IA/Resources
149.5      /Users/George/Documents/Subjects/Maths/IA/LaTeX
@ericbn
Copy link
Contributor

ericbn commented Nov 8, 2017

It uses a "prefer case sensitive" algorithm. See examples at #209 (comment)

@rahul286
Copy link

rahul286 commented Feb 4, 2018

I also wish z to be case-insensitive. I am on MacOS.

@ericbn
Copy link
Contributor

ericbn commented Feb 4, 2018

I've submitted PR #221 that allows smart case sensitivity matching by default, and adds parameters to force case insensitive or case sensitive matching. Solution is just 1 LOC bigger than the original implementation.

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