Skip to content

Latest commit

 

History

History
252 lines (179 loc) · 3.01 KB

seek.md

File metadata and controls

252 lines (179 loc) · 3.01 KB

1

abcabc
| 0

1 select-to-included

up

  • .seek { input: "c", include: true }
abcabc
^^^ 0

1 select-to-included select-to

up

  • .seek { input: "c" }
abcabc
   ^^ 0

1 select-to-included select-to-character

up

behavior <- character

  • .seek { input: "c" }
abcabc
  ^^^ 0

1 select-to-c-2

up

  • .seek { input: "c", count: 2 }
abcabc
^^^^^ 0

1 select-to-c-2 select-to-c

up

  • .seek { input: "c", $expect: /^no selections remain$/ }
abcabc
^^^^^ 0

1 select-to-c-2 select-to-c select-to-b-backward

up

  • .seek { input: "b", direction: -1 }
abcabc
     | 0
1 select-to-c-2 select-to-c select-to-b-backward select-to-a-backward

up

  • .seek { input: "a", direction: -1 }
abcabc
    ^ 0

1 select-to-c-2 select-to-c-character

up

behavior <- character

  • .seek { input: "c", $expect: /^no selections remain$/ }
abcabc
^^^^^ 0

1 select-to-c-2 select-to-c-character select-to-b-character

up

  • .seek { input: "b", direction: -1 }
abcabc
  |^^ 0

2

abcdefghijk
   ^^^^ 0

2 extend-to-e-included-backward

up

  • .seek { input: "e", direction: -1, shift: "extend", include: true }
abcdefghijk
   ^^ 0

2 extend-to-g-included-backward

up

  • .seek { input: "g", direction: -1, shift: "extend", include: true }

Selection left unchanged since it can't find another "g" before this.

abcdefghijk
   ^^^^ 0

2 extend-to-d-included-backward

up

  • .seek { input: "d", direction: -1, shift: "extend", include: true }
abcdefghijk
   ^ 0

2 extend-to-b-included-backward

up

  • .seek { input: "b", direction: -1, shift: "extend", include: true }
abcdefghijk
 |^ 0

2 extend-to-b-backward-character

up

behavior <- character

  • .seek { input: "b", direction: -1, shift: "extend", include: true }
abcdefghijk
 |^^ 0

2 extend-to-g-backward

up

  • .seek { input: "g", direction: -1, shift: "extend" }

Selection left unchanged since it can't find another "g" before this.

abcdefghijk
   ^^^^ 0

2 extend-to-f-backward

up

  • .seek { input: "f", direction: -1, shift: "extend" }
abcdefghijk
   ^^^ 0

2 extend-to-e-backward

up

  • .seek { input: "e", direction: -1, shift: "extend" }
abcdefghijk
   ^^ 0

2 extend-to-c-backward

up

  • .seek { input: "c", direction: -1, shift: "extend" }
abcdefghijk
   | 0

2 extend-to-b-backward

up

  • .seek { input: "b", direction: -1, shift: "extend" }
abcdefghijk
  ^ 0

3

abc
def
ghi
 | 0
jkl
mno

3 select-to-line-end

up

  • .seek { input: "\n" }
abc
def
ghi
 ^^ 0
jkl
mno

3 select-to-line-end-included

up

  • .seek { input: "\n", include: true }
abc
def
ghi
 ^^^ 0
jkl
mno