From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3844 invoked from network); 4 Jul 2001 15:45:45 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Jul 2001 15:45:45 -0000 Received: (qmail 669 invoked by alias); 4 Jul 2001 15:44:36 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4001 Received: (qmail 657 invoked from network); 4 Jul 2001 15:44:36 -0000 From: Sven Wischnowsky Date: Wed, 4 Jul 2001 17:43:17 +0200 (MET DST) Message-Id: <200107041543.RAA10245@beta.informatik.hu-berlin.de> To: zsh-users@sunsite.dk Subject: Re: completion question In-Reply-To: <20010704164503.A12032@dlux.hu> dLux wrote: > ... > > Yes, absolutely. I don't have chance to read the whole zsh > documentation, it is very huge! > > I want zsh to ignore the "local/" part of the example, and complete > the word as I want... If you use compctl-based completions, just use another key binding: bindkey '^I' expand-or-complete-prefix That `-prefix' means that it will ignore the `suffix', i.e. the part after the cursor when completing. If you use the new completion system (the one invoked by `compinit'), then, as Andrej pointed out, you want to use the _prefix completer which does the same. You set that up with: zstyle ':completion:*' completer _complete _prefix to make it try normal completion (from both ends if `completeinword' is set) first, or by using the _prefix completer exclusively: zstyle ':completion:*' completer _prefix zstyle ':completion:*:prefix:*' completer _complete (or whichever completer you use or compinstall has set up for you). Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de