Regarding the search routine triggered when opening a new document, that is desired behavior: trigger a search when switching tab (either with the search bar or the replace dialog).
My impression was that a document should be opened at the very top. An active search term breaks this expectation. However, saving the term per document or even hiding the bar is probably not an ideal solution either.
Before !58 (merged), only the replace dialog was connected to the "switch-page" signal, we can return to this behavior. By the way, when both search widgets are open, the connection of the search bar is disabled (to avoid conflicts).
My reference was Gedit which does not have a shared search bar across all documents and also does not immediately start searching when you type in the replace dialog.
Yes, I removed its "always enabled" state in !58 (merged), considering that there was no reason for the search bar to not follow the search settings on this point. Same as above for tab switching: this can be easily reverted.
Anyway, I think we could leave this issue open until Mousepad 0.5.2 is released, in particular for the workaround for the keybinding bug.
NB: the default value for wrap-around in GSettings is currently false, we could change it to true.
Well, all options (except those only related to replacement) affect both replace dialog and search bar. Also, I put highlight-all in the menubar to not overload even more the replace dialog, but also because it is quite a special "setting": not really a search setting actually, it only influences the rendering of the search, not the result.
wrap-around on the other hand is a real search setting, and I find that the location we gave it in commit bfaa6a22 is quite suitable (and justified in #15 (closed)).
Personally, I do not see the benefit of having the search bar be affected by wrap-around. Firefox and Gedit have it always enabled for their search widget while displaying the total amount of matches.
Gedit: 1 of 2
Firefox: 1 of 2 matches Reached end of page, continued from top