vscode-emacs-mcx icon indicating copy to clipboard operation
vscode-emacs-mcx copied to clipboard

Can't search with case-sensitivity

Open HidenoriMatsubayashi opened this issue 4 years ago • 5 comments

I cannot search case-sensitive.

Thanks you so much.

HidenoriMatsubayashi avatar Aug 25 '20 00:08 HidenoriMatsubayashi

Hello,

Is the VSCode's native Match Case functionality sufficient? https://code.visualstudio.com/docs/editor/codebasics#_advanced-find-and-replace-options

If you want the original Emacs' a little bit complicated behavior referred below, I think it's not worth implementing it within this extension, sorry. This extension simply owes VSCode's native searching functionality.

When the search string contains only lower case letters, the search ignores case, but when the search string contains one or more upper case letters, the search becomes case-sensitive.

(Ref: https://www.gnu.org/software/emacs/manual/html_node/elisp/Searching-and-Case.html )

whitphx avatar Sep 10 '20 16:09 whitphx

Or does it help if there is a keybinding to toggle case-sensitivity during i-search?

whitphx avatar Sep 10 '20 16:09 whitphx

I think it's not worth implementing it within this extension, sorry.

I'm fifty-fifty on that one.

The default behavior of emacs seems to be that if the search string contains at least one uppercase letter, it will search case-sensitively. On the other hand, if the search string is all lowercase, it is not case sensitive. Is it difficult to imitate this behavior?

HidenoriMatsubayashi avatar Sep 10 '20 23:09 HidenoriMatsubayashi

It cannot be done by VSCode's native search functionality then have to be implemented in the extension itself. For example, it seems VSCodeVim has its own search implementation to simulate the original Vim's behavior (though I haven't used and tested it). However, now I can't pay efforts for it soon. I will keep this issue open and be open to discuss.

Of course, PRs to this extension are so much welcome. Another option is to create a new extension just for it. I think the case-sensitive search is an independent functionality unrelated to Awesome Emacs Keymap's other methods. Then, it can be another independent extension.

whitphx avatar Oct 03 '20 12:10 whitphx

OK. Thank you so much.

HidenoriMatsubayashi avatar Oct 11 '20 14:10 HidenoriMatsubayashi