From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17332 invoked by alias); 19 Oct 2010 13:52:30 -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: 15454 Received: (qmail 27698 invoked from network); 19 Oct 2010 13:52:29 -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 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at biskalar.de does not designate permitted sender hosts) Subject: Re: _screen calls non-existent program Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Sebastian Stark In-Reply-To: <20101019135822.0082a9e6@pwslap01u.europe.root.pri> Date: Tue, 19 Oct 2010 15:52:25 +0200 Cc: zsh-users@zsh.org Content-Transfer-Encoding: quoted-printable Message-Id: <2D499F17-875D-4BD9-80D9-2700A504ED8D@biskalar.de> References: <5C904183-5F0E-4971-B036-497A143DD227@biskalar.de> <20101019135822.0082a9e6@pwslap01u.europe.root.pri> To: Peter Stephenson X-Mailer: Apple Mail (2.1081) 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. >=20 > The real problem is the completion system hasn't actually been told to > complete a session here. The _arguments specification is: >=20 > '-S[name this session .sockname instead of = ..]:session name' >=20 > 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 >=20 > '-S[name this session .sockname instead of = ..]: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=