]> git.lyx.org Git - features.git/commitdiff
AdvSearch - regexps fix.
authorPavel Sanda <sanda@lyx.org>
Thu, 8 Jan 2009 21:49:56 +0000 (21:49 +0000)
committerPavel Sanda <sanda@lyx.org>
Thu, 8 Jan 2009 21:49:56 +0000 (21:49 +0000)
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
src/LyXAction.cpp

index ee294b42ee77c06cc9cea29ca59f9fc72601673b..e87b96ab81ed00fa253eee58ee39c4111020353b 100644 (file)
@@ -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"
index 8f904ff74c40d0be62bead9073493944d731bf39..9f732ae7c8ca3246be8bbb968131f4609e00ce56 100644 (file)
@@ -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 [<ARG>]
+ * \li Params: <ARG>: 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.