This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Replace in find/replace should respect the current casing of a word if case-sensitivity is turned off (the default). If I replace "foo" with "bar", "Foo" should become "Bar". #193
Labels
This could be an option for find-and-replace. Looking at the docs for emacs it looks like this will only work in these specific cases.
Search: moo, Replace: foo
If the search result is in all caps, the replacement is all caps. MOO becomes FOO
First character's case is maintained. Moo becomes Foo
Search: moO, Replace: Foo
Will only replace direct matches of moO
Search: moo, Replace: FoO
If the search result is in all caps, the replacement is all caps. MOO becomes FOO
Everything else gets replaced with FoO
The text was updated successfully, but these errors were encountered: