[gnome-builder/wip/libide-merge] vim: add `make` as alias to build action



commit b3089a5765fb92e74b951d8d490d29afef1dbb27
Author: Christian Hergert <christian hergert me>
Date:   Sun Mar 22 17:42:54 2015 -0700

    vim: add `make` as alias to build action

 src/vim/gb-vim.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/vim/gb-vim.c b/src/vim/gb-vim.c
index e7d67dc..07e0520 100644
--- a/src/vim/gb-vim.c
+++ b/src/vim/gb-vim.c
@@ -503,6 +503,16 @@ gb_vim_command_nohl (GtkSourceView  *source_view,
 }
 
 static gboolean
+gb_vim_command_make (GtkSourceView  *source_view,
+                     const gchar    *command,
+                     const gchar    *options,
+                     GError        **error)
+{
+  gb_widget_activate_action (GTK_WIDGET (source_view), "workbench", "build", NULL);
+  return TRUE;
+}
+
+static gboolean
 gb_vim_command_syntax (GtkSourceView  *source_view,
                        const gchar    *command,
                        const gchar    *options,
@@ -612,6 +622,7 @@ static const GbVimCommand vim_commands[] = {
   { "edit",        gb_vim_command_edit },
   { "help",        gb_vim_command_help },
   { "nohl",        gb_vim_command_nohl },
+  { "make",        gb_vim_command_make },
   { "quit",        gb_vim_command_quit },
   { "set",         gb_vim_command_set },
   { "sort",        gb_vim_command_sort },


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