aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
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 70216df..f15882a 100644
--- a/main.c
+++ b/main.c
@@ -199,6 +199,7 @@ enum {
VIS_ACTION_OPERATOR_CASE_UPPER,
VIS_ACTION_OPERATOR_CASE_SWAP,
VIS_ACTION_OPERATOR_FILTER,
+ VIS_ACTION_OPERATOR_FILTER_FMT,
VIS_ACTION_COUNT,
VIS_ACTION_INSERT_NEWLINE,
VIS_ACTION_INSERT_TAB,
@@ -712,6 +713,11 @@ static KeyAction vis_action[] = {
"Filter operator",
operator_filter,
},
+ [VIS_ACTION_OPERATOR_FILTER_FMT] = {
+ "vis-operator-filter-format",
+ "Formating operator, filter range through fmt(1)",
+ operator_filter, { .s = "'<,'>!fmt" }
+ },
[VIS_ACTION_COUNT] = {
"vis-count",
"Count specifier",