From 7ce4e0cc1423bb55f798031014462fd192d23fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 27 Nov 2015 07:23:36 +0100 Subject: 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. --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.c') 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", -- cgit v1.2.3