File: issue_1274_blockquote_return.vader

package info (click to toggle)
vim-vimwiki 2024.01.24-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,692 kB
  • sloc: sh: 313; makefile: 2
file content (75 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Issue: #1274
# Feature: Markdown -- Continue blockquote when <CR> is pressed in insert mode.


Given vimwiki (Blockquote with test {{{1):
  > Dummy text 1


Execute (Set syntax markdown):
  call SetSyntax('markdown')


Do (Press insert, enter and type):
  A
  \<Cr>
  Dummy text 2


Expect(Marker added 1):
  > Dummy text 1
  > Dummy text 2


Do (Press o and type):
  o
  Dummy text 2


Expect(Marker added 2):
  > Dummy text 1
  > Dummy text 2


Do (Press O and type):
  O
  Dummy text 2


Expect(Marker added 3, above):
  > Dummy text 2
  > Dummy text 1


Given vimwiki (Blockquote without test {{{1):
  >


Do (Press insert, enter and type):
  A
  \<Cr>
  Dummy text 2


Expect(Marker removed):
  Dummy text 2


Do (Press o):
  o
  Dummy text 2


Expect(Marker appended, below):
  >
  > Dummy text 2


Do (Press O):
  O
  Dummy text 2


Expect(Marker appended, above):
  > Dummy text 2
  >