[gnome-builder] vim: add ":bnext" command
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vim: add ":bnext" command
- Date: Mon, 6 Apr 2015 22:28:45 +0000 (UTC)
commit d9b9b49d71ca2e372e53a0ebd4bfa7cae0687e1c
Author: Alexandre Franke <alexandre franke gmail com>
Date: Fri Apr 3 02:26:45 2015 +0200
vim: add ":bnext" command
Treats "tabs" as buffers and switches to the next one.
https://bugzilla.gnome.org/show_bug.cgi?id=747343
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 206f78a..88c1b43 100644
--- a/src/vim/gb-vim.c
+++ b/src/vim/gb-vim.c
@@ -566,6 +566,16 @@ gb_vim_command_sort (GtkSourceView *source_view,
}
static gboolean
+gb_vim_command_bnext (GtkSourceView *source_view,
+ const gchar *command,
+ const gchar *options,
+ GError **error)
+{
+ gb_widget_activate_action (GTK_WIDGET (source_view), "view-stack", "next-view", NULL);
+ return TRUE;
+}
+
+static gboolean
gb_vim_command_cnext (GtkSourceView *source_view,
const gchar *command,
const gchar *options,
@@ -840,6 +850,7 @@ invalid_request:
}
static const GbVimCommand vim_commands[] = {
+ { "bnext", gb_vim_command_bnext },
{ "cnext", gb_vim_command_cnext },
{ "colorscheme", gb_vim_command_colorscheme },
{ "cprevious", gb_vim_command_cprevious },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]