1 # Finding special latex/regexp chars: \
2 UseShortcut "C-F20" "regexp-mode"
3 UseShortcut "C-F21" "command-sequence dialog-show findreplaceadv ; buffer-end ; buffer-begin-select ; char-delete-forward ;"
7 CO: findadv-combined.ctrl
8 TestBegin test.lyx -dbg key,find > findadv-combined.loga.txt 2>&1
9 CP: Key (queried) [action=buffer-begin][Ctrl+Home]
10 # String to be checked
11 KK: \\()[]{}%^#@?*.\[Return]
12 KK: \\()[]{}%^#@?*.\[Return]
13 KK: \\()[]{}%^#@?*.\[Return]
14 KK: \\()[]{}%^#@?*.\[Return]
15 KK: \\()[]{}%^#@?*.\[Return]
16 KK: \\()[]{}%^#@?*.\[Return]
17 KK: \\()[]{}%^#@?*.\[Return]
18 KK: \\()[]{}%^#@?*.\[Return]
22 # First tests with ignore format set
23 # The tests are not separated by \[Home] in order to
24 # be found at possibly different inset
28 KK: \[Escape]\C\[Home]
29 CP: Key (queried) [action=buffer-begin][Ctrl+Home]
31 KK: \C\[F21]\C\[F20]\\@\[Return]
33 CR: [pP]utting selection at .*idx: 0 par: 0 pos: 10\n with len: 1
36 KK: \C\[F21]\C\[F20]\\(\[Return]
38 CP: Putting selection at .*idx: 0 par: 1 pos: 1\n with len: 1
41 KK: \C\[F21]\C\[F20]\\)\[Return]
43 CP: Putting selection at .*idx: 0 par: 1 pos: 2\n with len: 1
46 KK: \C\[F21]\C\[F20]\\\\\[Return]
47 CP: Escaping: '\backslash\backslash'
48 CP: Putting selection at .*idx: 0 par: 2 pos: 0\n with len: 1
51 KK: \C\[F21]\C\[F20]%\[Return]
53 CP: Putting selection at .*idx: 0 par: 2 pos: 7\n with len: 1
56 KK: \C\[F21]\C\[F20]\\^\[Return]
58 CP: Putting selection at .*idx: 0 par: 2 pos: 8\n with len: 1
61 KK: \C\[F21]\C\[F20]\\[\[Return]
63 CP: Putting selection at .*idx: 0 par: 3 pos: 3\n with len: 1
66 KK: \C\[F21]\C\[F20]\\]\[Return]
68 CP: Putting selection at .*idx: 0 par: 3 pos: 4\n with len: 1
71 KK: \C\[F21]\C\[F20]\\{\[Return]
72 CP: Escaping: '\backslash\{'
73 CP: Putting selection at .*idx: 0 par: 3 pos: 5\n with len: 1
76 KK: \C\[F21]\C\[F20]\\}\[Return]
77 CP: Escaping: '\backslash\}'
78 CP: Putting selection at .*idx: 0 par: 3 pos: 6\n with len: 1
83 CN: Now tests with unchecked ignore format
87 # Uncheck ignore format
89 KK: \[Escape]\C\[Home]
90 CP: Key (queried) [action=buffer-begin][Ctrl+Home]
94 KK: \C\[F21]\C\[F20]\\[\[Return]
96 CP: Putting selection at .*idx: 0 par: 0 pos: 3\n with len: 1
99 KK: \C\[F21]\C\[F20]\\(\[Return]
101 CP: Putting selection at .*idx: 0 par: 1 pos: 1\n with len: 1
104 KK: \C\[F21]\C\[F20]\\)\[Return]
106 CP: Putting selection at .*idx: 0 par: 1 pos: 2\n with len: 1
109 KK: \C\[F21]\C\[F20]\\\\\[Return]
111 CP: Putting selection at .*idx: 0 par: 2 pos: 0\n with len: 1
114 KK: \C\[F21]\C\[F20]%\[Return]
116 CP: Putting selection at .*idx: 0 par: 2 pos: 7\n with len: 1
119 KK: \C\[F21]\C\[F20]\\^\[Return]
121 CP: Putting selection at .*idx: 0 par: 2 pos: 8\n with len: 1
124 KK: \C\[F21]\C\[F20]\\{\[Return]
125 CP: Escaping: '\backslash\{'
126 CP: Putting selection at .*idx: 0 par: 3 pos: 5\n with len: 1
129 KK: \C\[F21]\C\[F20]\\}\[Return]
130 CP: Escaping: '\backslash\}'
131 CP: Putting selection at .*idx: 0 par: 3 pos: 6\n with len: 1
134 KK: \C\[F21]\C\[F20]\\]\[Return]
136 CP: Putting selection at .*idx: 0 par: 4 pos: 4\n with len: 1
139 KK: \C\[F21]\C\[F20]\\@\[Return]
141 CP: Putting selection at .*idx: 0 par: 4 pos: 10\n with len: 1
146 Assert searchPatterns.pl base=findadv-combined