aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-11-27 07:23:36 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-11-27 07:23:36 +0100
commit7ce4e0cc1423bb55f798031014462fd192d23fc3 (patch)
treef0eb89dbf2b92c92eba0458f5344fc0a3f6eb68b /main.c
parente063464c7cdeb41796282d0efe13cc907928f3f8 (diff)
downloadvis-7ce4e0cc1423bb55f798031014462fd192d23fc3.tar.gz
vis-7ce4e0cc1423bb55f798031014462fd192d23fc3.tar.xz
vis: implement filter operator !
It currently works by switching to visual mode and then opening the command prompt with a default range which refers to the currently active selection.
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index 509e7bb..b0ec8d9 100644
--- a/main.c
+++ b/main.c
@@ -196,6 +196,7 @@ enum {
VIS_ACTION_OPERATOR_CASE_LOWER,
VIS_ACTION_OPERATOR_CASE_UPPER,
VIS_ACTION_OPERATOR_CASE_SWAP,
+ VIS_ACTION_OPERATOR_FILTER,
VIS_ACTION_COUNT,
VIS_ACTION_INSERT_NEWLINE,
VIS_ACTION_INSERT_TAB,
@@ -704,6 +705,11 @@ static KeyAction vis_action[] = {
"Swap case operator",
operator, { .i = VIS_OP_CASE_SWAP }
},
+ [VIS_ACTION_OPERATOR_FILTER] = {
+ "vis-operator-filter",
+ "Filter operator",
+ operator, { .i = VIS_OP_FILTER }
+ },
[VIS_ACTION_COUNT] = {
"vis-count",
"Count specifier",