Re: Change to parent directory by using Ctrl + Backspace key-binding




SINNER wrote:
* yorkwu wrote in comp.os.linux.misc:

Hi,

I use tcsh + rxvt in my daily work.
I'm looking for a way that I could set up a key-binding, e.g.
Ctrl+Backspace
to do "cd .."
Currently , I'm using "alias .. `cd ..`" to help reduce bothering key
typing but
I still feel frustrated once I need to change to parent directory.

Thanks for your help!



man tcsh

search for bindkey

--
David

David! Very thank for your hint. That's really what I want.
Now, I could use bellow command in tcsh to bind the "Ctrl+n" to "cd .."

bindkey -s "^n" "cd ..\n"

But how to bind it to "Ctrl+Backspace"?
I used 'bindkey" without option to list all binding KEYs.
I found some weird binding:

"^?" -> backward-delete-char
"\204" -> list-choices
"\210" -> backward-delete-word
"\211" -> complete-word
"\214" -> clear-screen
"^[[2~" -> yank
"^[[3~" -> delete-char
"^[[5~" -> up-history
"^[[6~" -> down-history
"^[[1~" -> beginning-of-line

Looks like "\214" or "^[[1~" is binding to a key on my keyboard.
Where could I find information about that?

Thanks a lot!

.



Relevant Pages