GNOME Bugzilla – Bug 723267
Pressing Ctrl+F again appends to the previous search string
Last modified: 2014-02-02 21:44:12 UTC
I edit a text which contains a string "A" that I search for. I press Ctrl+F and type "A" and iterate through the results until I find the one I am looking for. Then I search for another string "B". so I press Ctrl+F again and type "B". The "B" is appended to the previous search string "A" so now my search strings reads "AB" which makes no sense. I understand that as long as "A" is highlighted/marked as a search result it is the pre-selected search string when Ctrl+F is pressed. But please, leave it marked in the search string box, so that the search string I enter then overrides it. Generally, if I press Ctrl+F I am searching for a *new* string, else I would be pressing Ctrl+G. Thanks, - Fabian
Yeah. I hate this too.
Have you tried pressing control+f twice? :P
Do you call this intuitive? (though, it works)
I would also like to see this fixed.
Created attachment 267869 [details] [review] ViewFrame: select text in the search entry Steps: - Ctrl+F and search for 'something', with a least one match - the match becomes selected in the buffer - press Enter to quit the search - press Ctrl+F again - the search takes the buffer selection to put it in the search entry What the code did in this case is to put the cursor at the end of the search text (in the search entry). Now it selects the text.
With the above patch, when the search takes the GtkTextBuffer selection to put it in the search entry, it will always select the text in the search entry.
The commit is pushed to the master and gnome-3-10 branches.