Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to get cursor navigation of completion menu working?
- X-seq: zsh-users 9992
- From: "sam reckoner" <sam.reckoner@xxxxxxxxx>
- To: "Peter Stephenson" <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: How to get cursor navigation of completion menu working?
- Date: Fri, 3 Mar 2006 15:10:51 -0800
- Cc: zsh-users@xxxxxxxxxx
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=uAr2ZczMW+by6LOP6Dj0pRaEB0FEVEDmjmvFJp3q0JyUE8ooXuL1VSJGKP7lGUwqXUfSSAgPfLHNN+c+nkjWIby3uJRQRiS+HMFpWqR7Lvhm6B8jxyEBqOT+TOeJzV1CKNQA1vxLxsrvyXbx+2jn28TQ5kguBi4+vVtyEYYo3gA=
- In-reply-to: <200603032207.k23M7NVF004243@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <6a42eec70603031302j3ed889a1m64ffd4f38b0554cc@xxxxxxxxxxxxxx> <200603032207.k23M7NVF004243@xxxxxxxxxxxxxxxxx>
Hmm. that's not doing it. I'm probably doing something wrong in zshrc. Here's my zshrc:
==================
# customize zsh behaviour
#
autoload -U colors
autoload -U compinit
colors
stty susp ^Z
stty erase ^H
#
setopt ALLEXPORT
setopt ALWAYSLASTPROMPT
setopt ALWAYSTOEND
setopt APPENDHISTORY
setopt AUTOCD
setopt AUTOLIST
setopt AUTOMENU
setopt AUTOMENU
setopt AUTOPARAMKEYS
setopt AUTOPUSHD
setopt AUTOREMOVESLASH
setopt COMPLETEINWORD
setopt CORRECTALL
setopt EXTENDEDGLOB
setopt HISTIGNOREDUPS
setopt HISTNOSTORE
setopt HISTIGNORESPACE
setopt IGNOREEOF
setopt LISTAMBIGUOUS
setopt LISTTYPES
setopt MARKDIRS
setopt MONITOR
setopt NOBEEP
setopt NOCLOBBER
setopt NOHUP
setopt NOLISTBEEP
setopt NUMERICGLOBSORT
setopt PUSHDMINUS
setopt PUSHDSILENT
setopt PUSHDTOHOME
setopt PUSHD_IGNORE_DUPS
#
export EDITOR='vi -u NONE'
export FCEDIT='vi -u NONE'
export PROMPT='%h> '
export PROMPT2='%_> '
export RPROMPT='%B%2C%b'
export CYGWIN=nontsec
export DIRSTACKSIZE=10
export PATH="$PATH":"/cygdrive/c/PROGRA~1/Vim/vim64"
export PRINTER='HP LaserJet 5/5M PostScript'
export HISTSIZE=1000
export HISTFILE=/home/Jose/.zsh_history
export SAVEHIST=1000
export SHELL=zsh
#
#
# customize completion
#
compctl -g '*.gz' + gunzip
compctl -g '*.tar' + tar
compctl -j -P "%" + kill fg disown
compctl -g '*(-/)' cd
compctl -g '*(^/)' + less
compctl -g '*(^/)' + gvim
compctl -g '*(^/)' + v
compctl -g '*zip' + unzip zip zipinfo zipgrep zipcloak zipnote zipsplit
compctl -o setopt unsetopt
# bind some keystrokes. Makes it emacs compatible
#
bindkey -v
bindkey '\CX' execute-named-cmd
bindkey '\CO' push-line-or-edit
bindkey '\CS' history-incremental-search-forward
#
bindkey '' beginning-of-line
bindkey '' beginning-of-line-hist
bindkey '' end-of-line-hist
bindkey '' copy-prev-word
bindkey '' kill-line
bindkey '' insert-last-word
bindkey '' history-incremental-search-backward
bindkey 'OA' up-line-or-search
bindkey 'OB' down-line-or-search
bindkey '[A' up-line-or-search
bindkey '[B' down-line-or-search
zmodload zsh/stat
zmodload zsh/complist
=================
On 3/3/06, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
"sam reckoner" wrote:
> My understanding from reading the user's guide is that there is a way to
> cursor-navigate the listed completions. However, I can't figure out how to
> get this to work.
If you're using the new completion system (with compinit) you can set:
zstyle ':completion:*' menu select
The instructions are buried in the entry for the menu style in the
zshcompsys manual page.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page still at http://www.pwstephenson.fsnet.co.uk/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author