aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/vis.h b/vis.h
index fad7eca..0bafe68 100644
--- a/vis.h
+++ b/vis.h
@@ -11,6 +11,7 @@ typedef struct Win Win;
#include "ui.h"
#include "view.h"
+#include "text-regex.h"
typedef struct {
void (*vis_start)(Vis*);
@@ -351,6 +352,7 @@ enum VisRegister {
VIS_REG_PROMPT, /* internal register which shadows DEFAULT in PROMPT mode */
VIS_MACRO_OPERATOR, /* records entered keys after an operator */
VIS_MACRO_REPEAT, /* copy of the above macro once the recording is finished */
+ VIS_REG_SEARCH,
VIS_REG_INVALID, /* has to be the last 'real' register */
VIS_REG_A, VIS_REG_B, VIS_REG_C, VIS_REG_D, VIS_REG_E,
VIS_REG_F, VIS_REG_G, VIS_REG_H, VIS_REG_I, VIS_REG_J,
@@ -412,6 +414,9 @@ bool vis_keys_inject(Vis*, const char *pos, const char *input);
* was handled by vis */
bool vis_signal_handler(Vis*, int signum, const siginfo_t *siginfo, const void *context);
+/* remember last search pattern, freeing the regex is the callers responsibility */
+Regex *vis_regex(Vis*, const char *pattern);
+
/* TODO: expose proper API to iterate through files etc */
Text *vis_text(Vis*);
View *vis_view(Vis*);