Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _screen calls non-existent program
- X-seq: zsh-users 15454
- From: Sebastian Stark <seb@xxxxxxxxxxx>
- To: Peter Stephenson <Peter.Stephenson@xxxxxxx>
- Subject: Re: _screen calls non-existent program
- Date: Tue, 19 Oct 2010 15:52:25 +0200
- Cc: zsh-users@xxxxxxx
- In-reply-to: <20101019135822.0082a9e6@xxxxxxxxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <5C904183-5F0E-4971-B036-497A143DD227@xxxxxxxxxxx> <20101019135822.0082a9e6@xxxxxxxxxxxxxxxxxxxxxxxxx>
Am 19.10.2010 um 14:58 schrieb Peter Stephenson:
> "screen-sessions" is just the name to use in the completion context.
> The command should be in $words[1], which should be "screen". "screen
> -ls" does the right thing.
>
> The real problem is the completion system hasn't actually been told to
> complete a session here. The _arguments specification is:
>
> '-S[name this session <pid>.sockname instead of <pid>.<tty>.<host>]:session name'
>
> which simply outputs "session name", but doesn't try to complete
> anything. This is presumably because it's a new session, so completing
> exactly an existing session isn't useful. However, I can see that
> completing an existing session might help you create a new name with
> minimal typing. If you change that line (around 84) to
>
> '-S[name this session <pid>.sockname instead of <pid>.<tty>.<host>]:session name:->any-sessions'
Thank you, this works for me.
> you'll get that effect. It could be a style, I suppose.
I think it should be default, at least in the -X case, because in this case -S is used to choose from existing sessions. (see my other email).
Sebastian
Messages sorted by:
Reverse Date,
Date,
Thread,
Author