File: table.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 (88 lines) | stat: -rw-r--r-- 2,202 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
76
77
78
79
80
81
82
83
84
85
86
87
88
# Table autoformating
# Very configurable: read doc/design_notes.md

# Move <Tab> at end of row if next row is badly formated {{{1
# See #1126
##########################
Given vimwiki (Header ok but 1 row bad):
  | Service to be Build | Build Tag | Service to Deploy | Deploy Tag | Comments |
  |---------------------|-----------|-------------------|------------|----------|
  |||Provision/Core/Keycloak|release-3.8.0_RC9|This was done as part of release-3.7.0 hotfix and is not required if you are already on Keycloak 7|
  |||Provision/DataPipeline/AnalyticsSpark|release-3.8.0_RC6||
  |||OpsAdministration/Core/ESMapping|release-3.8.0_RC9|Choose `userv1,orgv2` for jenkins job parameter `indices_name`|

Do (i<tab> at end of first line):
  $i\<Tab>

Expect(Crash (List required)):
# E714: List required <= tbl#goto_next_col, line 9
  | Service to be Build | Build Tag | Service to Deploy | Deploy Tag | Comments |
  |---------------------|-----------|-------------------|------------|----------|
  |||Provision/Core/Keycloak|release-3.8.0_RC9|This was done as part of release-3.7.0 hotfix and is not required if you are already on Keycloak 7|
  |||Provision/DataPipeline/AnalyticsSpark|release-3.8.0_RC6||
  |||OpsAdministration/Core/ESMapping|release-3.8.0_RC9|Choose `userv1,orgv2` for jenkins job parameter `indices_name`|


# Move <Tab> and <S-Tab> map {{{1
# See #1048
##########################

Given vimwiki (Table Number):
  | A | B | C |
  |---|---|---|
  | 1 | 2 | 3 |
  | 4 | 5 | 6 |

Execute (testmap):
  imap testmap1 <Plug>VimwikiTableNextCell
  imap testmap2 <Plug>VimwikiTablePrevCell

Do (2 x Next):
  gga
  testmap1
  testmap1
  \<Del>Z

Expect (One Z in B):
  | A | Z | C |
  |---|---|---|
  | 1 | 2 | 3 |
  | 4 | 5 | 6 |

Do (4 X Next):
  gga
  testmap1
  testmap1
  testmap1
  testmap1
  \<Del>Z

Expect (One Z in 1):
  | A | B | C |
  |---|---|---|
  | Z | 2 | 3 |
  | 4 | 5 | 6 |

Do (4 X Next + 1 X Prev):
  gga
  testmap1
  testmap1
  testmap1
  testmap1
  testmap1
  testmap2
  \<Del>Z

Expect (One Z in 1):
  | A | B | C |
  |---|---|---|
  | Z | 2 | 3 |
  | 4 | 5 | 6 |


Execute (Clean #1048):
  iunmap testmap1
  iunmap testmap2


# vim: foldmethod=marker foldlevel=30