From a9db1caf19d34f13319a3ebf92100c2c92015582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 11 Feb 2016 10:32:49 +0100 Subject: vis: implement gn and gN text objects The behaviour when no match is found is not yet optimal. --- text-objects.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'text-objects.h') 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*); -- cgit v1.2.3