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 /text-objects.h | |
| 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 'text-objects.h')
| -rw-r--r-- | text-objects.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/text-objects.h b/text-objects.h index 72e9a8c..5656a8a 100644 --- a/text-objects.h +++ b/text-objects.h @@ -51,6 +51,8 @@ Filerange text_object_filename(Text*, size_t pos); /* match a search term in either forward or backward direction */ Filerange text_object_search_forward(Text*, size_t pos, Regex*); Filerange text_object_search_backward(Text*, size_t pos, Regex*); +/* match all lines with same indendation level than the current one */ +Filerange text_object_indentation(Text*, size_t pos); /* extend a range to cover whole lines */ Filerange text_range_linewise(Text*, Filerange*); |
