Search improvements
@behdad
Submitted by Behdad Esfahbod Link to original bug (#627886)
Description
Just a list of things that can be done much better in the vte buffer search stuff:
-
Right now we search text one line at a time. With regexp search, it should be able to do multi-line searches. Doing that right is very hard currently. To do it easily, we'd need pcre/gregex support for 1) backward search, 2) an iconv-like "give me more text" api.
-
Multiple results per line are not found currently.
-
Highlight-all-matches doesn't exist.
-
We should directly search on the UTF-8 text that we already have in the history buffer. Instead, we get the rowdata and convert to UTF-8 again. Suboptimal.
-
Currently we use selection as our last-search-position iterator. Works great most of the time and is kinda what gedit does too. But currently if you "Find Next" while at the last result, we unhighlight the last result. Most search implementations don't. (brought up in bug 627258)
Perhaps much much more.