aboutsummaryrefslogtreecommitdiff
path: root/text-objects.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-07-26 11:21:47 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-07-26 11:34:20 +0200
commit5e016233a9fe77258edd85a2dc746d20e6db46a0 (patch)
tree6ad4e754aa9a3dec4ca1f8f56e5b3e86cd2d2d45 /text-objects.h
parent5b9b15333670e49e708c71baaa824943bc1796ba (diff)
downloadvis-5e016233a9fe77258edd85a2dc746d20e6db46a0.tar.gz
vis-5e016233a9fe77258edd85a2dc746d20e6db46a0.tar.xz
text-object: add new functions to search for words
Diffstat (limited to 'text-objects.h')
-rw-r--r--text-objects.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/text-objects.h b/text-objects.h
index 3e08a91..aec84b8 100644
--- a/text-objects.h
+++ b/text-objects.h
@@ -14,6 +14,9 @@ Filerange text_object_word(Text*, size_t pos);
/* includes trailing white spaces. if at pos happens to be a white space
* include all neighbouring leading white spaces and the following word. */
Filerange text_object_word_outer(Text*, size_t pos);
+/* find next occurance of `word' (as word not substring) in forward/backward direction */
+Filerange text_object_word_find_next(Text*, size_t pos, const char *word);
+Filerange text_object_word_find_prev(Text*, size_t pos, const char *word);
/* same semantics as above but for a longword (i.e. delimited by white spaces) */
Filerange text_object_longword(Text*, size_t pos);
Filerange text_object_longword_outer(Text*, size_t pos);