[gtksourceview/wip/chergert/vim] 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] allow swapping visual modes with v and V
- Date: Tue, 2 Nov 2021 20:23:29 +0000 (UTC)
commit f90003d833075ad4c31078745b88abbe546a1fe7
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]