Skip to content

Latest commit

 

History

History
373 lines (282 loc) · 2.71 KB

select-lines.md

File metadata and controls

373 lines (282 loc) · 2.71 KB

1

foo
^ 0
bar
baz

1 whole-buffer

up

  • .select.buffer
foo
^^^^ 0
bar
^^^^ 0
baz
^^^ 0

1 select-line

up

  • .select.line.below
foo
^^^^ 0
bar
baz

1 select-line x

up

  • .select.line.below
foo
bar
^^^^ 0
baz

1 extend-line

up

  • .select.line.below.extend
foo
^^^^ 0
bar
baz

1 extend-line x

up

  • .select.line.below.extend
foo
^^^^ 0
bar
^^^^ 0
baz

2

hello
   ^^^ 0
world
^^^^^^ 0
  my
^^^ 0
    friends,
  and welcome

2 line

up

  • .select.line.below
hello
world
  my
^^^^^ 0
    friends,
  and welcome

2 line-extend

up

  • .select.line.below.extend
hello
   ^^^ 0
world
^^^^^^ 0
  my
^^^^^ 0
    friends,
  and welcome

2 line-2

up

  • .select.line.below { count: 2 }
hello
world
  my
    friends,
^^^^^^^^^^^^^ 0
  and welcome

2 line-extend-2

up

  • .select.line.below.extend { count: 2 }
hello
   ^^^ 0
world
^^^^^^ 0
  my
^^^^^ 0
    friends,
^^^^^^^^^^^^^ 0
  and welcome

3

hello
  ^^^^ 0
world

my
friend

3 line

up

  • .select.line.below

The full line is not yet selected, so select it.

hello
^^^^^^ 0
world

my
friend

3 line-2

up

  • .select.line.below { count: 2 }

First select the full first line, then the next line.

hello
world
^^^^^^ 0

my
friend

3 line-2 line

up

  • .select.line.below

An empty line is selected now.

hello
world

^ 0
my
friend

3 line-2 line x

up

  • .select.line.below
hello
world

my
^^^ 0
friend

4

The full line is selected, but in reverse direction.

hello
|^^^^^ 0
world

4 line

up

  • .select.line.below

The selection should be reversed without moving on.

hello
^^^^^^ 0
world

5

hello
|^^^^^ 0
world
^ 0

5 line-extend

up

  • .select.line.below.extend

The special case above does not apply if anchor is on a different line.

hello
world
^ 0

5 line-extend x

up

  • .select.line.below.extend
hello
world
^^^^^ 0

6

foo
 | 0
bar
baz
quux

6 line

up

  • .select.line.below
foo
^^^^ 0
bar
baz
quux

6 line x

up

  • .select.line.below
foo
bar
^^^^ 0
baz
quux

6 line x x

up

  • .select.line.below
foo
bar
baz
^^^^ 0
quux

6 line line-extend

up

  • .select.line.below.extend
foo
^^^^ 0
bar
^^^^ 0
baz
quux

6 line-extend

up

  • .select.line.below.extend
foo
^^^^ 0
bar
baz
quux

7

behavior <- character

foo
   ^ 0
bar
baz

7 line-extend

up

  • .select.line.below.extend
foo
^^^^ 0
bar
baz