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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31185 invoked from network); 13 May 2023 17:31:23 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 May 2023 17:31:23 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1683999083; b=k4D1hk9db1OvTHB/b/CfVwWz0qTmPkDJPzNh+P3XcEFh9KJGKsBmjJS2vBiulzWFstC7w6yQkl dXggzOjE5u7WqjpDh4R9w6KYYlhN5sUt0mm7fnWheMn9GzEC/S4RK5wGpAFrOZ545VSoWmZvZC z2BkAUqXXCRmqL4pCpba9vx6L9tbiDk5Ubh5lkg5ogY2yD+mS57Hpkqz2tCs+uEb0+AhfOzBPw aqvUxOuBnEQ39vZjPt4AF/iWpCsTGNPJUdGiETK5//p06LeU/uvSzwdsUxIQPXSw8j9dGaFxLL AUecZgwgVrP8oJ73rzfePstz/+Ns2xLNE5maK5rEa/BU2g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f42.google.com) smtp.remote-ip=209.85.208.42; dkim=pass header.d=brasslantern-com.20221208.gappssmtp.com header.s=20221208 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=1683999083; bh=njm5wCapVDQ9fQJ9NV+d9O6S4ejPWzhvBI/pJzXJcKE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature:DKIM-Signature; b=W7oxEH3vJqRfnG7tlBy5DFwbUBRsJm1WmEqeRUNmDj24nq26qTRAXTj2GTTEb8iGY2//xikuk/ svrXF/jQjE40prVVL9Ge8g/t+/+WV7AiNi4Ckf7tBxRWQtvOyDTsyJZfAuSC1yawqHRanPG24v qka1yvnYpgFB7bOAJmWNZMPaFO8Clcg0LBGi72AhJDe7khc70DT3SQz5v6W9NokGdcJ+qlRks7 91f6yBQDH9heaGBRkCi35v5plLZp2jQql0GVv9OLBZhFExwtdx5ZaLEiTdkEdikXA3q7KzLlG7 zRC5hh9Q2G8k7B7fcgqvSYxNhzoNVewEAQIsaWwKzMqfZQ==; 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:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=gW49Hq48Dd+AtrS5fM9qTUmiMrVZ6EbZIqzN0/MfWW0=; b=RrbcZm68TynihpfjLdijzfbXE/ J1AY69WlEvVXvolEflnXOFhMMr8qkTauFMxZ2IOmxQARokZS5D6oBQzhqnhnF+PRsOUOiQhE2llh6 CKvhrlx0ehTqeMNp3kGhCLFks1KAdo0XqCRsTXInSaaCBYAlGJJh7aABxT40FmzyGcLq4ASc+Kl2h uzQYpopYkZn3rgHVtgcjFlnuZ/Fh3nIFEap9/R9U1AO9OgnDKURxwhgw4a6o4sHA142vbzhK3kR2V gUBr0pSxBmkGXHm246o9vANpBuoW9NfjhzytHObyqxOHMO/GAd+Ef/qyBHfslwnJZNHFlET7zuYee 2cJwvouQ==; Received: by zero.zsh.org with local id 1pxt5W-000ARQ-5L; Sat, 13 May 2023 17:31:22 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f42.google.com) smtp.remote-ip=209.85.208.42; dkim=pass header.d=brasslantern-com.20221208.gappssmtp.com header.s=20221208 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f42.google.com ([209.85.208.42]:57809) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pxt5E-000A8k-09; Sat, 13 May 2023 17:31:05 +0000 Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-50bc2feb320so17111662a12.3 for ; Sat, 13 May 2023 10:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20221208.gappssmtp.com; s=20221208; t=1683999063; x=1686591063; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gW49Hq48Dd+AtrS5fM9qTUmiMrVZ6EbZIqzN0/MfWW0=; b=X/AiIjytLm+vjgL598txNDeSL/8tdWyKPDn1Q8AmlN6JIaHjCWOruAmikAGaq0xXFI /eoZrgO+7VnA9bL+0CJVHu9sc46fMIKn2Jnxj7A6BC9Cxvd4tjHLjNOkt8M9SaILJSof FR4QmpPJAgkUgVJdKgosV1MmHPhJWAWUEypkOtFHojJQ1REGm0YRpBNUI+KZ9Y5Ea3uG Kmb4Yk+IY7uFUwvid+T6e7xbH3vcMsetmg/5MN1A9i6WSuuf0pDTBHhENYV/dlZ+R32P yEMZhtkhkPPGnRrRjF29cgtL0TpXw+oIAG+M9iBC7PLYLxQarn8WwZNHJAepn1iAWBu6 vJRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683999063; x=1686591063; h=content-transfer-encoding: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=gW49Hq48Dd+AtrS5fM9qTUmiMrVZ6EbZIqzN0/MfWW0=; b=KbGtQlQoXe/epiAN1QCvFVH1PyZv4R8h/dmskks5UwSJ734p6rHwubf2YEzGXUD44B 9iwc+xnkzmNdofVecZvK0i3s9RgcQnaVEzG046cz6CNnSamQ2EgSg4VFGZtRUMLUuxMY lhZrxXu4IpmTnFTmQZ6xbFwYD85whFdQycMRFkPG1IWuBbA5Z0b1Zjl1GriOFy84doMb +DpxFOB6yvkvURmjjhj+U3Rid05SdtNrKfn+M5VRJ6b8sXEtgeuVYYVRm7EEdjQL2USv Y2PI4mP5+m5+yjk1pMpjEucC5xg1ozrsNTPJP1v8IJdJG01HWR6KI0WpTdGXrQXXUwiI JYnA== X-Gm-Message-State: AC+VfDwmzlmFXiAmNqu8f3vgMR9EXTncZqUDW36v/GyCmS2ulfu5UkI/ QqZcxuRLC7yLQ1M/zFm9uQS56vQoR79sITvpu9Guf+RmJgyUaLCaOHE= X-Google-Smtp-Source: ACHHUZ7Rwhyvxmax9Iz1SvC+/iuKrFKicOKS35A94T84kNftc3CCvGGnlc0RnIqm/X5aaeWANTmpY/lJwwg/WstmTXY= X-Received: by 2002:a17:907:1c9e:b0:96a:9c6:d75a with SMTP id nb30-20020a1709071c9e00b0096a09c6d75amr14856801ejc.24.1683999063401; Sat, 13 May 2023 10:31:03 -0700 (PDT) MIME-Version: 1.0 References: <20230505114154.76547-2-marlonrichert@users.noreply.github.com> In-Reply-To: From: Bart Schaefer Date: Sat, 13 May 2023 10:30:52 -0700 Message-ID: Subject: Re: [PATCH 2/3] Make dynamic dir completion easier to implement To: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51742 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Sat, May 6, 2023 at 10:28=E2=80=AFAM Bart Schaefer wrote: > > Not necessarily asking Marlon to do this, but if this patch is going > to be included we need to repair these two functions: > > Functions/Chpwd/zsh_directory_name_cdr > Functions/Chpwd/zsh_directory_name_generic Attempting to extrapolate from Marlon's edits to the doc example, I think the only part of these that really needs to change is the "if completion" branch. However, I'm not a user of the "cdr" functions so I'm not sure what to do with the former, or if the "Can't complete in the middle" warning still applies in the latter (and if it does, is that a problem with Marlon's patch?); nor if the explanatory text passed to _describe in either function has to move somewhere.