aboutsummaryrefslogtreecommitdiff
path: root/text-objects.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-12-23 17:21:00 +0100
committerMarc André Tanner <mat@brain-dump.org>2014-12-23 17:21:00 +0100
commit985a828346a5d3185f6ee1e00d2ab4154024a9c8 (patch)
tree255db2a1dae37efaebc4f039efa60e7784deee05 /text-objects.h
parent3314a2843f3c940e6fb96d8612f23172832f3804 (diff)
downloadvis-985a828346a5d3185f6ee1e00d2ab4154024a9c8.tar.gz
vis-985a828346a5d3185f6ee1e00d2ab4154024a9c8.tar.xz
Distinct between inner and outer word text objects
Diffstat (limited to 'text-objects.h')
-rw-r--r--text-objects.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/text-objects.h b/text-objects.h
index cb11f41..a4babb5 100644
--- a/text-objects.h
+++ b/text-objects.h
@@ -9,12 +9,15 @@
#include <stddef.h>
#include "text.h"
-/* word which happens to be at pos, includes trailing white spaces. if at pos
- * happens to be a whitespace include all neighbouring leading whitespaces
- * and the following word. */
+/* word which happens to be at pos without any neighbouring white spaces */
Filerange text_object_word(Text*, size_t pos);
-/* same semantics as above but for a longword (i.e. delimited by whitespaces) */
+/* 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);
+/* 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);
+
Filerange text_object_line(Text*, size_t pos);
Filerange text_object_sentence(Text*, size_t pos);
Filerange text_object_paragraph(Text*, size_t pos);