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, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14682 invoked from network); 14 Sep 2023 16:50:52 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Sep 2023 16:50:52 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1694710252; b=Gtl29VGL/ze/Ipk50baVMIWv9Hpbp9L4XjHClMbudPtFEWmnwTLMkr2GXBxfPznyZuLPI/IxIP 688AfRfzvq2xKnWMyvf7DPkT5RUAV/OgvKKdzotJGW9nTbIWU2kQMe2zPLEKaHCGFofiiRJJMv gzAinWbFIgLBHpTtG9ojsMxRhMdz2bY2iVqL1ptFFBb7wZMZInyBB0mE2VvzeOzNaLWrLReT0r XtcG51Z5I6vdix0fMObz3Y/bSl4WANonX4qtrK7oyZ/nNJKQKieQTgcJSifWRPOKHXSydyowEM SqG4eGnIZNQwYcnSq3hiZ9qhiSAmarsOYOAvefTwOdp85Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f42.google.com) smtp.remote-ip=209.85.218.42; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 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=1694710252; bh=nOEpwn+PU4Pwkx2Muyy5i7PcfWupvOXDABYQvforEio=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=hFOh5tS9cN2iC4zFO473W4KoQ2OefAJ1DDT5ekVj0iLIoc5ixtxn63gcgmmp6t537yUJmdPK1H sPbN5EiOxai0hijsH6RYwDkxyYBCvQBrP3q5jVi9zQbfQNCG9DZJDdvj79Gjb2M5o7RPfh2NnP ATfi4OO7pQG6DadF8IvPaAiQPMh3/g9COFzaL9hkqAwawKnGIIs/v+wXLyYiDn+emkBKR8LeK8 d+O/IaU+FEJ9AoFDWmOZ0o7dpLs2G20mvPQSlhdRwCpxpeDFk3nsQ6RQpb+LLf8V7WPP/GWAXP yeYD6/kqe0ixxkLAGwN189gIpygROaxb0YV4IP9z6RPx9g==; 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-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=jaQbgMRvWVD7Jpz5mJZflprL81r8PIV2hGBrO2eAf20=; b=VLzjKRAvKk3lpcjMw28SxU2KX6 /akZZrRC9eYyBmX7fwI3tZnOX5pvssQ5/onXrP2TWIRISjdmME5/gJnq1O6aQcTx+sEOkgkFpn/zo Tfkn5iGQcOwYrJlpadVnybZ0oG3oQ+BT8iUZqKTZya5GTHtzPhcfD614L5rerZWwc3jzR+h082Au2 JSTo6zeYPHOaRivOptbU6iCVGMgMlx+9Gkm3b/S/t0r55UDcMyQLP764EfpelU48sJzSPvi1pQtuf gHybwQdBAXu8niOlpNNlL6MW/ieOaVGV2/8vR47wYkF056CYko13pUko/T+gR0QDAj23lmDNfPRwk 2M1RF0xA==; Received: by zero.zsh.org with local id 1qgpYK-00064j-A3; Thu, 14 Sep 2023 16:50:52 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f42.google.com) smtp.remote-ip=209.85.218.42; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f42.google.com ([209.85.218.42]:46119) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qgpXS-0005Eo-Fs; Thu, 14 Sep 2023 16:49:59 +0000 Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-98377c5d53eso155421866b.0 for ; Thu, 14 Sep 2023 09:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1694710198; x=1695314998; darn=zsh.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jaQbgMRvWVD7Jpz5mJZflprL81r8PIV2hGBrO2eAf20=; b=mj1BFsRBtb1Orp/HswB6kya9JX/u8ShAa7ZHN12d/ATt6O/gd5XdQykM7M2eKhfFQ+ c4PNC7iEBalV/HAr1z0TBYeMYvbvj7JCsqEQQIab4WUPLNb6SKnuTXl9cZbESTlNlkqs rjii6IQb/OHITWNe4p4/l53yMK7JdWDUoGompzR4KCh1zGcL2QdIaOMrYxLCiyyr23uf 3RWGl6BQ7hsVqaErLsFguvEhH9MP9VHrPdPAKXVfoHvfw/3K8Bf6E4sA3oYETcoZOrpg 6Vl+4zPi8+XOAgJTgLkNacI6zGBv/BeJkB150+PRyeeUouXGVKFER5qDpFkgbThGGM46 dt8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694710198; x=1695314998; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jaQbgMRvWVD7Jpz5mJZflprL81r8PIV2hGBrO2eAf20=; b=JJr5LJYkLzVdyEA+/tgtMsVgrLLlSSqIObirWqT0/VzCEsHQqZDeZZTxU6tdsQkihs P1VkK7ZJndx2T4zIrEf/wcVmUhQff0p85mzLq1Yby+ZypWo/0lbEk1UllZKAB/dMF0Pa H4F/GM2RtmMdvgv4Y1JsAPzqjdvao6MMpe6ksO/jwX49nzSyPApHitN05aIYT1io0F5x cXD9+Yqs7qP0Da2w8K7ah/14evIPxkLyYKgIgpEUZ+T8lN9o7SUPeY2yYBToBAJkxePQ xC/BxWmRtBvTj8CPMwHUgFmDcADwKWqkwD3pGiKbdQnxk77NRzzZ/fZISj9iC7ovueFl sD3A== X-Gm-Message-State: AOJu0YxyOeGuQL8qWNGOyyiET/sZF7tt++9J8khRTm0vyWoB0pXzlvCX 2nlxqwA50BAQ4JctqtT3NwHmmMl8bUV6a7K2kn2N4g== X-Google-Smtp-Source: AGHT+IFK0LrinqS7IA6R65/qG4S6UeDCwm2yt8shBwbBTiMQGuERm2IEBXZCZdNEi8D9oWvQ9H+WmlhDfAkqhzq1Xos= X-Received: by 2002:a17:907:7813:b0:9a5:ca17:b586 with SMTP id la19-20020a170907781300b009a5ca17b586mr5354706ejc.34.1694710197815; Thu, 14 Sep 2023 09:49:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Thu, 14 Sep 2023 09:49:46 -0700 Message-ID: Subject: Re: closing named directory at command run [q:e: To: Sebastian Gniazdowski Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 29262 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: On Wed, Sep 13, 2023 at 9:55=E2=80=AFPM Sebastian Gniazdowski wrote: >> On Wed, Sep 13, 2023 at 11:06=E2=80=AFAM Sebastian Gniazdowski >> wrote: >> > >> > How to make the bracket automatically closed at command run? >> >> The _dynamic_directory_name completion function already tries to do >> this, but it's overridden by zsh_directory_name_generic. The latter >> needs to define a compadd -R remove_func that swaps the colon for a >> bracket, and use that instead of the -r option at around line 150. > > Thanks, I've implemented like you described, it works. Could you share a patch? No reason this couldn't be in the distributed ver= sion.