aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-25 19:19:05 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-25 19:19:05 +0200
commit62682f0d351890f3050b3251d5d26448bf922109 (patch)
treeea2b813f71abe6713308fe1a4675520b79e1247b /vis.c
parent334e7f278f18889582c51bd9aceb469e716cddea (diff)
downloadvis-62682f0d351890f3050b3251d5d26448bf922109.tar.gz
vis-62682f0d351890f3050b3251d5d26448bf922109.tar.xz
Add infrastructure for word (lowercase) motions
This unfortunately doesn't work as is which is why it is not actually hooked up to key bindings.
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vis.c b/vis.c
index f933cee..16e7385 100644
--- a/vis.c
+++ b/vis.c
@@ -203,6 +203,10 @@ enum {
MOVE_COLUMN,
MOVE_CHAR_PREV,
MOVE_CHAR_NEXT,
+ MOVE_WORD_START_NEXT,
+ MOVE_WORD_END_PREV,
+ MOVE_WORD_END_NEXT,
+ MOVE_WORD_START_PREV,
MOVE_LONGWORD_START_PREV,
MOVE_LONGWORD_START_NEXT,
MOVE_LONGWORD_END_PREV,
@@ -274,6 +278,10 @@ static Movement moves[] = {
[MOVE_COLUMN] = { .cmd = column, .type = CHARWISE|IDEMPOTENT},
[MOVE_CHAR_PREV] = { .win = window_char_prev },
[MOVE_CHAR_NEXT] = { .win = window_char_next },
+ [MOVE_WORD_START_PREV] = { .txt = text_word_start_prev, .type = CHARWISE },
+ [MOVE_WORD_START_NEXT] = { .txt = text_word_start_next, .type = CHARWISE },
+ [MOVE_WORD_END_PREV] = { .txt = text_word_end_prev, .type = CHARWISE|INCLUSIVE },
+ [MOVE_WORD_END_NEXT] = { .txt = text_word_end_next, .type = CHARWISE|INCLUSIVE },
[MOVE_LONGWORD_START_PREV] = { .txt = text_longword_start_prev, .type = CHARWISE },
[MOVE_LONGWORD_START_NEXT] = { .txt = text_longword_start_next, .type = CHARWISE },
[MOVE_LONGWORD_END_PREV] = { .txt = text_longword_end_prev, .type = CHARWISE|INCLUSIVE },