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
12 KK: \\()[]{}%^#@?*.\[Return]
13 KK: \\()[]{}%^#@?*.\[Return]
14 KK: \\()[]{}%^#@?*.\[Return]
15 KK: \\()[]{}%^#@?*.\[Return]
16 KK: \\()[]{}%^#@?*.\[Return]
17 KK: \\()[]{}%^#@?*.\[Return]
18 KK: \\()[]{}%^#@?*.\[Return]
19 KK: \\()[]{}%^#@?*.\[Return]
23 # First tests with ignore format set
24 # The tests are not separated by \[Home] in order to
25 # be found at possibly different inset
29 KK: \[Escape]\C\[Home]
30 CP: Key (queried) [action=buffer-begin][Ctrl+Home]
32 KK: \C\[F21]\C\[F20]\\@\[Return]
35 CR: [pP]utting selection at .*idx: 0 par: 0 pos: 10\n with len: 1
38 KK: \C\[F21]\C\[F20]\\(\[Return]
41 CP: Putting selection at .*idx: 0 par: 1 pos: 1\n with len: 1
44 KK: \C\[F21]\C\[F20]\\)\[Return]
47 CP: Putting selection at .*idx: 0 par: 1 pos: 2\n with len: 1
50 KK: \C\[F21]\C\[F20]\\\\\[Return]
52 CN: Escaping: '\backslash\backslash'
53 CP: Putting selection at .*idx: 0 par: 2 pos: 0\n with len: 1
56 KK: \C\[F21]\C\[F20]%\[Return]
58 CP: Putting selection at .*idx: 0 par: 2 pos: 7\n with len: 1
61 KK: \C\[F21]\C\[F20]\\^\[Return]
64 CP: Putting selection at .*idx: 0 par: 2 pos: 8\n with len: 1
67 KK: \C\[F21]\C\[F20]\\[\[Return]
69 CP: Putting selection at .*idx: 0 par: 3 pos: 3\n with len: 1
72 KK: \C\[F21]\C\[F20]\\]\[Return]
75 CP: Putting selection at .*idx: 0 par: 3 pos: 4\n with len: 1
78 KK: \C\[F21]\C\[F20]\\{\[Return]
79 CN: Escaping: '\backslash\{'
80 CP: Putting selection at .*idx: 0 par: 3 pos: 5\n with len: 1
83 KK: \C\[F21]\C\[F20]\\}\[Return]
85 CN: Escaping: '\backslash\}'
86 CP: Putting selection at .*idx: 0 par: 3 pos: 6\n with len: 1
91 CN: Now tests with unchecked ignore format
95 # Uncheck ignore format
98 KK: \[Escape]\C\[Home]
100 CP: Key (queried) [action=buffer-begin][Ctrl+Home]
104 KK: \C\[F21]\C\[F20]\\[\[Return]
107 CP: Putting selection at .*idx: 0 par: 0 pos: 3\n with len: 1
110 KK: \C\[F21]\C\[F20]\\(\[Return]
112 CP: Putting selection at .*idx: 0 par: 1 pos: 1\n with len: 1
115 KK: \C\[F21]\C\[F20]\\)\[Return]
117 CP: Putting selection at .*idx: 0 par: 1 pos: 2\n with len: 1
120 KK: \C\[F21]\C\[F20]\\\\\[Return]
122 CP: Putting selection at .*idx: 0 par: 2 pos: 0\n with len: 1
125 KK: \C\[F21]\C\[F20]%\[Return]
127 CP: Putting selection at .*idx: 0 par: 2 pos: 7\n with len: 1
130 KK: \C\[F21]\C\[F20]\\^\[Return]
132 CP: Putting selection at .*idx: 0 par: 2 pos: 8\n with len: 1
135 KK: \C\[F21]\C\[F20]\\{\[Return]
136 CP: Escaping: '\backslash\{'
137 CP: Putting selection at .*idx: 0 par: 3 pos: 5\n with len: 1
140 KK: \C\[F21]\C\[F20]\\}\[Return]
141 CP: Escaping: '\backslash\}'
142 CP: Putting selection at .*idx: 0 par: 3 pos: 6\n with len: 1
145 KK: \C\[F21]\C\[F20]\\]\[Return]
147 CP: Putting selection at .*idx: 0 par: 4 pos: 4\n with len: 1
150 KK: \C\[F21]\C\[F20]\\@\[Return]
152 CP: Putting selection at .*idx: 0 par: 4 pos: 10\n with len: 1
157 Assert searchPatterns.pl base=findadv-combined