Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ISUFFIX
- X-seq: zsh-users 4885
- From: Sven Wischnowsky <wischnow@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: ISUFFIX
- Date: Fri, 26 Apr 2002 12:17:43 +0200
- In-reply-to: <39E723A47AE4D211A9E800A0C9DEB9F605B0E934@xxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <39E723A47AE4D211A9E800A0C9DEB9F605B0E934@xxxxxxxxxxxxxxxxxxxx>
Ebourne, Martin wrote:
> A couple of queries on suffixes & completion:
>
> 1) If I am completing variable assignments on the command line, eg:
>
> MODULE=value
> ^
>
> and I complete after the 'E', on the '=', it does nothing. Is there
> any way to configure the system to make it complete to MODULE_PATH
> as might be expected?
Have you tried the expand-or-complete-prefix widget or the _prefix
completer?
> 2) If completing the above line using the following in the completor:
>
> compset -S '=value'
>
> then 'MODULE' will be successfully completed to 'MODULE_PATH', but the
> cursor will be left after value. Is there any way to keep the cursor
> after 'MODULE_PATH', which is what was completed? (Or even after the
> '=', given the automatic suffix which would have been inserted had
> value not been there.)
Try `compstate[to_end]='.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author