[gnome-builder/wip/libide] libide: add basic on-demand macro recording with qq
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: add basic on-demand macro recording with qq
- Date: Thu, 12 Mar 2015 09:29:15 +0000 (UTC)
commit 3b77d688d97bbcf2d5429905df06170445404f17
Author: Christian Hergert <christian hergert me>
Date: Thu Mar 12 02:29:00 2015 -0700
libide: add basic on-demand macro recording with qq
data/keybindings/vim.css | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index e69f100..f360216 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -239,6 +239,9 @@
"clear-count" () };
bind "z" { "set-mode" ("vim-normal-z", transient) };
+ /* macro recording! */
+ bind "q" { "set-mode" ("vim-normal-q", transient) };
+
/* submode for bracket */
bind "bracketleft" { "set-mode" ("vim-normal-bracket", transient) };
@@ -838,6 +841,11 @@
"set-mode" ("vim-visual", permanent) };
}
+ binding-set builder-vim-source-view-normal-q
+{
+ bind "q" { "begin-macro" () };
+}
+
@binding-set builder-vim-source-view-visual-line-g
{
bind "g" { "movement" (first-line, 1, 1, 0)
@@ -1225,6 +1233,15 @@ IdeSourceViewMode.vim-normal-g-u {
builder-vim-source-view-normal-g-u;
}
+IdeSourceViewMode.vim-normal-q {
+ -IdeSourceViewMode-suppress-unbound: true;
+ -IdeSourceViewMode-coalesce-undo: true;
+ -IdeSourceViewMode-block-cursor: true;
+
+ gtk-key-bindings: builder-vim-source-view,
+ builder-vim-source-view-normal-q;
+}
+
IdeSourceViewMode.vim-normal-indent {
-IdeSourceViewMode-suppress-unbound: true;
-IdeSourceViewMode-coalesce-undo: true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]