Manoj Rajagopalan wrote:
Hi lyx-devel,
Hello,
no need to file another trac request, there's already one (#2548) . . .
http://www.lyx.org/trac/ticket/2548
It would be useful to support this feature because we could perform a
replace-all within a selection and quickly achieve the desired result without
clobbering the rest of the document.
. . . and the feature is certainly useful, however see comments in the
Trac ticket.
The find-and-replace dialog could support a checkbox labelled "In
selection" which should be enabled and checked if the user invoked this with
an active selection. It should be disabled if there is no selection.
The find/replace feature currently selects on its own the text that has
just been matched, so, at the first [Next] press, you'd loose the
original selection. Now, pressing again [Next] I guess you'd like to
keep searching/replacing restricting the operation within the original
selection. So, do you have any concrete proposal on such issues as:
- how to highlight this region that LyX keeps remembering in which the
search is restricted
- is this region automatically defined (such as the current selection
when you do something particular such as activate this or that LyX
feature), or does the user have explicit control over it (such as the
user selects a region, then it chooses some menu voice as [Edit]->[Mark
Selection])
- how/when to let LyX forget about such a region: does it happen
automatically, or is it manually done by the user ?
Thanks,
T.