Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Setting the cursor position upon completion
- X-seq: zsh-users 13096
- From: Julien Duval <juduve@xxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Setting the cursor position upon completion
- Date: Mon, 4 Aug 2008 21:28:47 +0000 (GMT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=sY+OfwChCJH3CKk12lhB4NnjQOVvu1KN8uDg5ivlL23Sl56EI4BGhKdSQNM0ZzWECYRDBVm260TEjAWP3lgEdA7ElfSGGweAN0qF4t5zHlbdcuthBfT7Dv+okMgSrd9BfwibODXvI861w69+vxViPsX6GItoHn8h2D9Axp5nSxg=;
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Thanks for the answer, Max.
I should have mentioned that I don't want to give up on the MENU_COMPLETE option. I like having a match inserted immediately after the first TAB hit. It's just where the cursor is set on this match that bothers me.
Here is an example:
Let's say the current directory contains three files called "fileone", "filetwo" and "thirdfile".
The '^' character marks the cursor position I'm looking for.
cat ./[TAB] would become
cat ./fileone
^
cat ./fi[TAB] would become
cat ./fileone
^
cat ./file[TAB] would become
cat ./fileone
^
cat ./fileo[TAB] would become
cat ./fileone
^
The default behaviour always moves the cursor to the end of the match, like the last case.
Best regards,
Julien
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
Messages sorted by:
Reverse Date,
Date,
Thread,
Author