[Geany-devel] save find settings

Dimitar Zhekov dimitar.zhekov at xxxxx
Tue Feb 22 17:47:56 UTC 2011


Hi,

It's one month since I initially sent this, and the main developers
seem more or less online now, so I'm resending it.

--

On several occasions, we discussed that it would be a good thing to
save the find/replace settings. So I wrote it.

Note that when you check "regular expressions", Geany remembers the
"case sensitive" state, and restores it when regex is unchecked. This
remembered state is not saved, so after restart, you'll get "regular
expressions" and "case sensitive" as you see them.

This remembered state was partially wrong, shared between the Find and
Replace dialogs (their settings are separate), so I created separate
states. Truth to be said, I can't grasp why regex and case are bound
like that.

BTW, is there any reason to stash_group_display(fif_prefs) each time
the FiF dialog is shown, instead of doing it once on dialog creation?
The fif settings won't change between invokations.

-- 
E-gards: Jimmy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: save-find-settings-5542.diff
Type: text/x-diff
Size: 10464 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20110222/695a5bb4/attachment.diff>


More information about the Devel mailing list