zsh-users
 help / color / mirror / code / Atom feed
* ISUFFIX
@ 2002-04-26  9:17 Ebourne, Martin
  2002-04-26 10:17 ` ISUFFIX Sven Wischnowsky
  0 siblings, 1 reply; 3+ messages in thread
From: Ebourne, Martin @ 2002-04-26  9:17 UTC (permalink / raw)
  To: 'zsh-users@sunsite.dk'

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?

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.)

Cheers,

Martin.

This message is for the named person's use only. It may contain sensitive and private proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.
Unless otherwise stated, any pricing information given in this message is indicative only, is subject to change and does not constitute an offer to deal at any price quoted. Any reference to the terms of executed transactions should be treated as  preliminary only and subject to our formal written confirmation.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ISUFFIX
  2002-04-26  9:17 ISUFFIX Ebourne, Martin
@ 2002-04-26 10:17 ` Sven Wischnowsky
  0 siblings, 0 replies; 3+ messages in thread
From: Sven Wischnowsky @ 2002-04-26 10:17 UTC (permalink / raw)
  To: zsh-users


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@berkom.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: ISUFFIX
@ 2002-04-26 14:04 Ebourne, Martin
  0 siblings, 0 replies; 3+ messages in thread
From: Ebourne, Martin @ 2002-04-26 14:04 UTC (permalink / raw)
  To: 'zsh-users@sunsite.dk'

Sven Wischnowsky wrote:
> Ebourne, Martin wrote:
> > 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
> Have you tried the expand-or-complete-prefix widget or the _prefix
> completer?

Well I have the _prefix completer configured (as below).

If I complete after the E as in
	MODULE=value
it does nothing. But if I complete after the E as in
	MODULEvalue
it goes to
	MODULE_PATH value

> Try `compstate[to_end]='.

That fixes my second problem.

Cheers,

Martin.


completer
        :completion:all-matches:* _all_matches
        :completion:* _oldlist _complete _ignored _match _approximate _prefix
matcher-list
        :completion:* '' 'm:{a-zA-Z}={A-Za-z}'
list-packed
        :completion:*:default true
group-name
        :completion:* ''
last-prompt
        :completion:*:default true
menu
        :completion:*:default select
list-separator
        :completion:* :
glob
        :completion:*:expand:* false
substitute
        :completion:*:expand:* true
tag-order
        :completion:*:complete:cd:* local-directories
        :completion:*:complete:-command-:* '! path-directories'
        :completion:*:match:sql:* '! table-aliases'
        :completion:*:expand:* all-expansions expansions original
        :completion:*:*:-subscript-:* indexes parameters
        :completion:*:approximate*:* corrections original
max-errors
(eval)  :completion:*:approximate*:* 'reply=( $(( ($#PREFIX+$#SUFFIX)/4 + 1 )) numeric )'
add-space
        :completion:*:prefix:* true
match-original
        :completion:*:match:* only
remove-all-dups
        :completion:*:history:* true
insert-unambiguous
        :completion::match:* pattern
        :completion::approximate*:* always
list
        :completion:history-words:* false
ignored-patterns
        :completion:*:*:*:functions '_*'
old-matches
        :completion:all-matches:* only

This message is for the named person's use only. It may contain sensitive and private proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.
Unless otherwise stated, any pricing information given in this message is indicative only, is subject to change and does not constitute an offer to deal at any price quoted. Any reference to the terms of executed transactions should be treated as  preliminary only and subject to our formal written confirmation.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-26 14:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-26  9:17 ISUFFIX Ebourne, Martin
2002-04-26 10:17 ` ISUFFIX Sven Wischnowsky
2002-04-26 14:04 ISUFFIX Ebourne, Martin

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).