2011-02-06 22:48:54 +00:00
|
|
|
# Basic test for searching with regular expressions
|
2017-05-22 16:42:44 +00:00
|
|
|
UseShortcut "C-F20" "regexp-mode"
|
|
|
|
UseShortcut "C-F21" "command-sequence dialog-show findreplaceadv ; buffer-end ; buffer-begin-select ; char-delete-forward ;"
|
|
|
|
PrepareShortcuts
|
|
|
|
#
|
2015-03-09 08:41:34 +00:00
|
|
|
Lang sk_SK.utf8
|
2017-05-17 10:12:55 +00:00
|
|
|
CO: findadv-08.ctrl
|
2017-05-24 14:29:32 +00:00
|
|
|
TestBegin test.lyx -dbg key,find > findadv-08.loga.txt 2>&1
|
2018-10-28 18:40:14 +00:00
|
|
|
KD: 100
|
2017-05-24 14:29:32 +00:00
|
|
|
CN: Part 1
|
|
|
|
Cr: ^.*Putting
|
2017-05-17 10:12:55 +00:00
|
|
|
CP: Key (queried) [action=buffer-begin][Ctrl+Home]
|
2011-02-06 22:48:54 +00:00
|
|
|
KK: Nel mezzo del cammin di nostra vita\[Return]
|
|
|
|
KK: mi ritrovai per una selva oscura\C\[Home]
|
2015-03-09 08:41:34 +00:00
|
|
|
KK: \Axbuffer-write\[Return]
|
2017-05-22 16:42:44 +00:00
|
|
|
KK: \C\[F21]
|
2017-04-24 15:43:39 +00:00
|
|
|
KK: o
|
2017-05-22 16:42:44 +00:00
|
|
|
KK: \C\[F20]
|
2018-11-26 15:00:27 +00:00
|
|
|
KK: .*? a\[Return]
|
2017-05-17 10:12:55 +00:00
|
|
|
CP: Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 8
|
|
|
|
#
|
2017-05-24 14:29:32 +00:00
|
|
|
CN: Started Part 2
|
2017-05-17 11:52:54 +00:00
|
|
|
CP: Key (queried) [action=buffer-begin][Ctrl+Home]
|
2017-05-22 16:42:44 +00:00
|
|
|
KK: \[Escape]\C\[Home]\C\[F21]
|
2017-04-24 15:43:39 +00:00
|
|
|
KK: o
|
2017-05-22 16:42:44 +00:00
|
|
|
KK: \C\[F20]
|
2017-04-24 15:43:39 +00:00
|
|
|
KK: [\\w]* a
|
2017-05-27 09:09:26 +00:00
|
|
|
#KD: 100
|
2017-05-12 09:22:05 +00:00
|
|
|
# select whole words
|
2017-05-22 16:42:44 +00:00
|
|
|
KK: \Ae
|
2017-04-24 15:43:39 +00:00
|
|
|
# search next
|
2022-03-26 18:38:55 +00:00
|
|
|
KK: \A>
|
2018-09-13 16:34:18 +00:00
|
|
|
# The following Escape is too fast
|
|
|
|
Sleep 1
|
2017-05-17 10:12:55 +00:00
|
|
|
KK: \[Escape]
|
2017-05-27 09:09:26 +00:00
|
|
|
#KD: 1
|
2017-05-22 16:42:44 +00:00
|
|
|
Cr: ^.*Putting
|
2017-05-17 10:12:55 +00:00
|
|
|
CP: Putting selection at .*idx: 0 par: 1 pos: 26\n with len: 6
|
|
|
|
#
|
2017-05-24 14:29:32 +00:00
|
|
|
CN: Part 3
|
2017-05-17 11:52:54 +00:00
|
|
|
CP: Key (queried) [action=buffer-begin][Ctrl+Home]
|
2017-05-22 16:42:44 +00:00
|
|
|
KK: \[Escape]\C\[Home]\C\[F21]
|
|
|
|
KK: \C\[F20]
|
2017-05-17 10:12:55 +00:00
|
|
|
KK: .*
|
2017-05-24 14:29:32 +00:00
|
|
|
KK: \[Return]\[Return]\[Return]
|
2017-05-22 16:42:44 +00:00
|
|
|
Cr: ^.*Putting
|
2017-05-17 11:52:54 +00:00
|
|
|
CP: Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 3
|
2017-05-22 16:42:44 +00:00
|
|
|
Cr: ^.*Putting
|
2017-05-17 11:52:54 +00:00
|
|
|
CP: Putting selection at .*idx: 0 par: 0 pos: 4\n with len: 5
|
2017-05-22 16:42:44 +00:00
|
|
|
Cr: ^.*Putting
|
2017-05-17 10:12:55 +00:00
|
|
|
CP: Putting selection at .*idx: 0 par: 0 pos: 10\n with len: 3
|
2011-02-06 22:48:54 +00:00
|
|
|
TestEnd
|
2017-05-17 11:52:54 +00:00
|
|
|
Lang C
|
2017-05-24 14:29:32 +00:00
|
|
|
Assert searchPatterns.pl base=findadv-08
|
2017-05-17 10:12:55 +00:00
|
|
|
|