https://bugs.kde.org/show_bug.cgi?id=523392
Bug ID: 523392
Summary: Add an optional "Smart Case" mode for Find and Replace
Classification: Applications
Product: kate
Version First 26.07.80
Reported In:
Platform: Mint (Ubuntu based)
OS: Linux
Status: REPORTED
Severity: wishlist
Priority: NOR
Component: search
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Description
I would like to propose an optional Smart Case mode for the Find/Replace bar.
The idea is simple:
If the search text contains only lowercase letters, perform a case-insensitive
search.
If the search text contains at least one uppercase letter, automatically
perform a case-sensitive search.
This behavior would only apply when the user has not explicitly enabled or
disabled Match Case. It could be implemented as a separate option (for example,
Smart Case) to preserve the current behavior for existing users.
Motivation
When searching, users often expect:
test → matches test, Test, TEST
Test → matches only Test
This reduces the need to repeatedly toggle the Match Case option and makes
searching more efficient.
The same concept already exists in several tools, such as Vim (smartcase) and
ripgrep (--smart-case), so many developers are already familiar with this
behavior.
Expected behavior
When Smart Case is enabled:
Search text Match Case Search behavior
error off case-insensitive
Error on case-sensitive
ERROR on case-sensitive
If Match Case is explicitly enabled or disabled by the user, it should take
precedence over Smart Case.
Benefits
Faster workflow.
Fewer mouse clicks.
Familiar behavior for users coming from Vim and other developer tools.
Fully backward compatible if implemented as an optional feature.
--
You are receiving this mail because:
You are watching all bug changes.