Am Donnerstag, dem 17.12.2020 um 11:52 +0100 schrieb Kornel Benko:
> I would like to handle the logo characters (\LyX{}, \LaTeX{}, ...) in
> regexes too,
> but
> 1.) It is disabled to paste the chars in regex
> 2.) selecting the part together with the special in search field and
>       applying 'regexp-mode' will change the char to text (LyX,
> LaTeX, ...)
> 
> So the question: where is the responsible code?

InsetMathNest::getStatus()

The regexp inset is a math hull inset, thus restrictions to math apply.
You could add an exception to InsetMathHull::getStatus() for
InsetSpecialChar and type == hullRegexp for case LFUN_INSET_INSERT.

Jürgen

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to