Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Is it possible to remap C-; in zsh?



On 22 September 2010 00:18, Derek Thurn <derek@xxxxxxxx> wrote:
> Hi,
>
> I'm a fan of remapping Ctrl+Semicolon, since it's conveniently on the home
> row. However, when I try and map it to something in zsh using bindkey, it
> doesn't let me. Am I out of luck if I want to bind this useful sequence to a
> zsh function?

There is no such character as ^; so most terminals just send a ; when
you press ctrl-;, this is true of many other ascii chars near that
range. If you can rebind the keycombo in your terminal you can bind
that in zsh, but that is specific to your particular terminal.

In urxvt you could put this in your x resources:
URxvt.keysym.C-semicolon: \033[50~

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author