Skip to content
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

Closed
probablycorey opened this issue May 2, 2014 · 1 comment

Comments

@probablycorey
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants