I broke this when factoring out the find-in-files widget into its own class. This patch adds a main_editor() global getter for grabbing at the main GTextEditor from wherever you are.
Instead of clogging up main.cpp with find-in-files functionality, put it in a FindInFilesWidget class in a separate file.