[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RP] C-h in : prompt
From: |
Doug Kearns |
Subject: |
Re: [RP] C-h in : prompt |
Date: |
Sat Jul 19 19:30:39 2003 |
User-agent: |
Mutt/1.4i |
On Sat, Jul 19, 2003 at 09:02:54PM +0200, Björn Lindström wrote:
> I'm trying out the 1.3 beta and I really love the new tab
> completion. However, I would like C-h to act like backspace there. Can
> anyone tell me how to do that? (I guess it would take some
> bash/readline configuration).
It's a bit of a pain because, we don't actually use readline - only the
history library. So you'll have to patch the source. This will add the
keybinding you're after:
Index: src/editor.c
===================================================================
RCS file: /cvsroot/ratpoison/ratpoison/src/editor.c,v
retrieving revision 1.3
diff -u -r1.3 editor.c
--- src/editor.c 28 May 2003 22:36:31 -0000 1.3
+++ src/editor.c 20 Jul 2003 01:40:22 -0000
@@ -62,6 +62,7 @@
{{XK_d, RP_CONTROL_MASK}, editor_delete_char},
{{XK_Delete, 0}, editor_delete_char},
{{XK_BackSpace, 0}, editor_backward_delete_char},
+ {{XK_h, RP_CONTROL_MASK}, editor_backward_delete_char},
{{XK_BackSpace, RP_META_MASK}, editor_backward_kill_word},
{{XK_d, RP_META_MASK}, editor_kill_word},
{{XK_k, RP_CONTROL_MASK}, editor_kill_line},
Regards,
Doug