2011-02-06 22:48:54 +00:00
|
|
|
# Basic test for searching with par-style awareness
|
2021-01-15 16:13:07 +00:00
|
|
|
UseShortcut "C-F20" "layout Part"
|
|
|
|
UseShortcut "C-F21" "layout Chapter"
|
|
|
|
UseShortcut "C-F22" "layout Section"
|
|
|
|
UseShortcut "C-F23" "layout Subsection"
|
|
|
|
UseShortcut "C-F24" "layout Subsubsection"
|
|
|
|
UseShortcut "C-F25" "layout Paragraph"
|
|
|
|
UseShortcut "C-F26" "layout Subparagraph"
|
|
|
|
UseShortcut "C-F29" "layout Standard"
|
2011-01-30 19:46:05 +00:00
|
|
|
|
2021-01-15 16:13:07 +00:00
|
|
|
PrepareShortcuts
|
2015-03-09 08:41:34 +00:00
|
|
|
Lang sk_SK.utf8
|
2017-05-17 10:12:55 +00:00
|
|
|
CO: findadv-06.ctrl
|
2017-05-24 14:29:32 +00:00
|
|
|
TestBegin test.lyx -dbg key,find > findadv-06.loga.txt 2>&1
|
2021-01-15 16:13:07 +00:00
|
|
|
KD: 100
|
2017-05-17 10:12:55 +00:00
|
|
|
CN: Part 1
|
2011-01-30 19:46:05 +00:00
|
|
|
KK: foo\[Return]
|
2021-01-15 16:13:07 +00:00
|
|
|
KK: \C\[F22]foo\[Return]
|
|
|
|
KK: \C\[F29]foo\C\[Home]
|
2015-03-09 08:41:34 +00:00
|
|
|
KK: \Axbuffer-write\[Return]
|
|
|
|
KK: \Axdialog-show findreplaceadv\[Return]
|
2011-01-30 19:46:05 +00:00
|
|
|
# Uncheck ignore format
|
2022-05-10 13:03:11 +00:00
|
|
|
KK: \At\Ar\Ak\Ah
|
2020-05-29 12:22:34 +00:00
|
|
|
KK: \CF
|
2021-01-15 16:13:07 +00:00
|
|
|
#KK: \Aj
|
|
|
|
KK: \C\[F22]foo\[Return]
|
2017-05-17 10:12:55 +00:00
|
|
|
CP: Putting selection at .*idx: 0 par: 1 pos: 0\n with len: 3
|
2011-01-30 19:46:05 +00:00
|
|
|
#
|
2017-05-17 10:12:55 +00:00
|
|
|
CN: Part 2
|
|
|
|
CP: Key (queried) [action=buffer-begin][Ctrl+Home]
|
|
|
|
KK: \[Escape]\C\[Home]
|
2015-03-09 08:41:34 +00:00
|
|
|
KK: \Axdialog-show findreplaceadv\[Return]
|
2017-05-17 10:12:55 +00:00
|
|
|
KK: \[Delete]
|
2011-01-30 19:46:05 +00:00
|
|
|
# Uncheck ignore format
|
2022-05-10 13:03:11 +00:00
|
|
|
#KK: \At\Ar\Ak\Ah
|
2020-05-29 12:22:34 +00:00
|
|
|
#KK: \CF
|
2021-01-15 16:13:07 +00:00
|
|
|
KK: \C\[F29]
|
2020-05-29 12:22:34 +00:00
|
|
|
KK: foo\[Return]\[Return]\[Return]
|
2017-05-17 10:12:55 +00:00
|
|
|
CP: Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 3
|
2020-05-29 12:22:34 +00:00
|
|
|
CP: Putting selection at .*idx: 0 par: 1 pos: 0\n with len: 3
|
2017-05-17 10:12:55 +00:00
|
|
|
CP: Putting selection at .*idx: 0 par: 2 pos: 0\n with len: 3
|
2011-01-30 19:46:05 +00:00
|
|
|
TestEnd
|
2015-03-09 08:41:34 +00:00
|
|
|
Lang C
|
2017-05-24 14:29:32 +00:00
|
|
|
Assert searchPatterns.pl base=findadv-06
|