[gnome-builder/wip/libide] libide: add guu and gUU in vim mode
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: add guu and gUU in vim mode
- Date: Fri, 6 Mar 2015 01:18:47 +0000 (UTC)
commit 7de2f73b500fa81f76cac0916bfff622de385cdb
Author: Christian Hergert <christian hergert me>
Date: Thu Mar 5 17:18:42 2015 -0800
libide: add guu and gUU in vim mode
data/keybindings/vim.css | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index db0236a..e176ab6 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -281,6 +281,27 @@
bind "g" { "movement" (first-line, 0) };
bind "j" { "movement" (next-line, 0) };
bind "m" { "movement" (middle-char, 0) };
+
+ bind "u" { "set-mode" ("vim-normal-g-u", transient) };
+ bind "<shift>u" { "set-mode" ("vim-normal-g-u", transient) };
+}
+
+ binding-set builder-vim-source-view-normal-g-u
+{
+ bind "u" { "save-insert-mark" ()
+ "movement" (first-char, 0)
+ "movement" (last-char, 1)
+ "selection-theatric" ()
+ "change-case" (lower)
+ "clear-selection" ()
+ "restore-insert-mark" () };
+ bind "<shift>u" { "save-insert-mark" ()
+ "movement" (first-char, 0)
+ "movement" (last-char, 1)
+ "selection-theatric" ()
+ "change-case" (upper)
+ "clear-selection" ()
+ "restore-insert-mark" () };
}
@binding-set builder-vim-source-view-normal-d-g
@@ -503,6 +524,11 @@ IdeSourceViewMode.vim-normal-g {
builder-vim-source-view-normal-g;
}
+IdeSourceViewMode.vim-normal-g-u {
+ gtk-key-bindings: builder-vim-source-view,
+ builder-vim-source-view-normal-g-u;
+}
+
IdeSourceViewMode.vim-normal-y {
gtk-key-bindings: builder-vim-source-view,
builder-vim-source-view-normal-y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]