diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-12-21 12:53:40 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-12-21 12:55:09 +0100 |
| commit | d7f5912eb1c044399c662329656ab0cca37a471b (patch) | |
| tree | 7b3fc68e8150333c82587d786abfa8a0f38d6b6f /main.c | |
| parent | 559ab349a05d5201b666eddb22d921c40b131bd5 (diff) | |
| download | vis-d7f5912eb1c044399c662329656ab0cca37a471b.tar.gz vis-d7f5912eb1c044399c662329656ab0cca37a471b.tar.xz | |
vis: implement `gh` and `gl` to move by relative byte offsets
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -161,6 +161,8 @@ enum { VIS_ACTION_CURSOR_SCREEN_LINE_END, VIS_ACTION_CURSOR_PERCENT, VIS_ACTION_CURSOR_BYTE, + VIS_ACTION_CURSOR_BYTE_LEFT, + VIS_ACTION_CURSOR_BYTE_RIGHT, VIS_ACTION_CURSOR_PARAGRAPH_PREV, VIS_ACTION_CURSOR_PARAGRAPH_NEXT, VIS_ACTION_CURSOR_SENTENCE_PREV, @@ -457,6 +459,16 @@ static const KeyAction vis_action[] = { "Move to absolute byte position", movement, { .i = VIS_MOVE_BYTE } }, + [VIS_ACTION_CURSOR_BYTE_LEFT] = { + "cursor-byte-left", + "Move count bytes to the left", + movement, { .i = VIS_MOVE_BYTE_LEFT } + }, + [VIS_ACTION_CURSOR_BYTE_RIGHT] = { + "cursor-byte-right", + "Move count bytes to the right", + movement, { .i = VIS_MOVE_BYTE_RIGHT } + }, [VIS_ACTION_CURSOR_PARAGRAPH_PREV] = { "cursor-paragraph-prev", "Move cursor paragraph backward", |
