[gtksourceview/wip/chergert/vim: 213/363] add upcase and downcase




commit fa68a758e841b20a3f2ea7cc53bf8fdeb9a0263f
Author: Christian Hergert <chergert redhat com>
Date:   Tue Nov 2 13:51:42 2021 -0700

    add upcase and downcase
    
    these can also be replayed with a visual like we can w/ delete

 gtksourceview/vim/gtk-source-vim-visual.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/gtksourceview/vim/gtk-source-vim-visual.c b/gtksourceview/vim/gtk-source-vim-visual.c
index e7c06f9b..3034df74 100644
--- a/gtksourceview/vim/gtk-source-vim-visual.c
+++ b/gtksourceview/vim/gtk-source-vim-visual.c
@@ -349,6 +349,12 @@ key_handler_initial (GtkSourceVimVisual *self,
                        gtk_source_vim_visual_track_motion (self);
                        return TRUE;
 
+               case GDK_KEY_U:
+                       return gtk_source_vim_visual_begin_command (self, "upcase");
+
+               case GDK_KEY_u:
+                       return gtk_source_vim_visual_begin_command (self, "downcase");
+
                default:
                        break;
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]