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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19922 invoked from network); 7 May 2022 20:13:38 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 7 May 2022 20:13:38 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1651954418; b=qdPVwERUTp/Kao/+YSWUQsAxf90gjeEgcQmaL6YFYNo+/7lNerBAiAyO0/axsk9+kkfGtm1Ud4 fos37KLsjx5C138Aamb1Za/71jUkghkI1yMwTWk/46hbYBjuuDbLuR70aq6VYqdzzQvf73Yu+e qDGLCV0yXvexhTV1GEWbVD6XAiVfk4+x+TPbUPZdqRbs8FJYt/C1shkn5bNHCrjm3kUMKNW3K+ c8uUHwSWnQFQJKtuTvWwrwY8QcthS6EZHVx3qBLQ2u1H+qyhGVJSmEewlhBbj7Er4IAczqftUi CppakSxH81/q1x6Mun2B0rvCfRFWHCivRCqAvhOnAjxCnw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f41.google.com) smtp.remote-ip=209.85.208.41; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1651954418; bh=3xo9KgIGejWtA2dthyicu2RV9gcgbhJDQaotYpN6UZs=; 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=jfdbDCv0ml8NtBiI6Z12kYgeaYsKf3BLmGBhu9RE/r1XeT6VGwt6Di4EcUBq4h+kgEyJI7T85l grFEWlnWeBJrB/j0ii2L2NlFaJFj8n97mD7qPfj1AGMBlI8GarGmfrQ4GmQgKXc5ShU5VvAyyJ vCaEOBEoldiChZ1NGVPNJTAREXUtsW4mNaipTJaUw0OZBybKiVkjByO/rS/NRWUxd8UNgEmWL1 Rt9HpEfSnhQIctABDizhw45XSDhcQs9VctqjhgpzQSiV1pdNkfsxXaZXohP4Bgg+3p4WVx98s+ IucuRJo9z33LKXNuHwrrFgFsYUK9AGZgS9TMC6E8EVBvKA==; 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=f5sKYDCD1yHjTp8vMYg4ijUaitPJ/SOsfaPIlFpV/nw=; b=Z0YdR/KpIokPMQIl8KZxOZihZ2 00vn/+nOSa674Wg+7LbCh8+H3xDflXXIpnCSi+DSoE4Qtl7Im3sKxsAjNPgBZYukIfCO0osab4Rlk ZbRF/80xMlEIZBY4BLcQRxgEfFwRDBTayJpJ8sM7DEFKXTd8L/G8ZHtRdfOcEkGGgQidOy2DbYR/h pxlQPR3Qc9wVoPetMw/6oiAVx9jNUHwMXp7vl0NUcf++stdS9Bulpi0bWLqzR3X0yfdQCIUu2nIWI Ea8r6n8hTIsdFoYwyfmrKtTidxSM4iN34xFGWiUj7p9V554icBqPNSGFUziKF93IviH/of/a3tFnk blqOGTUA==; Received: from authenticated user by zero.zsh.org with local id 1nnQo5-0007yb-NH; Sat, 07 May 2022 20:13:37 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f41.google.com) smtp.remote-ip=209.85.208.41; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f41.google.com ([209.85.208.41]:43742) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nnQn7-0007E7-8v; Sat, 07 May 2022 20:12:38 +0000 Received: by mail-ed1-f41.google.com with SMTP id c12so4667616edv.10 for ; Sat, 07 May 2022 13:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f5sKYDCD1yHjTp8vMYg4ijUaitPJ/SOsfaPIlFpV/nw=; b=p/OJF6iivAYqonP+Mg2iT79MG03ahW10diW/CoPJsdWWGL/04Rn1GE8gFr1SiZVpeS l/nS+T8quX9n/ARtYjTAqYQrDGy9XJIQFi2ZXYviJ5HZggHOSAVWvNxtKR8pXzr62VdC EbbRqgR6kZ2aDPRPJQcMqCImHhr8Rc2NyMwCuyleOwj3/qu0+gIfQyxstSoUAEYsxA9m kZEJV2lcnbw5S/lzuSTOz444ci6KES1R2wFGt6dTG1UxMnyljqnrzHYlJfk9bohTew1m KmwFpMf5fVD5/+yeb3yPZ4ncuwZhGIqkr0r+A4zizO8U9HcrdaexP77ZikIH+QnsUvWY h+2A== 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=f5sKYDCD1yHjTp8vMYg4ijUaitPJ/SOsfaPIlFpV/nw=; b=ym4y6fNOxdPkf3o+gM8L4IDbRaFOu9FaChkCU4PlOrOQmFmTo4aZjsM5E3XOrfsW+i qKCgakjf/9t2pr8bfIbTiNbGVuBBeF8expEhtToti4pN9E0r5IFqJljsC1lunmZuI2vW TvAdi4ads/eJ+FVlzdzpAKBOA+gzLDQTZGuJjpZgKvVDNXYHbljiR63UEjGEBvcevRQp 6weAzRn5+xYpmrKKZVgSzTpBnnpJlqqwiMfmONtUkLCDx3PJwV7qL8KIIrjHckfOkFJ3 HRxcon7jgBlxA5VhjlIKkGWljuCMvYBM5QWKrI3FzQQ4rIr1I6H5Zqpey6lQIjBxL9Kd ZiQQ== X-Gm-Message-State: AOAM531rrIgcRpUlMjocFD8EzgaRlGujWcbLElrC2B6DpDAoPgAMj9ng UfVJJLPGbYvbplpfSMvNInTqZzK1mVV80x2mJKRnqQ== X-Google-Smtp-Source: ABdhPJziM8hLR77Z/J5RVumAT+Ddp+UUqvYSR0a0IJEOgPro78lg+jCsJcHHhcI7inc1HldWOJZv0iopQy5OMdkdfYg= X-Received: by 2002:aa7:ca0d:0:b0:428:90ee:322c with SMTP id y13-20020aa7ca0d000000b0042890ee322cmr533374eds.100.1651954356566; Sat, 07 May 2022 13:12:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Sat, 7 May 2022 13:12:24 -0700 Message-ID: Subject: Re: completion with separator To: Pier Paolo Grassi Cc: Zsh-Users List Content-Type: multipart/alternative; boundary="0000000000009bca8105de71984d" X-Seq: 27733 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: --0000000000009bca8105de71984d Content-Type: text/plain; charset="UTF-8" On Sat, May 7, 2022 at 3:41 AM Pier Paolo Grassi wrote: > > _values -s , categories $categories_array > > > func a > > > func acat, > > I would like that the comma was not added automatically, or at least to be > removed automatically when I select a voice in menu selection with enter. > is this possible? > It should already be happening that way. If you type a space or another return after the comma, it should disappear. If that's not happening the way you like, you can try some variation of remove_comma=(-r '[:alnum:] \t\n\-') _values -O remove_comma -s , categories $categories_array to remove the comma when you type (in that example) anything alphanumeric or whitespace, but whether that works depends on how you've defined the specs in $categories_array (-O applies only to specs that have an "action" component). --0000000000009bca8105de71984d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, May 7, 2022 at 3:41 AM Pier Paolo= Grassi <pierpaolog@gmail.com> wrote:



--0000000000009bca8105de71984d--