After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 128554 - Search and replace dialog shouldn't hide currently highlighted match
Search and replace dialog shouldn't hide currently highlighted match
Status: RESOLVED WONTFIX
Product: gedit
Classification: Applications
Component: search and replace
3.2.x
Other All
: Normal enhancement
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
: 534221 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-12-04 22:45 UTC by Evert Verhellen
Modified: 2014-07-07 10:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Quick mockup of search+replace popup (139.30 KB, image/png)
2014-05-08 22:20 UTC, Robert Roth
Details

Description Evert Verhellen 2003-12-04 22:45:27 UTC
When the search pattern is found in text underneath the Find dialog itself,
the matched text is highlighted, though not visible. A solution to this
problem would be to move the Find dialog automatically up or down,
depending on where there is some space, so that it doesn't hide the
currenlty highlighted match. I think that Notepad or Wordpad in Windows XP
already do something like this.
Comment 1 Jaap A. Haitsma 2004-08-01 19:28:17 UTC
Maybe it's a better idea to scroll the text so that it is not under the find
dialog anymore. I also notice that a match is sometimes just below the end of
the part of the file you are viewing
Comment 2 Paolo Maggi 2006-01-07 13:47:10 UTC
Moving the dialog may have some a11y problems (I may be wrong).
Scrolling the text may be impossible in some cases.

I don't see a valid solution for this issue.
BTW, gedit 2.13.x supports incremental search (use Ctrl+K accellerator). Incremental search greatly mitigates this problem.
Comment 3 Jaap A. Haitsma 2006-01-07 15:51:37 UTC
What happened to the search tab on the right of the screen? It's been a while in the new_mdi branch.

Incremental search doesn't solve the problem for replace
Comment 4 Paolo Borelli 2006-01-07 16:25:09 UTC
We were not satisfied with the sidepane: after using it for a while it turned out to have many drawbacks some fixable some not. Replace in particular is not well suited for a bar/pane and doesn't play well with incremental matching. We felt it was best to keep the dialog given, among other things, that 1) we really wanted to have new_mdi ready for 2.14 and 2) we don't want an ever changing UI, so we prefer to keep the current UI than changing it now, then changing it again in 2.15 etc.

Btw, new_mdi is now on HEAD and the 2.13.0 and 2.13.1 tarballs are based on the new code.
Comment 5 Jaap A. Haitsma 2006-01-07 18:49:13 UTC
Thanks for the explanation. So I guess the only remaining option is to scroll the text such that the highlighted text is always visible
Comment 6 Philip Ganchev 2007-12-23 11:05:26 UTC
I hope you will consider a bottom pane as discussed in bug #153641?
Comment 7 Paolo Borelli 2009-01-05 13:22:00 UTC
*** Bug 534221 has been marked as a duplicate of this bug. ***
Comment 8 André Klapper 2012-07-29 18:15:26 UTC
Still happens in 3.2.
Comment 9 Robert Roth 2014-05-07 18:22:33 UTC
Are you still seeing this with more recent versions of gEdit? The find dialog has been migrated to a find bar in the top right corner, so it shouldn't hide any matched.
Comment 10 Lupine 2014-05-07 21:05:32 UTC
(In reply to comment #9)
> Are you still seeing this with more recent versions of gEdit? The find dialog
> has been migrated to a find bar in the top right corner, so it shouldn't hide
> any matched.

Yes.  Not necessarily with the find dialog, but the find & replace dialog.
Comment 11 Robert Roth 2014-05-08 22:20:51 UTC
Created attachment 276203 [details]
Quick mockup of search+replace popup

Ah, yes, you're right, the replace dialog is still a traditional dialog (in the meantime I have checked and the search popup scrolls the page if the match is underneath the popup, so that one doesn't have this problem)
Maybe the replace dialog should be migrated to the search popup too:
Here are my ideas:
* Ctrl+F brings up the search popup with one entry only, for searching
* Ctrl+H brings up the search popup with two entries, one for search and another one for replace with text, with next/previous after the search, just like in the current search popup, and replace/replace all buttons after the replace entry.

A quick mockup (of course that could be styled and better icons would be even better, these are just examples)
Comment 12 Philip Ganchev 2014-05-09 03:12:46 UTC
Nice, but why Ctrl+H? Could we use Ctrl+R instead?
Comment 13 Sébastien Wilmet 2014-07-07 10:40:52 UTC
As far as a dialog window is used, this bug cannot really be fixed.

And the dialog window is useful. It is not an incremental search, you apply the search only when a button is pressed. So you can have different searches in different documents. With the search-as-you-type, you can not do that.

So I think this is a wontfix.