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 52221 - Search/replace should remember previous searches
Search/replace should remember previous searches
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: GUI
git master
Other All
: Normal enhancement
: ---
Assigned To: Morten Welinder
Morten Welinder
Depends on:
Blocks:
 
 
Reported: 2001-03-17 18:12 UTC by Almer S. Tigelaar
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to remember the search/replace history (2.94 KB, patch)
2001-12-19 03:40 UTC, Wayne Schuller
none Details | Review

Description Almer S. Tigelaar 2001-03-17 18:12:33 UTC
(Version is Gnumeric CVS, 17 March 2001)

The Search & Replace dialog should remember previous search & replace
terms. It seems the combo boxes where places in the dialog for that
purpose. If they were not, they should be removed as they are misleading.

The best thing would be to remember search & replace within the same
session so that the user can go back and change or select a previous
entry.
Comment 1 Morten Welinder 2001-03-18 00:58:02 UTC
This is indeed the intended long-term behaviour.  For now, it does
not work because we destroy the dialog between invocations.
Comment 2 Morten Welinder 2001-03-27 15:24:27 UTC
My bug...
Comment 3 Jody Goldberg 2001-09-06 02:46:14 UTC
We should see if any of these parameters are saved in XL files.  Many of the other dialogs store their params there
eg
    sorting, consolidation, solver
Comment 4 Wayne Schuller 2001-11-06 06:38:09 UTC
Do you want the search entries to be saved locally to a workbook, or
generally to the whole application?

If the latter, an quick way would be to save and load the GnomeEntry
histories, using the gnome_entry_*_history functions.

This hack wouldn't save all the info (eg: the radio button values),
but would at least save the search entry text. It survives dialog
invocations, even different sessions.

The original bug submission is right to say that this is why combo
boxes are used... I presume GnomeEntry was used with this in mind anyway.
Would you accept a patch which calls the gnome_entry_*_history
functions to save and load the histories?
Comment 5 Wayne Schuller 2001-12-19 03:40:01 UTC
Created attachment 6253 [details] [review]
Patch to remember the search/replace history
Comment 6 Wayne Schuller 2001-12-19 03:43:40 UTC
My patch above saves the history globablly.

The glade files already had set the history to a limit of 10, which is
pretty nice.

I've tested it, it survives dialog invocations and different sessions.

As the user might be looking for the same text in different files, I
think doing it globally is the right way to do it (as opposed to
saving the history per file).

Can we please commit this patch and close the bug? :)
Comment 7 Morten Welinder 2001-12-20 16:40:49 UTC
Fixed in cvs.