Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: bind vi case widgets from visual mode
- X-seq: zsh-workers 39962
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: bind vi case widgets from visual mode
- Date: Thu, 17 Nov 2016 11:44:05 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1479379446; bh=RXUJydfYD48jt0rnV1MNsCIQzAstDuvvoQqHU+xAfk4=; h=From:To:Subject:Date:From:Subject; b=QqLIL0Dfr9K6poE3UbrlD6iR7eColAq5Sn6Kvq8AZxwT3+DybDKY/qEbVcOxFmqXqQQ05sCL7Y2ZmDrCvjeE7CX7xQ3uGL4OhbSvPXQOPymWmINvp7HTD6GJVIX8I1Y3iwkTbS5/thsUv513ozo9uGoPgkDh5ELSeWnOk5MT25IVfT2uHFTgz8Poz6aZtY2ptZa3EqIt3/pSzm/7r9SO3GiOCUFixJF61HZzc/Cv4PTJDc4mBBQ7WyuwzA9MZgkieU6XVD2xV2x6ZgqhD7NKRzCK7fLutKKYz0MHPy7Z+j4t17EwncJwwX3qKjypAxwArOdpa8B1v+XqLl96NIGM+Q==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Seems that when adding vi-up/down-case, I forgot to bind them to U/u in
visual mode. The g~ binding for normal mode was also missing despite
having put in the mapping from g~~ to g~g~ for operating on a line.
Oliver
diff --git a/Src/Zle/zle_keymap.c b/Src/Zle/zle_keymap.c
index 053b097..24e8d19 100644
--- a/Src/Zle/zle_keymap.c
+++ b/Src/Zle/zle_keymap.c
@@ -1369,6 +1369,8 @@ default_bindings(void)
bindkey(vismap, "\33", refthingy(t_deactivateregion), NULL);
bindkey(vismap, "o", refthingy(t_exchangepointandmark), NULL);
bindkey(vismap, "p", refthingy(t_putreplaceselection), NULL);
+ bindkey(vismap, "u", refthingy(t_vidowncase), NULL);
+ bindkey(vismap, "U", refthingy(t_viupcase), NULL);
bindkey(vismap, "x", refthingy(t_videlete), NULL);
bindkey(vismap, "~", refthingy(t_vioperswapcase), NULL);
@@ -1379,6 +1381,7 @@ default_bindings(void)
bindkey(amap, "gg", refthingy(t_beginningofbufferorhistory), NULL);
bindkey(amap, "gu", refthingy(t_vidowncase), NULL);
bindkey(amap, "gU", refthingy(t_viupcase), NULL);
+ bindkey(amap, "g~", refthingy(t_vioperswapcase), NULL);
bindkey(amap, "g~~", NULL, "g~g~");
bindkey(amap, "guu", NULL, "gugu");
bindkey(amap, "gUU", NULL, "gUgU");
Messages sorted by:
Reverse Date,
Date,
Thread,
Author