[gnome-builder/wip/libide] libide: add d submode for `dd`
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: add d submode for `dd`
- Date: Wed, 4 Mar 2015 22:25:50 +0000 (UTC)
commit 0c31c642be3310134588a71bcd79cd6218ebafa2
Author: Christian Hergert <christian hergert me>
Date: Wed Mar 4 14:25:22 2015 -0800
libide: add d submode for `dd`
data/keybindings/vim.css | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 53ef533..788fa19 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -102,7 +102,9 @@
bind "<shift>r" { "set-mode" ("vim-insert", permanent)
"set-overwrite" (1) };
- /* delete */
+ /* jump to sub-mode */
+ bind "d" { "set-mode" ("vim-normal-d", transient) };
+
bind "x" { "movement" (next-char, 1)
"copy-clipboard" ()
"delete-from-cursor" (chars, 1) };
@@ -125,6 +127,15 @@
bind "<ctrl>v" { "set-mode" ("vim-visual-block") };
}
+ binding-set builder-vim-source-view-normal-d
+{
+ bind "d" { "movement" (first-char, 0)
+ "movement" (last-char, 1)
+ "move-cursor" (visual-positions, 1, 1)
+ "copy-clipboard" ()
+ "delete-from-cursor" (chars, 1) };
+}
+
@binding-set builder-vim-source-view-normal-z
{
bind "z" { "movement" (scroll-screen-center, 0) };
@@ -172,6 +183,11 @@ IdeSourceViewMode.vim-normal {
builder-vim-source-view-normal;
}
+IdeSourceViewMode.vim-normal-d {
+ gtk-key-bindings: builder-vim-source-view,
+ builder-vim-source-view-normal-d;
+}
+
IdeSourceViewMode.vim-normal-g {
gtk-key-bindings: builder-vim-source-view,
builder-vim-source-view-normal-g;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]