From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27666 invoked from network); 7 May 2022 21:12:05 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 7 May 2022 21:12:05 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1651957925; b=QWIfhTJB8LTkZwqoRiAHEPUJigqjxOnfDyMwz99u+b6M64+a9CJV83hF4+JnAt0Vm+54cHU0nA hW+Tz6HcaQCbpEc97VhojsP/k0VmFJL2QCNvh0eDnv/wpzJdkXjygjwGU1AT6W4qe+SJFWWvw3 DKlgkAR8RdWe7L8TjFTIFjCU6c92gT1+F5mah5VIveOSY6Rkv66kkyaR0CtsihGvgQA1azQtE3 Y/dbaDwl7Qhn+96fhasEYViFhUmbC36OC8sKN/at+nVCtZMSTNOFoxy8KGAGsXAil4PPlrSMMJ P1mA8KIR92Z3QhAk/9h1g8XpsR6SiQThr1h9lDRGfVcTRg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f47.google.com) smtp.remote-ip=209.85.166.47; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1651957925; bh=u8cLhOclKrQ3e99KVCmuW+zFopunvvcyWxx374nsmnY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=OS9C2J0OAvypNNlatR+dO/ZxvLvzHbqt4tcsqXKG4kbVlWVi8twR/ywuC/r0G+Ob6aXFvriMKj 32fBBNaKwO526IR97JH6LGI9g0SlyoCGMN9oY1ws12kGwFqu+xJ6hcAsrgfKHxSO8WMJ53miS/ rca+7Fu5Fyk1BC7MJkcmLazDHxawYc6s/jH2nizAzNp/QOlLvGXdNsMFXkC0RiSAU0+CdCRMTZ r7ExKv9+zlggFcTERD2+SBBvZrSXS3b8gAkykzqjbmsLAakGJZ9+v5vOu86cwe4OLMEE7XJwi0 MR9ZGlR3ZsZNU9yakIZFKDah0SVaE+4RBCsu8r8hKnVL7w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=u8cLhOclKrQ3e99KVCmuW+zFopunvvcyWxx374nsmnY=; b=ESnxegAJBE2vjGwBvVhvZrjd7v SaOpfUArEppwpsx/flatRqQcDBKWkwTOLVXwNz2eIXRiCCdy45G2nM7rF4p9Dgkjy93UOjc3LPunU +PkWcxVs+YKy0l67xiUazuJoZjaemqQsxgnFuWWUNhP3vvCV5Q8+wymzoWbulwAJfHvQUH+FgvK4E LVmxSG+ZKfFdmOT62n2cRBvGe0qq8s7znE/Of8MhupOIyQg2YfTf7ImMYieRhGO/vReNLb3Sq9F2p Io1fCKiewSoGWOOdH+qqwFSOdqJsfK/JM+dgqjAUviCXn+uzRZ+pM3ujg5ANRk1HTvfTd93nIPB/O UBrZ+/6A==; Received: from authenticated user by zero.zsh.org with local id 1nnRie-000Gpa-IQ; Sat, 07 May 2022 21:12:04 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f47.google.com) smtp.remote-ip=209.85.166.47; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f47.google.com ([209.85.166.47]:46964) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nnRi4-000G6k-48; Sat, 07 May 2022 21:11:28 +0000 Received: by mail-io1-f47.google.com with SMTP id g21so11525059iom.13 for ; Sat, 07 May 2022 14:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=u8cLhOclKrQ3e99KVCmuW+zFopunvvcyWxx374nsmnY=; b=LIzGlvRClV79amzhrU1N06bc38v8uGk3KN0/fHMJcZeI4+7dEHLRQ9oR9QHWeZjcqH O89cC4VpNDQbi7rmKg4aQ4fl8WayQEorstyDkTTQd9ab2llLvIYRJFSHYgDZzz+NdyBo iBTYdfJBtrWNZvxYECwXYzDDFBsq0e8ZF0JDAqFOs22UzD1IjZyXwxfzpyUn7CmOFEas s9p+ZvzJG5i2nTKW2twruFayXXWH7lPL+PBsXjEULvaj0LDz0KLFS4UdMx0zribXKnkn rrBsmCcxN3UWjLzRgBXwu2J+C+VR1stof22ljX3wr2EhePbukfhRB7VOEzBzIPH3vtXP Aosw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=u8cLhOclKrQ3e99KVCmuW+zFopunvvcyWxx374nsmnY=; b=JxZPbSzpgUQ6SoPZIe/CaOiJxYv9qJLElcY4muND3APExHV6mmkIG4BXvo8DhFWvP8 Mw4nXHbtElmee4ti/CSVXLdZUiXTMM/PWLUlZ5BeRnL/R/WFSPLq0URcnwNNUIW+R8Dn 83HipyQc6adHInd8y5rAZftJFg3Xdx1+Rg1/LyO9JZ0iibEcJ3zNFimyO/DtwzpMAzHt dPxRS7LRPoCaii6EN/CRs9J/3hTYd/LY+lKiHrdu7umFHwDoJHVC8EzAcX+7TTPQnBHV 7KI5oz27OYzDRVLYwCUEgzC2ew8uin4DiznQePVVBmSh5eOG0eFYG0i1fItTisExGvy2 +BCg== X-Gm-Message-State: AOAM531rbX+i4dz3QzcFQAxiqqm2fD1AwrauiDa7fO2UlB9Bn+juoWrq mVkorwjGmc9iDTbYNCZnBjNYVG8I/Ce8T5HPp0A= X-Google-Smtp-Source: ABdhPJwdiZQsRYrgzdP9WaWRPfhwA7WGDizEswPQW21ZPBKXjk/06oHokvxHEBDP+2SsNqNt15RFfB7gURuSx6ZaOuQ= X-Received: by 2002:a05:6638:d4f:b0:32b:8cea:4a44 with SMTP id d15-20020a0566380d4f00b0032b8cea4a44mr4357772jak.246.1651957887022; Sat, 07 May 2022 14:11:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pier Paolo Grassi Date: Sat, 7 May 2022 23:10:50 +0200 Message-ID: Subject: Re: completion with separator To: Bart Schaefer Cc: Zsh-Users List Content-Type: multipart/alternative; boundary="0000000000000a383e05de726b60" X-Seq: 27739 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --0000000000000a383e05de726b60 Content-Type: text/plain; charset="UTF-8" I am trying with remove_comma=(-r '[:alnum:] \t\n\-') _values -O remove_comma -s , categories :message:'(aa bb cc)' but all I get for completion is func func = instead of the string I have inserted as possible completion I've tried also _values -O remove_comma -s , categories \ :message:'(aa bb cc)' to the same result Pier Paolo Grassi Il giorno sab 7 mag 2022 alle ore 23:00 Bart Schaefer < schaefer@brasslantern.com> ha scritto: > On Sat, May 7, 2022 at 1:57 PM Pier Paolo Grassi > wrote: > > > > I don't understand, however, why the -r applies only to these, since the > compadd specification of this option does not describe this limitation > > The short answer is that _values already creates its own -r option for > simple lists of values, but doesn't have enough information to do so > for arbitrary actions. > > It's possible this could be improved. > --0000000000000a383e05de726b60 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am trying with

remove_comma=3D(-r = 9;[:alnum:] \t\n\-')
_values -O remove_comma -s , categories :messag= e:'(aa bb cc)'

but all I get for compl= etion is
func <tab>
func =3D<cursor>
<= div>
instead of the string I have inserted as possible comple= tion

I've tried also
_values -O remo= ve_comma -s , categories \
:message:'(aa bb cc)'

to the same result

Pier P= aolo Grassi


Il giorno sab = 7 mag 2022 alle ore 23:00 Bart Schaefer <schaefer@brasslantern.com> ha scritto:
On Sat, May 7, 2022 at 1:57 PM = Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
>
> I don't understand, however, why the -r applies only to these, sin= ce the compadd specification of this option does not describe this limitati= on

The short answer is that _values already creates its own -r option for
simple lists of values, but doesn't have enough information to do so for arbitrary actions.

It's possible this could be improved.
--0000000000000a383e05de726b60--