Bug 389181

Summary: Add a proper GUI warning when "Search and Replace" is set to "Replace" "in Open Files" or "in Folder"
Product: [Applications] kate Reporter: CnZhx <zhx>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: waqar.17a
Priority: NOR    
Version First Reported In: 17.12.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description CnZhx 2018-01-18 22:27:26 UTC
Is it possible to add a pop-up warning message, which could be set to OFF if the user prefers, when the range is set as a large one, such as "in Open Files" or "in Folder"? When "Search and Replace" is set to search "in Open Files" or "in Folder" once, it sticks to this option to next search even after a long time. If the user overlooked this option because he/she forgot to check and assumed it's "In Current File", disaster could happen easily.

BTW, the use of uppercase of the options is odd. The I in "in" as in "In Current File" is uppercase but lowercase as in "in Open Files" and "in Folder".
Comment 1 Kåre Särs 2018-12-09 09:25:04 UTC
Git commit cec90e834e6de42cb8784cc0ad8a2b69c35f6716 by Kåre Särs, on behalf of loh tar.
Committed on 09/12/2018 at 09:22.
Pushed by sars into branch 'master'.

SearchView: Harmonize text in searchPlaceCombo

Summary:
Now all text starts with uppercase I. Reported as side note in

Test Plan:
Before
{F6462024}
After
{F6462026}

Reviewers: #kate, #vdg, sars, ngraham, dhaumann

Reviewed By: #kate, #vdg, ngraham, dhaumann

Subscribers: abetts, dhaumann, ngraham, kwrite-devel, #kate

Tags: #kate

Differential Revision: https://phabricator.kde.org/D17418

M  +2    -2    addons/search/search.ui

https://commits.kde.org/kate/cec90e834e6de42cb8784cc0ad8a2b69c35f6716
Comment 2 Waqar Ahmed 2022-01-11 17:46:47 UTC
I don't think any amount of warnings will prevent accidents some times. And such a feature could be annoying for users who are intentionally searching in the specified place. If we make it configurable, it will likely never get discovered by users.