diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-02-11 10:32:49 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-02-11 10:32:49 +0100 |
| commit | a9db1caf19d34f13319a3ebf92100c2c92015582 (patch) | |
| tree | 2bf64c214e276ab4ff7fc460cb889675c93e4d48 /text-objects.h | |
| parent | 979d51bcb65ccceec95f34a10fdf6446ac97473c (diff) | |
| download | vis-a9db1caf19d34f13319a3ebf92100c2c92015582.tar.gz vis-a9db1caf19d34f13319a3ebf92100c2c92015582.tar.xz | |
vis: implement gn and gN text objects
The behaviour when no match is found is not yet optimal.
Diffstat (limited to 'text-objects.h')
| -rw-r--r-- | text-objects.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/text-objects.h b/text-objects.h index e94d7c3..72e9a8c 100644 --- a/text-objects.h +++ b/text-objects.h @@ -48,6 +48,9 @@ Filerange text_object_range(Text*, size_t pos, int (*isboundary)(int)); /* a number in either decimal, hex or octal format */ Filerange text_object_number(Text*, size_t pos); 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*); /* extend a range to cover whole lines */ Filerange text_range_linewise(Text*, Filerange*); |
