interactive search
Xavier Nicollet <[email protected]>
| Newsgroups | gmane.comp.gnu.screen |
|---|---|
| Message-ID | <[email protected]> |
Hi, here is a patch to make the interactive search better to use for vi and emacs users. ^a esc ^r (reverse search) screen <- search for the word screen press enter to validate the input (instead of escape, which still works) or press ^c to stop the search (instead of ^g, which still works). I hope it will help. -- Nicollet Xavier http://nicollet.jeru.org/ Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/gnu-screen/ To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
search.c.return.patch
(text/plain, 383 B)
--- search.c.old 2003-09-08 16:26:45.000000000 +0200
+++ search.c 2004-01-06 22:25:24.000000000 +0100
@@ -252,9 +252,11 @@
switch (*p)
{
case '\007': /* CTRL-G */
+ case '\003': /* CTRL-C */
pos = markdata->isstartpos;
/*FALLTHROUGH*/
case '\033': /* ESC */
+ case '\r': /* return */
*p = 0;
break;
case '\013': /* CTRL-K */