I wrote an i-search replacement in the sublemacspro plugin a while back.
It stopped working in one situation: when you start a new search and then press the search key again, it will insert the previous search string used in the last search. That is no longer working. The way I did that in the past was to run commands on the input panel view, in particular, “select_all”, “left_delete”, “insert”, with the previous search string as an argument to the “insert” command. Unfortunately, this is now doing auto-indent during that insert, and possibly other things I suppose. This is new behavior that I am only now noticing, because it only happens when you search across newline boundaries.
So I thought to myself, I have a handle on the view itself, so why don’t I erase the region and insert the characters programmatically. Unfortunately the problem is, I don’t have an “edit” instance to pass into those commands. So, I assume I am out of luck but just want to make sure.
If that doesn’t work, I think I might have to … set a setting on the input panel to prevent it from performing auto indent? Will that work?