Summary: | When opening the "Find in files" with some text in the search field, it will not close by pressing ESC | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Oded Arbel <oded> |
Component: | search | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | CC: | kare.sars, waqar.17a |
Priority: | NOR | Keywords: | qt6 |
Version First Reported In: | 24.01.95 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | screenshot showing the find in files panel as it first opens |
Description
Oded Arbel
2024-02-23 11:46:44 UTC
Its working as expected. When you select a word and hit Ctrl+Shift+F -> it opens the panel and triggers a search. If you then hit Esc, -> it checks if there are results and they are 'checked' and unchecks them -> If you hit Esc again, it will close the panel because there is nothing to uncheck now. Created attachment 166042 [details]
screenshot showing the find in files panel as it first opens
I'm a bit hazy on the purpose of the checkboxes - though I assume they have purpose - but the problem is that when the "Find in files" panel first appears (see screenshot), the search results with the checkboxes are not visible. If the user then presses ESC, nothing changes and it looks like the first ESC is just ignored.
> I'm a bit hazy on the purpose of the checkboxes - though I assume they have purpose
They are used when replacing text.
The original reason for not closing is that the first Esc removes the search result highlights (in case they are distracting) (In reply to Kåre Särs from comment #4) > The original reason for not closing is that the first Esc removes the search > result highlights (in case they are distracting) As noted before - the problem is that when search results are hidden behind the search options view, nothing visible happens when you press ESC the first time. This is very confusing. At least the search options view should be hidden as well, on the first ESC. If you have multiple matches visible at the same time and no selected word in the current document, it is quite obvious what happens when you press Esc the first time, but I can agree that if there is only the selected word that matches, it is quite hard to notice as the selection or the common word-highlight covers the match highlight. Unfortunately, I don't have any idea on how to accommodate both scenarios.... I think the separate de-selection and clearing of highlights are quite important features. |