From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25435 invoked from network); 29 Oct 2005 12:38:21 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Oct 2005 12:38:21 -0000 Received: (qmail 55933 invoked from network); 29 Oct 2005 12:38:13 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Oct 2005 12:38:13 -0000 Received: (qmail 13761 invoked by alias); 29 Oct 2005 12:38:06 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9592 Received: (qmail 13751 invoked from network); 29 Oct 2005 12:38:06 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 29 Oct 2005 12:38:06 -0000 Received: (qmail 54952 invoked from network); 29 Oct 2005 12:38:05 -0000 Received: from batman.mns.ru (80.70.224.14) by a.mx.sunsite.dk with SMTP; 29 Oct 2005 12:38:05 -0000 Received: from lan-228-198.users.mns.ru ([80.70.228.198]) by batman.mns.ru with esmtp; Sat, 29 Oct 2005 16:38:02 +0400 id 0001160E.43636D2A.00002FBE From: Konstantin Sobolev Reply-To: kos@supportwizard.com Organization: SupportWizard To: zsh-users@sunsite.dk Subject: Re: Simple Tip of the Day Date: Sat, 29 Oct 2005 16:37:58 +0400 User-Agent: KMail/1.8.3 References: <87ek65zwuw.fsf@trews52.bothi.fi> In-Reply-To: <87ek65zwuw.fsf@trews52.bothi.fi> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510291637.58926.kos@supportwizard.com> X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 On Friday 28 October 2005 15:47, Hannu Koivisto wrote: > bindkey -s '^[[5~' 'cds\r' # "PageUp" > > Just in case you are wondering what that 'cds' is, it is an > interactive way to select a directory from the directory > stack-treated-as-history, along the lines of a similar feature in > 4nt: > > cds () { > local DIR="$PWD" > if [[ ! -z "$dirstack" ]]; then > DIR=$(print -rl $dirstack | tac \ > > | iselect -a -f -n chdir -Q "$PWD" -t "Change directory to..." > | -p ${#dirstack}) > > fi > cd "$DIR" > } I'm using menu completion for this: bindkey "^Z" "menu-complete" bindkey -s '\ec' 'cd -^Z' -- /KoS * Any program will expand to fill all memory PLUS ONE BYTE!