zsh-users
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Andrew Morton" <morton@nortelnetworks.com>,
	"zsh-users" <zsh-users@sunsite.auc.dk>
Subject: RE: New user questions
Date: Fri, 31 Mar 2000 11:45:27 +0400	[thread overview]
Message-ID: <000501bf9ae5$14af6310$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <38E44864.A7072DAE@asiapacificm01.nt.com>

>
> Well thanks everyone for all the help.  Just about everything
> is working
> sweetly (better than the old shell, actually).
>

Have you had any doubts? :-)

> A few more observations:
>
> - The zshbuiltins manpage doesn't cover 'bindkey'
>

This is in modules section (Zle module). But, yes, I never liked this.
Users are not supposed to know, if command is implemented in core or
module.

man zshmodules

> - History-search-backward could be improved.  In this example it is
> bound to ESC:
>
> prompt> echo foo
> prompt> echo bar
> prompt> echo f<ESC>
>
> This will then match 'echo bar'.  Would be more sensible to
> match 'echo
> foo'?
>

There is history-beginning-search-(backward|forward) that should do that

history-beginning-search-backward
     Search backward in the history for a line beginning with the
     current line up to the cursor.  This leaves the cursor in its
     original position.

>
> Question: How do I, within .zshrc, simply erase _all_ preexisting
> bindings and start afresh?  I've tried everything.
>
> pwold011:/home/morton> bindkey -l
> .safe
> emacs
> main
> vicmd
> viins
> pwold011:/home/morton> bindkey -D emacs vicmd viins
> pwold011:/home/morton> bindkey -l
> .safe
> main
> pwold011:/home/morton> bindkey -D main
> No such keymap `main'
>


bor@itsrm2% bindkey -N foo .safe
bor@itsrm2% bindkey -A foo main
bor@itsrm2% bindkey -L
bindkey -R "^@"-"^I" self-insert
bindkey "^J" accept-line
bindkey -R "^K"-"^L" self-insert
bindkey "^M" accept-line
bindkey -R "^N"-"\M-^?" self-insert

These are the minimum - you want to be able to at least enter
characters. If you simply create an *empty* map and assign it to main -
no input will be possible at all.

-andrej


  reply	other threads:[~2000-03-31  7:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-30  3:14 Andrew Morton
2000-03-30  5:20 ` Chmouel Boudjnah
2000-03-30  5:27 ` Friedrich Dominicus
2000-03-30 11:12   ` Oliver Kiddle
2000-03-30  6:50 ` Andrej Borsenkow
2000-03-30 18:22   ` Chmouel Boudjnah
2000-03-31  6:40     ` Andrew Morton
2000-03-31  7:45       ` Andrej Borsenkow [this message]
2000-03-31 10:33         ` Andrew Morton
2000-04-01 17:13       ` Zefram
2000-03-30  6:57 ` Andrej Borsenkow
2000-03-30 13:27 ` Zefram
2000-03-31 16:18   ` Bart Schaefer
2000-03-31  7:42 Sven Wischnowsky
2000-03-31 10:42 ` Andrew Morton

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='000501bf9ae5$14af6310$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=morton@nortelnetworks.com \
    --cc=zsh-users@sunsite.auc.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).