vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit d71d58490e9e397d6e0c598bbb5a84a8dfd70124 parent 74cbd167da39f45be581625a400815b5c1ba3a45 Author: Marc André Tanner <mat@brain-dump.org> Date: Sun, 26 Jul 2020 17:42:55 +0200 vis: remove ae outer entire text object Use :, which is a short hand for :0,$ instead. Diffstat:
| M | config.def.h | | | 1 | - |
| M | main.c | | | 6 | ------ |
| M | man/vis.1 | | | 3 | --- |
| M | vis-text-objects.c | | | 3 | --- |
| M | vis.h | | | 1 | - |
5 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/config.def.h b/config.def.h @@ -96,7 +96,6 @@ static const KeyBinding bindings_textobjects[] = { { "a}", ALIAS("a{") }, { "ab", ALIAS("a(") }, { "aB", ALIAS("a{") }, - { "ae", ACTION(TEXT_OBJECT_ENTIRE_OUTER) }, { "al", ACTION(TEXT_OBJECT_LINE_OUTER) }, { "ap", ACTION(TEXT_OBJECT_PARAGRAPH_OUTER) }, { "as", ACTION(TEXT_OBJECT_SENTENCE) }, diff --git a/main.c b/main.c @@ -304,7 +304,6 @@ enum { VIS_ACTION_TEXT_OBJECT_SINGLE_QUOTE_INNER, VIS_ACTION_TEXT_OBJECT_BACKTICK_OUTER, VIS_ACTION_TEXT_OBJECT_BACKTICK_INNER, - VIS_ACTION_TEXT_OBJECT_ENTIRE_OUTER, VIS_ACTION_TEXT_OBJECT_LINE_OUTER, VIS_ACTION_TEXT_OBJECT_LINE_INNER, VIS_ACTION_TEXT_OBJECT_INDENTATION, @@ -1131,11 +1130,6 @@ static const KeyAction vis_action[] = { VIS_HELP("A backtick delimited string (inner variant)") textobj, { .i = VIS_TEXTOBJECT_INNER_BACKTICK } }, - [VIS_ACTION_TEXT_OBJECT_ENTIRE_OUTER] = { - "vis-textobject-entire-outer", - VIS_HELP("The whole text content") - textobj, { .i = VIS_TEXTOBJECT_OUTER_ENTIRE } - }, [VIS_ACTION_TEXT_OBJECT_LINE_OUTER] = { "vis-textobject-line-outer", VIS_HELP("The whole line") diff --git a/man/vis.1 b/man/vis.1 @@ -1026,9 +1026,6 @@ matches the last used search term in forward direction .It Ic gN matches the last used search term in backward direction . -.It Ic ae -entire file content -. .It Ic al current line . diff --git a/vis-text-objects.c b/vis-text-objects.c @@ -173,9 +173,6 @@ const TextObject vis_textobjects[] = { .txt = object_backtick, .type = TEXTOBJECT_DELIMITED_INNER, }, - [VIS_TEXTOBJECT_OUTER_ENTIRE] = { - .txt = text_object_entire, - }, [VIS_TEXTOBJECT_OUTER_LINE] = { .txt = text_object_line, }, diff --git a/vis.h b/vis.h @@ -622,7 +622,6 @@ enum VisTextObject { VIS_TEXTOBJECT_INNER_SINGLE_QUOTE, VIS_TEXTOBJECT_OUTER_BACKTICK, VIS_TEXTOBJECT_INNER_BACKTICK, - VIS_TEXTOBJECT_OUTER_ENTIRE, VIS_TEXTOBJECT_OUTER_LINE, VIS_TEXTOBJECT_INNER_LINE, VIS_TEXTOBJECT_INDENTATION,