From b74d910ffe88f569bf72db76d1d15e047edfbe0d Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Thu, 8 Jan 2009 21:49:56 +0000 Subject: [PATCH] AdvSearch - regexps fix. Patch from Tommaso. http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147090.html git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28038 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/bind/cua.bind | 1 + src/LyXAction.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/lib/bind/cua.bind b/lib/bind/cua.bind index ee294b42ee..e87b96ab81 100644 --- a/lib/bind/cua.bind +++ b/lib/bind/cua.bind @@ -65,6 +65,7 @@ \bind "C-m" "math-mode" \bind "C-S-M" "math-display" +\bind "C-S-r" "regexp-mode" \bind "C-M-n" "command-sequence math-display; math-number-toggle;" \bind "C-f" "dialog-show findreplace" diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index 8f904ff74c..9f732ae7c8 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -1519,6 +1519,17 @@ void LyXAction::init() * \endvar */ { LFUN_MATH_MODE, "math-mode", Noop, Math }, +/*! + * \var lyx::FuncCode lyx::LFUN_REGEXP_MODE + * \li Action: Enters regexp mode (i.e., puts regexp insets on the current + cursor position). + * \li Notion: If there is any selected text, then it is moved inside the created regexp inset. + * \li Syntax: regexp-mode [] + * \li Params: : eventual argument (regular expression). + * \li Origin: Tommaso, 4 Ott 2008 + * \endvar + */ + { LFUN_REGEXP_MODE, "regexp-mode", Noop, Math }, /*! * \var lyx::FuncCode lyx::LFUN_MATH_NUMBER_LINE_TOGGLE * \li Action: Toggles numbering of the current formula line. -- 2.39.2