changeset: 2789:6f86238354a4
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Sat Sep 03 07:49:40 2011 -0400
files: cmd/menu/dat.h cmd/menu/keys.c cmd/menu/keys.txt cmd/menu/menu.c
description:
Add Control-k support to wimenu.
diff -r 47fe7d1913b7 -r 6f86238354a4 cmd/menu/dat.h
--- a/cmd/menu/dat.h Wed Jun 01 12:40:07 2011 -0400
+++ b/cmd/menu/dat.h Sat Sep 03 07:49:40 2011 -0400
@@ -29,6 +29,7 @@
LBACKWARD,
LCHAR,
LCOMPLETE,
+ LDELETE,
LFIRST,
LFORWARD,
LHISTORY,
diff -r 47fe7d1913b7 -r 6f86238354a4 cmd/menu/keys.c
--- a/cmd/menu/keys.c Wed Jun 01 12:40:07 2011 -0400
+++ b/cmd/menu/keys.c Sat Sep 03 07:49:40 2011 -0400
@@ -75,6 +75,7 @@
"backward",
"char",
"complete",
+ "delete",
"first",
"forward",
"history",
diff -r 47fe7d1913b7 -r 6f86238354a4 cmd/menu/keys.txt
--- a/cmd/menu/keys.txt Wed Jun 01 12:40:07 2011 -0400
+++ b/cmd/menu/keys.txt Sat Sep 03 07:49:40 2011 -0400
@@ -29,6 +29,7 @@
Control-Backspace Kill word
Control-w Kill word
Control-u Kill line
+Control-k Delete line
Tab Complete next
Control-i Complete next
diff -r 47fe7d1913b7 -r 6f86238354a4 cmd/menu/menu.c
--- a/cmd/menu/menu.c Wed Jun 01 12:40:07 2011 -0400
+++ b/cmd/menu/menu.c Sat Sep 03 07:49:40 2011 -0400
@@ -288,6 +288,10 @@
caret_delete(BACKWARD, amount);
update_filter(true);
break;
+ case LDELETE:
+ caret_delete(FORWARD, amount);
+ update_filter(true);
+ break;
case LACCEPT:
srv.running = false;
Received on Sat Sep 03 2011 - 13:49:47 CEST
This archive was generated by hypermail 2.2.0 : Sat Sep 03 2011 - 14:00:08 CEST