zsh-workers
 help / color / mirror / code / Atom feed
From: "Michal Maru¹ka" <mmc@maruska.dyndns.org>
To: Pierpaolo.Righini@roma1.infn.it
Cc: zsh-workers@sunsite.dk
Subject: Re: bindkey
Date: Thu, 21 Jun 2001 19:15:39 +0200	[thread overview]
Message-ID: <200106211715.f5LHFdD29417@linux3.maruska.tin.it> (raw)
In-Reply-To: <Pine.OSF.4.21.0106211824170.8008-100000@ax0rm1.roma1.infn.it> (message from Pierpaolo Righini on Thu, 21 Jun 2001 18:26:46 +0200 (MET DST))


Hi Pierpaolo,
yesterday i solved the same problem on my wife's computer. I do not use these keys,
as they are quite distant (i prefer control/meta combinations).

So you have got some keys, which do not do what you expect. Let's bind them to
what we want. But what are the codes of the keys?

Ask the zsh what coded these keys produce: 
you> type: M-x (M- stands for meta or alt key  -x means contemporary press the letter x)
zsh> says: execute:_
you> type: describe-key-briefly
zsh> says: Describ key briefly: _
you> press the key which bothers you. e.g Home
zsh> says:  "^[[1" is undefined-key

but you want it to go to the beginning of the line, so you must bind it:

    bindkey "^[[1" beginning-of-line
Note that ^[ is 1 character (escape), so you must quote it (i do it in emacs).

after this the key will do what you want, but it still insert the ~. So I think
that describe-key-briefly did not report all the key sequence. Let's append it
    bindkey "^[[1~" beginning-of-line
Now it works!
Do the same with other keys. Well you need to consult some guide to know the
names of functions ... sorry


extract from ~/.zprofile:

bindkey "^[[1~" beginning-of-line
bindkey "^[[4~" end-of-line
bindkey "^[[3~" delete-char


ciao.


  reply	other threads:[~2001-06-21 17:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-21 16:26 bindkey Pierpaolo Righini
2001-06-21 17:15 ` Michal Maru¹ka [this message]
2001-06-21 18:40   ` bindkey Bart Schaefer
2001-06-22 11:59   ` bindkey Pierpaolo Righini
2001-06-22 12:14     ` bindkey Michal Maru¹ka
2001-06-22 13:09       ` bindkey Sven Wischnowsky
2001-06-21 18:33 ` bindkey Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200106211715.f5LHFdD29417@linux3.maruska.tin.it \
    --to=mmc@maruska.dyndns.org \
    --cc=Pierpaolo.Righini@roma1.infn.it \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).