From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28209 invoked by alias); 6 Jun 2011 22:33:43 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16084 Received: (qmail 22936 invoked from network); 6 Jun 2011 22:33:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at gmx.de designates 213.165.64.22 as permitted sender) X-Authenticated: #20088476 X-Provags-ID: V01U2FsdGVkX1+lqy42I/Cl46M9NEr92Z5JHVrq9Q3zPiKCDpxOVE /CuIPvN+f+bqvb Date: Tue, 7 Jun 2011 00:33:21 +0200 From: meino.cramer@gmx.de To: zsh-users@zsh.org Subject: Completion question Message-ID: <20110606223321.GA3047@solfire> References: <20110602191951.566gmx1@mp009.gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110602191951.566gmx1@mp009.gmx.net> User-Agent: mutt-ng/devel-r804 (Linux) X-Y-GMX-Trusted: 0 Hi, often I assemble complicate and/or longish commandlines from previous ones. This include copy'n'paste actions. This also includes action which are not always done the sequence, which is given by the paramters of the final commandline. Suppose I have alreasy pasted this one (">" is the prompt) >/home/me/data/subdira/subdirb/The Long and winding commandline.wav ^ The cursor is here:"^" Now I press CTRL-A and type the beginning of the command "mplayer" like this: >mpla/home/me/data/subdira/subdirb/The Long and winding commandline.wav ^ If I press TAB now, nothing happens, since zsh seems to take the whole commandline into account while searching for a possible completion. And of course "mpla/home/me/data/subdira/subdirb/The Long and winding commandline.wav" is not know as a command on my system... ;) Is it possible to configure zsh to only take the string from the beginning up to the position of the cursor into account for the completion processing ? Thank you very much in advance for any help ! :) Best regards, mcc