winterTTr / ace-jump-mode

a quick cursor jump mode for emacs
https://github.com/winterTTr/ace-jump-mode/wiki
609 stars 72 forks source link

Enable Case sensitive when specifying an upper case letter #88

Open arialdomartini opened 7 years ago

arialdomartini commented 7 years ago

I have a suggestion: make search case sensitive if the user specifies an upper case letter.

I believe this is consistent with how Emacs manages searching and case:

An upper-case letter anywhere in the incremental search string makes the search case-sensitive.

Of course, this should happen only in case ace-jump is set to be case insensitive (e.g. (setq ace-jump-mode-case-fold nil)); with (setq ace-jump-mode-case-fold t) then the letter should match exactly, including case.