From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24397 invoked from network); 4 Dec 2005 17:17:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Dec 2005 17:17:14 -0000 Received: (qmail 5128 invoked from network); 4 Dec 2005 17:17:08 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Dec 2005 17:17:08 -0000 Received: (qmail 20173 invoked by alias); 4 Dec 2005 17:17:01 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9755 Received: (qmail 20161 invoked from network); 4 Dec 2005 17:17:00 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Dec 2005 17:17:00 -0000 Received: (qmail 4118 invoked from network); 4 Dec 2005 17:17:00 -0000 Received: from viefep11-int.chello.at (HELO viefep19-int.chello.at) (213.46.255.27) by a.mx.sunsite.dk with SMTP; 4 Dec 2005 17:16:58 -0000 Received: from Dingo ([213.47.104.218]) by viefep19-int.chello.at (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20051204171657.IKGD21464.viefep19-int.chello.at@Dingo> for ; Sun, 4 Dec 2005 18:16:57 +0100 From: Christian Taylor To: "zsh-users" Subject: Re: history-search + a few new user question Date: Sun, 4 Dec 2005 18:15:39 +0100 User-Agent: KMail/1.8 References: <20051204162658.GA17541@alnagon.localnet.cz> In-Reply-To: <20051204162658.GA17541@alnagon.localnet.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512041815.39602.cht@chello.at> karpi wrote: > 1) At first there was my mostly touched function: > -type some chars, which command begins, and then call completation from > history. Yes there is history-search-backward history-search-forward, > but they are "first word based" --> > gvim .z do not complete .zshrc from > history, but offers: gvim something, gvim /something/other, gvim > /something/which/i/do/not/needs.now ... > I would like get only "gvim .z" based lines from history. > Im clear? Is there some function, or way to set this, plz..? I dislike the history-search-Xward functions too. Luckily, there's: history-beginning-search-backward (and ...-forward) which does exactly the desired thing. [...] > 3) when I press Alt-backspace, cursor deletes all path. Is possible it > deletes only part of path limited by "/" That's because zsh by default considers "/" to be part of a word instead of a separator (defined in the WORDCHARS parameter). I remove "/" in my .zshrc: WORDCHARS=${WORDCHARS//\/} This also causes backward-word etc. to stop on "/". hope this helps, Christian