diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-11-27 07:23:36 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-27 07:23:36 +0100 |
| commit | 7ce4e0cc1423bb55f798031014462fd192d23fc3 (patch) | |
| tree | f0eb89dbf2b92c92eba0458f5344fc0a3f6eb68b /main.c | |
| parent | e063464c7cdeb41796282d0efe13cc907928f3f8 (diff) | |
| download | vis-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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", |
