aboutsummaryrefslogtreecommitdiff
path: root/text-objects.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-08-25 18:47:00 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-08-25 18:47:00 +0200
commitb5d121dc1ca4edc0cfff888ba411f0837e6e0ebc (patch)
tree35a3aef6d494c93674922f6b5500e0d273cb0848 /text-objects.h
parentbc0f09dce9fb9420ea1d5c10ebfacf50916b10af (diff)
downloadvis-b5d121dc1ca4edc0cfff888ba411f0837e6e0ebc.tar.gz
vis-b5d121dc1ca4edc0cfff888ba411f0837e6e0ebc.tar.xz
Move motion related stuff into own file
Diffstat (limited to 'text-objects.h')
-rw-r--r--text-objects.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/text-objects.h b/text-objects.h
new file mode 100644
index 0000000..62d30e5
--- /dev/null
+++ b/text-objects.h
@@ -0,0 +1,13 @@
+#ifndef TEXT_OBJECTS_H
+#define TEXT_OBJECTS_H
+
+#include <stddef.h>
+#include "text.h"
+
+Filerange text_object_word(Text*, size_t pos);
+Filerange text_object_word_boundry(Text*, size_t pos, int (*isboundry)(int));
+Filerange text_object_char(Text*, size_t pos, char c);
+Filerange text_object_sentence(Text*, size_t pos);
+Filerange text_object_paragraph(Text*, size_t pos);
+
+#endif