[gnome-builder/wip/libide] libide: add various movements to d and dg in normal mode
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: add various movements to d and dg in normal mode
- Date: Thu, 5 Mar 2015 21:28:07 +0000 (UTC)
commit 6e69e747ed81af5a58f75e4cfe877c3f23ae6d5b
Author: Christian Hergert <christian hergert me>
Date: Thu Mar 5 13:28:01 2015 -0800
libide: add various movements to d and dg in normal mode
data/keybindings/vim.css | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index a671ccf..c65f978 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -165,6 +165,17 @@
@binding-set builder-vim-source-view-normal-d
{
+ bind "h" { "movement" (previous-char, 1)
+ "delete-selection" () };
+ bind "l" { "movement" (next-char, 1)
+ "delete-selection" () };
+ bind "k" { "movement" (previous-line, 1)
+ "delete-selection" () };
+ bind "j" { "movement" (next-line, 1)
+ "delete-selection" () };
+
+ bind "g" { "set-mode" ("vim-normal-d-g", transient) };
+
bind "d" { "movement" (first-char, 0)
"movement" (last-char, 1)
"move-cursor" (visual-positions, 1, 1)
@@ -243,6 +254,20 @@
bind "m" { "movement" (middle-char, 0) };
}
+ binding-set builder-vim-source-view-normal-d-g
+{
+ bind "e" { "movement" (previous-word-end, 1)
+ "delete-selection" () };
+ bind "<shift>e" { "movement" (previous-full-word-end, 1)
+ "delete-selection" () };
+ bind "g" { "movement" (first-line, 0)
+ "delete-selection" () };
+ bind "j" { "movement" (next-line, 0)
+ "delete-selection" () };
+ bind "m" { "movement" (middle-char, 0)
+ "delete-selection" () };
+}
+
@binding-set builder-vim-source-view-visual-g
{
bind "e" { "movement" (previous-word-end, 1)
@@ -421,6 +446,11 @@ IdeSourceViewMode.vim-normal-d {
builder-vim-source-view-normal-d;
}
+IdeSourceViewMode.vim-normal-d-g {
+ gtk-key-bindings: builder-vim-source-view,
+ builder-vim-source-view-normal-d-g;
+}
+
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]