aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-26 19:57:54 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-10-27 11:13:07 +0100
commit321cf83fba85c70d0bdc89a07e8af4148127f23c (patch)
tree9bd5d6e59aabec42bd0214dff2e3710523319037 /vis.h
parentd8d0bb600c7984e23b95b7fdbfe59743b388a75c (diff)
downloadvis-321cf83fba85c70d0bdc89a07e8af4148127f23c.tar.gz
vis-321cf83fba85c70d0bdc89a07e8af4148127f23c.tar.xz
vis: introduce pseudo operators for put
In principle put is not really an operator, however it still should be repeatable and respect count.
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/vis.h b/vis.h
index d6e5546..dee4072 100644
--- a/vis.h
+++ b/vis.h
@@ -128,11 +128,16 @@ void vis_mode_set(Vis*, Mode*);
bool vis_action_register(Vis*, KeyAction*);
+/* TODO: overhaul repeatable infrastructure:
+ * - put is not really an operator, but should still be repeatable
+ * and respect count
+ " - review OP_REPEAT_{REPLACE,INSERT}
+ */
enum VisOperator {
OP_DELETE,
OP_CHANGE,
OP_YANK,
- OP_PUT,
+ OP_PUT_AFTER,
OP_SHIFT_RIGHT,
OP_SHIFT_LEFT,
OP_JOIN,
@@ -144,18 +149,9 @@ enum VisOperator {
OP_CASE_LOWER,
OP_CASE_UPPER,
OP_CURSOR_EOL,
-};
-
-/* TODO: overhaul repeatable infrastructure:
- * - put is not really an operator, but should still be repeatable
- * and respect count
- " - review OP_REPEAT_{REPLACE,INSERT}
- */
-enum {
- PUT_AFTER,
- PUT_AFTER_END,
- PUT_BEFORE,
- PUT_BEFORE_END,
+ OP_PUT_AFTER_END,
+ OP_PUT_BEFORE,
+ OP_PUT_BEFORE_END,
};
bool vis_operator(Vis*, enum VisOperator);