mirror of https://github.com/helix-editor/helix
Add documentation
* `copy_selection_on_prev_line` * `extend_char_left` * `extend_char_right` * `extend_line_down` * `extend_line_up` * `move_char_left` * `move_char_right` * `move_line_down` * `move_line_up` * `no_op`pull/997/head
parent
f5b53e074c
commit
00f70e9ba6
@ -0,0 +1,18 @@
|
|||||||
|
`copy_selection_on_prev_line`
|
||||||
|
|
||||||
|
Copies the current primary selection to the first previous line long enough to accomodate it.
|
||||||
|
|
||||||
|
--- Examples ---
|
||||||
|
|
||||||
|
The selection is copied from line 1 to line 2.
|
||||||
|
┌───────────────────────────┐ ┌───────────────────────────┐
|
||||||
|
│ This is text on line 1. │ --> │ This is text [on line 1]. │
|
||||||
|
│ This is text [on line 2]. │ │ This is text [on line 2]. │
|
||||||
|
└───────────────────────────┘ └───────────────────────────┘
|
||||||
|
|
||||||
|
The selection duplication skips line 2 because it is too short.
|
||||||
|
┌──────────────────────────────────┐ ┌──────────────────────────────────┐
|
||||||
|
│ This is a longer line of text. │ │ This is a longer li[ne of t]ext. │
|
||||||
|
│ This is a shorter line. │ --> │ This is a shorter line. │
|
||||||
|
│ This is another lon[ger lin]e. │ │ This is another lon[ger lin]e. │
|
||||||
|
└──────────────────────────────────┘ └──────────────────────────────────┘
|
@ -0,0 +1,3 @@
|
|||||||
|
`extend_char_left`
|
||||||
|
|
||||||
|
Extending version of `move_char_left`.
|
@ -0,0 +1,3 @@
|
|||||||
|
`extend_char_right`
|
||||||
|
|
||||||
|
Extending version of `move_char_right`.
|
@ -0,0 +1,3 @@
|
|||||||
|
`extend_line_down`
|
||||||
|
|
||||||
|
Extending version of `move_line_down`.
|
@ -0,0 +1,3 @@
|
|||||||
|
`extend_line_up`
|
||||||
|
|
||||||
|
Extending version of `move_line_up`.
|
@ -0,0 +1,3 @@
|
|||||||
|
`move_char_left`
|
||||||
|
|
||||||
|
Moves all cursors 1 character left, removing any selections.
|
@ -0,0 +1,3 @@
|
|||||||
|
`move_char_right`
|
||||||
|
|
||||||
|
Moves all cursors 1 character right, removing any selections.
|
@ -0,0 +1,13 @@
|
|||||||
|
`move_line_down`
|
||||||
|
|
||||||
|
Moves all cursors 1 line down, removing any selections.
|
||||||
|
Repeating this will remember the vertical position of the cursors, even when moving across shorter lines.
|
||||||
|
|
||||||
|
--- Examples ---
|
||||||
|
|
||||||
|
The cursor remembers its vertical position, even after moving across the shorter line.
|
||||||
|
┌────────────────────────────┐ ┌────────────────────────────┐ ┌──────────────────────────────┐
|
||||||
|
│ This is a longer l[i]ne. │ │ This is a longer line. │ │ This is a longer line. │
|
||||||
|
│ Shorter line. │ --> │ Shorter line.[] │ --> │ Shorter line. │
|
||||||
|
│ This is another long line. │ │ This is another long line. │ │ This is another lo[n]g line. │
|
||||||
|
└────────────────────────────┘ └────────────────────────────┘ └──────────────────────────────┘
|
@ -0,0 +1,13 @@
|
|||||||
|
`move_line_up`
|
||||||
|
|
||||||
|
Moves all cursors 1 line up, removing any selections.
|
||||||
|
Repeating this will remember the vertical position of the cursors, even when moving across shorter lines.
|
||||||
|
|
||||||
|
--- Examples ---
|
||||||
|
|
||||||
|
The cursor remembers its vertical position, even after moving across the shorter line.
|
||||||
|
┌──────────────────────────────┐ ┌────────────────────────────┐ ┌────────────────────────────┐
|
||||||
|
│ This is a longer line. │ │ This is a longer line. │ │ This is a longer l[i]ne. │
|
||||||
|
│ Shorter line. │ --> │ Shorter line.[] │ --> │ Shorter line. │
|
||||||
|
│ This is another lo[n]g line. │ │ This is another long line. │ │ This is another long line. │
|
||||||
|
└──────────────────────────────┘ └────────────────────────────┘ └────────────────────────────┘
|
@ -0,0 +1,3 @@
|
|||||||
|
`no_op`
|
||||||
|
|
||||||
|
Does nothing. Use this to disable default keybinds.
|
Loading…
Reference in New Issue