[gtksourceview/wip/chergert/vim: 208/363] allow swapping visual modes with v and V
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim: 208/363] allow swapping visual modes with v and V
- Date: Mon, 8 Nov 2021 19:53:51 +0000 (UTC)
commit f60fd5251c29fde55d0241934f88f74ab151cfde
Author: Christian Hergert <chergert redhat com>
Date: Tue Nov 2 13:23:25 2021 -0700
allow swapping visual modes with v and V
gtksourceview/vim/gtk-source-vim-visual.c | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/gtksourceview/vim/gtk-source-vim-visual.c b/gtksourceview/vim/gtk-source-vim-visual.c
index 2b033cb3..8e6e5ac1 100644
--- a/gtksourceview/vim/gtk-source-vim-visual.c
+++ b/gtksourceview/vim/gtk-source-vim-visual.c
@@ -327,6 +327,16 @@ key_handler_initial (GtkSourceVimVisual *self,
return TRUE;
}
+ case GDK_KEY_v:
+ self->mode = GTK_SOURCE_VIM_VISUAL_CHAR;
+ gtk_source_vim_visual_track_motion (self);
+ return TRUE;
+
+ case GDK_KEY_V:
+ self->mode = GTK_SOURCE_VIM_VISUAL_LINE;
+ gtk_source_vim_visual_track_motion (self);
+ return TRUE;
+
default:
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]