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

Case sensitivity invoked by using an uppercase letter #166

Closed
ardpp opened this Issue Jul 1, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@ardpp

ardpp commented Jul 1, 2015

isearch has by default the nice property that a search becomes case sensitiv once an uppercase letter is used. It would be nice to have such behaviour in swiper as well.

@abo-abo abo-abo closed this in f6f3963 Jul 1, 2015

@abo-abo

This comment has been minimized.

Show comment
Hide comment
@abo-abo

abo-abo Jul 1, 2015

Owner

Thanks.

Owner

abo-abo commented Jul 1, 2015

Thanks.

@ardpp

This comment has been minimized.

Show comment
Hide comment
@ardpp

ardpp Jul 1, 2015

Don't know why, but it is not working as expected for me. I do have the newest version of swiper from melpa with the responsible line
(case-fold-search (string= name (downcase name)))

ardpp commented Jul 1, 2015

Don't know why, but it is not working as expected for me. I do have the newest version of swiper from melpa with the responsible line
(case-fold-search (string= name (downcase name)))

@abo-abo

This comment has been minimized.

Show comment
Hide comment
@abo-abo

abo-abo Jul 2, 2015

Owner

Try this one:

(ivy-read "Prompt: " '("the" "The" "one" "two"))

th should match two candidates, while Th should match only one.

Owner

abo-abo commented Jul 2, 2015

Try this one:

(ivy-read "Prompt: " '("the" "The" "one" "two"))

th should match two candidates, while Th should match only one.

@ardpp

This comment has been minimized.

Show comment
Hide comment
@ardpp

ardpp Jul 2, 2015

When I evaluate this expression in the scratch buffer it does work as expected. But if I invoke swiper in a buffer that looks like that

the 
The

th matches two candidates and Th one. So this works also as expected (I was wrong before!).
However in both cases both "the" and "The" are highlighted. That is why I got mistaken in the first place.

ardpp commented Jul 2, 2015

When I evaluate this expression in the scratch buffer it does work as expected. But if I invoke swiper in a buffer that looks like that

the 
The

th matches two candidates and Th one. So this works also as expected (I was wrong before!).
However in both cases both "the" and "The" are highlighted. That is why I got mistaken in the first place.

@abo-abo

This comment has been minimized.

Show comment
Hide comment
@abo-abo

abo-abo Jul 2, 2015

Owner

Yeah, the swiper highlighter is pretty naive at this point. If you set the matcher to fuzzy it still highlights in the old way. I'll have to fix that at some point, but it's not a small task.

Owner

abo-abo commented Jul 2, 2015

Yeah, the swiper highlighter is pretty naive at this point. If you set the matcher to fuzzy it still highlights in the old way. I'll have to fix that at some point, but it's not a small task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment