add keybinds for url searches

This commit is contained in:
Daniel Micay 2012-05-30 05:35:41 -04:00
parent 453eb5793d
commit 19dcb8d0cb
2 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,8 @@ Scrollback search:
* ``ctrl-shift-f``: start forward search
* ``ctrl-shift-b``: start reverse search
* ``ctrl-shift-j``: start forward url search
* ``ctrl-shift-k``: start reverse url search
* ``ctrl-shift-n``: jump to next search match
* ``ctrl-shift-p``: jump to previous search match

View File

@ -97,6 +97,12 @@ static gboolean key_press_cb(GtkWidget *vte, GdkEventKey *event, search_dialog_i
case GDK_b:
open_search_dialog(vte, true, info);
return TRUE;
case GDK_j:
search(vte, url_regex, false);
return TRUE;
case GDK_k:
search(vte, url_regex, true);
return TRUE;
}
}
return FALSE;