22 February 2011

Redefine right click button to paste


Anonymous said...
> I would like to be able to redefine the right click button behavior to paste.
> I see this in the code but nothing to assign right click:
> // #define HOTKEY_PASTE CTRL GDK_V
> Ideally, in the code there would be a keybinding for the MENU_CUSTOM set to right click and then I would be able to reassign.

Thank you for the wish list. :-)
Currently there is no way to do that, but I made a quick hack for you.
Apply the patch below and right click will be paste.
I think I can add an option for this in next release.

--- evilvte.orig/src/evilvte.c
+++ evilvte/src/evilvte.c
@@ -1056,7 +1056,13 @@
   }
 #endif
 
-#if MENU
+  if (event->button == 3) {
+    GET_CURRENT_TAB(gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook)));
+    vte_terminal_paste_clipboard(VTE_TERMINAL(term->vte));
+    return TRUE;
+  }
+
+#if 0
   if (event->button == 3) {
 #ifdef MENU_MATCH_STRING_EXEC
       GET_CURRENT_TAB(gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook)));

20 February 2011

evilvte 0.4.8 released

Changelog:
0.4.8

 The "Welcome, GTK+ 3.0.0!" Release

 * Better compatibility with string matching
 * Fix a bug that made MATCH_STRING fail when
   MENU is not enabled
   Thanks to Kabakov Boris
   <pigritor AT gmail DOT com>
 * New COLOR_STYLE option: ZENBURN
   Thanks to thagraal and <ezrgzx AT gmail DOT com>
 * New options: MATCH_STRING_HTTP
                MATCH_STRING_MAIL
                MATCH_STRING_FILE
 * Hide MATCH_STRING
 * Make everything GTK+ 3.0.0 compatible

 * How to report bug, request feature,
   or submit patch for evilvte

11 February 2011

[WORKAROUND] build failure with GTK+ 3.0.0

GTK+ 3.0.0 has been released. It has changed its soname again.

Some compilers do not accept "-Wl,--as-needed" or similar options, so I use a minimal set of linking options, which can not find new soname automatically.

If you want to build current evilvte with GTK+ 3.0.0, please set your LDLIBS environment variable.

For example:
export LDLIBS=`pkg-config --libs vte-2.90`

Thus everything will be fine.

I will fix this problem in next release, of course. :-)