Guenter Milde wrote:
such use-case scenario would become much less likely to happen with
Advanced Search, wouldn't it be ?
Prabably. I am not (yet) familiar with the power and usage of the new
interface. So I cannot tell whether it will be able to do regexp
replacements in math, say.
currently, it supports format- and regexp- enhanced search, and format-
enhanced replace, e.g., you cannot back-reference found sub-patterns in
your replacement text, however such extension should be feasible.
However, grep for a phrase in a set of lyx documents
(all papers of the last 3 years, say) is still a valid case.
sure, that's something at which grep is surely unbeatable and faster. On
a related note, I was planning to implement a search scope in which all
.lyx files within a folder are searched, this is something quite
straightforward to be done in the current code base, however it will
involve having LyX load all the files one by one, and doing the search,
something which -- as said -- will be much slower than a grep. Anyway, I
think an XML file-format would almost certainly preserve the "grep"
ability, and within certain boundaries I guess also a regex-based replace.
T.