diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-02-15 16:05:18 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-02-15 18:21:51 +0100 |
| commit | 44c8e46bc0a94c82dbbf2f13e2897c951f1e3b1a (patch) | |
| tree | ed9bf0f74c218526cf37754fd98e84c2358d76c6 /main.c | |
| parent | c7ab22b9b1b191596e6a6fed3437717d47e1ce72 (diff) | |
| download | vis-44c8e46bc0a94c82dbbf2f13e2897c951f1e3b1a.tar.gz vis-44c8e46bc0a94c82dbbf2f13e2897c951f1e3b1a.tar.xz | |
Add text object to cover lines with same indentation level
By default it is mapped to i<Tab> and a<Tab> however there
is currently no difference between the inner and regular
version.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -272,6 +272,7 @@ enum { VIS_ACTION_TEXT_OBJECT_FUNCTION_INNER, VIS_ACTION_TEXT_OBJECT_LINE_OUTER, VIS_ACTION_TEXT_OBJECT_LINE_INNER, + VIS_ACTION_TEXT_OBJECT_INDENTATION, VIS_ACTION_TEXT_OBJECT_SEARCH_FORWARD, VIS_ACTION_TEXT_OBJECT_SEARCH_BACKWARD, VIS_ACTION_MOTION_CHARWISE, @@ -1060,6 +1061,11 @@ static const KeyAction vis_action[] = { "The whole line, excluding leading and trailing whitespace", textobj, { .i = VIS_TEXTOBJECT_INNER_LINE } }, + [VIS_ACTION_TEXT_OBJECT_INDENTATION] = { + "text-object-indentation", + "All adjacent lines with the same indentation level as the current one", + textobj, { .i = VIS_TEXTOBJECT_INDENTATION } + }, [VIS_ACTION_TEXT_OBJECT_SEARCH_FORWARD] = { "text-object-search-forward", "The next search match in forward direction", |
