vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit c11e02f688d50d1994ace734a742d5cbbd0e6d5e parent baac9f389d29081fef18475dd10b7ce93320b314 Author: Marc André Tanner <mat@brain-dump.org> Date: Sun, 9 Jul 2017 12:32:38 +0200 test/vis: add more tests for selection operations Diffstat:
36 files changed, 296 insertions(+), 0 deletions(-)
diff --git a/vis/selections/combine-intersect.in b/vis/selections/combine-intersect.in @@ -0,0 +1,10 @@ +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/combine-intersect.keys b/vis/selections/combine-intersect.keys @@ -0,0 +1,5 @@ +:x/.*/ x/.$/ <Enter> +m <Escape><Escape> +:x/.*/ x/^./ <Enter> +z& +:i/|/ <Enter> diff --git a/vis/selections/combine-intersect.ref b/vis/selections/combine-intersect.ref @@ -0,0 +1,10 @@ +|100 +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/combine-leftmost.in b/vis/selections/combine-leftmost.in @@ -0,0 +1,10 @@ +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/combine-leftmost.keys b/vis/selections/combine-leftmost.keys @@ -0,0 +1,5 @@ +:x/.*/ x/^./ <Enter> +m <Escape><Escape> +:x/.*/ x/.$/ <Enter> +z< +:{ i/[/ a/]/ } <Enter> diff --git a/vis/selections/combine-leftmost.ref b/vis/selections/combine-leftmost.ref @@ -0,0 +1,10 @@ +[1]00 +[1]01 +[1]02 +[1]03 +[1]04 +[1]05 +[1]06 +[1]07 +[1]08 +[1]09 diff --git a/vis/selections/combine-longer.in b/vis/selections/combine-longer.in @@ -0,0 +1,10 @@ +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/combine-longer.keys b/vis/selections/combine-longer.keys @@ -0,0 +1,5 @@ +:x/.*/ x/./ g2 <Enter> +m <Escape><Escape> +:x/.*/ <Enter> +z+ +:{ i/[/ a/]/ } <Enter> diff --git a/vis/selections/combine-longer.ref b/vis/selections/combine-longer.ref @@ -0,0 +1,10 @@ +[100] +[101] +[102] +[103] +[104] +[105] +[106] +[107] +[108] +[109] diff --git a/vis/selections/combine-rightmost.in b/vis/selections/combine-rightmost.in @@ -0,0 +1,10 @@ +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/combine-rightmost.keys b/vis/selections/combine-rightmost.keys @@ -0,0 +1,5 @@ +:x/.*/ x/^./ <Enter> +m <Escape><Escape> +:x/.*/ x/.$/ <Enter> +z> +:{ i/[/ a/]/ } <Enter> diff --git a/vis/selections/combine-rightmost.ref b/vis/selections/combine-rightmost.ref @@ -0,0 +1,10 @@ +10[0] +10[1] +10[2] +10[3] +10[4] +10[5] +10[6] +10[7] +10[8] +10[9] diff --git a/vis/selections/combine-shorter.in b/vis/selections/combine-shorter.in @@ -0,0 +1,10 @@ +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/combine-shorter.keys b/vis/selections/combine-shorter.keys @@ -0,0 +1,5 @@ +:x/.*/ x/./ g2 <Enter> +m <Escape><Escape> +:x/.*/ <Enter> +z- +:{ i/[/ a/]/ } <Enter> diff --git a/vis/selections/combine-shorter.ref b/vis/selections/combine-shorter.ref @@ -0,0 +1,10 @@ +1[0]0 +1[0]1 +1[0]2 +1[0]3 +1[0]4 +1[0]5 +1[0]6 +1[0]7 +1[0]8 +1[0]9 diff --git a/vis/selections/combine-union.in b/vis/selections/combine-union.in @@ -0,0 +1,10 @@ +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/combine-union.keys b/vis/selections/combine-union.keys @@ -0,0 +1,5 @@ +:x/.*/ x/^./ <Enter> +m <Escape><Escape> +:x/.*/ x/.$/ <Enter> +z| +:{ i/[/ a/]/ } <Enter> diff --git a/vis/selections/combine-union.ref b/vis/selections/combine-union.ref @@ -0,0 +1,10 @@ +[100] +[101] +[102] +[103] +[104] +[105] +[106] +[107] +[108] +[109] diff --git a/vis/selections/intersect-empty.in b/vis/selections/intersect-empty.in @@ -0,0 +1,10 @@ +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/intersect-empty.keys b/vis/selections/intersect-empty.keys @@ -0,0 +1,3 @@ +:x v%2 <Enter> +& +:i/|/ <Enter> diff --git a/vis/selections/intersect-empty.ref b/vis/selections/intersect-empty.ref @@ -0,0 +1,10 @@ +100| +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/intersect-whole.in b/vis/selections/intersect-whole.in @@ -0,0 +1,10 @@ +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/intersect-whole.keys b/vis/selections/intersect-whole.keys @@ -0,0 +1,5 @@ +:, <Enter> +m +:x/.*/ v%2 <Enter> +& +:{ i/[/ a/]/ } <Enter> diff --git a/vis/selections/intersect-whole.ref b/vis/selections/intersect-whole.ref @@ -0,0 +1,10 @@ +[100] +101 +[102] +103 +[104] +105 +[106] +107 +[108] +109 diff --git a/vis/selections/minus-empty.in b/vis/selections/minus-empty.in @@ -0,0 +1,10 @@ +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/minus-empty.keys b/vis/selections/minus-empty.keys @@ -0,0 +1,3 @@ +:x/.*/ v%2 <Enter> +\ +:{ i/[/ a/]/ } <Enter> diff --git a/vis/selections/minus-empty.ref b/vis/selections/minus-empty.ref @@ -0,0 +1,10 @@ +[100] +101 +[102] +103 +[104] +105 +[106] +107 +[108] +109 diff --git a/vis/selections/minus-whole.in b/vis/selections/minus-whole.in @@ -0,0 +1,10 @@ +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/minus-whole.keys b/vis/selections/minus-whole.keys @@ -0,0 +1,5 @@ +:, <Enter> +m +:x v%2 <Enter> +\ +:i/|/ <Enter> diff --git a/vis/selections/minus-whole.ref b/vis/selections/minus-whole.ref @@ -0,0 +1,10 @@ +100| +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/union-empty.in b/vis/selections/union-empty.in @@ -0,0 +1,10 @@ +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/union-empty.keys b/vis/selections/union-empty.keys @@ -0,0 +1,3 @@ +:x/.*/ v%2 <Enter> +| +:{ i/[/ a/]/ } <Enter> diff --git a/vis/selections/union-empty.ref b/vis/selections/union-empty.ref @@ -0,0 +1,10 @@ +[100] +101 +[102] +103 +[104] +105 +[106] +107 +[108] +109 diff --git a/vis/selections/union-whole.in b/vis/selections/union-whole.in @@ -0,0 +1,10 @@ +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 diff --git a/vis/selections/union-whole.keys b/vis/selections/union-whole.keys @@ -0,0 +1,5 @@ +:, <Enter> +m +:x v%2 <Enter> +| +:{ i/[/ a/]/ } <Enter> diff --git a/vis/selections/union-whole.ref b/vis/selections/union-whole.ref @@ -0,0 +1,11 @@ +[100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +] +\ No newline at end of file