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 20663 invoked from network); 4 Aug 2021 16:51:09 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 4 Aug 2021 16:51:09 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1628095869; b=gKSv1xVok3strAdVu6CUcohs7zFJzr7vyYpH/O1HJPhyjNep4s6i4jk+fIm9uQ6xw6vtwCRdKC pba/90wESGbvpzL122tFykVGmxwTNa93fxoh2BlE/ma+zbzR/z3CCAUNJB/5WXSbwfM2CR5i1A IHXwSENoE6pxf1ShZSMRuR0h72eFgFgI0zG3oRPLFZYPBgCDAqtqLoBouQ+KabMIMqVrNgptSF 1nJUs9RvSvHtun4tFOjO++cYo6/euYTAkkvHxjTlCrc7Ny1xhW9VC9r7M4/km+b5mw6zUF3Sx0 AOsWt9SO5YYyVTCrMHAzWDyAttbdeGh6NIAwGGz3ycyW1A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f48.google.com) smtp.remote-ip=209.85.208.48; dkim=pass header.d=gmail.com header.s=20161025 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=1628095869; bh=XDSuTqN6/aSN2Yu2MHJWT9gw3k4l1GrjJQ9XnGcF9eg=; 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=exycQwjSdUQwHGYAp/LVia4kdU3UON9a6pHDBXjQ/G8Sn3nqX2vf+qfp+UB9EDgYw7qafcP2FJ dve4YmeDTLrRE1ocpTabFEneuL+EmfsmLm7I9tGz46T4kJbuVEPS95x6L4WBhfS8i9/hGb243M 0lvjKd2q/Qj3J/JJMEcfed7kLdEp72ExBxkzfe69G2tk74Ns+w2MOtWqrULhAxDBoxUWm7KA4y 9SIzhl9LUt96cYmXm7yJFFiA4V27YuWdx0/Q8U1ncpr8ZlE8nRemXdD7YdAsk0raaMgp7EKxlg qGAjViIpi5APKYVO9MC74/bXobujxFexWPG9CYgVjR/MWg==; 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=0OG2eHEpmv1PH3q4tP85LacvaQQh1gTemYG4zdU5Nlc=; b=BWdYn7oc4pdWw1udjiDYV2lyL+ MLd5ZAP5xX2qBuX44PRd23RLWvz6P/eejpPXkKkQ7fNd8CayrEUdre4Hmsh8lFsPUmJFAAK7lRGoz gSgG1CfSh2koO3TZ6xgBqdqpzgip5ErHTxu9m6XchsSkdUhxAK88p9gTWFi7KllwaFyvqfBQTt2cQ FvurOGURUEvdU5GT9J3v19mBoRKkBLbrF+/Jl5NFNDONtARh5K1RQP8w4gJjMHusxDmJBmg2N09gc PgOJUF9PeuhTGkTHOuaQ1uLROn6N7qtd70Br6T3RAF2Tm28gVR1Gsvr/gU7Lu2bzZp9mRsUd6ISg2 2jphFGZQ==; Received: from authenticated user by zero.zsh.org with local id 1mBK6m-000NA5-M8; Wed, 04 Aug 2021 16:51:08 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f48.google.com) smtp.remote-ip=209.85.208.48; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ed1-f48.google.com ([209.85.208.48]:36577) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mBK5x-000Lib-Ui; Wed, 04 Aug 2021 16:50:19 +0000 Received: by mail-ed1-f48.google.com with SMTP id b7so4415584edu.3 for ; Wed, 04 Aug 2021 09:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0OG2eHEpmv1PH3q4tP85LacvaQQh1gTemYG4zdU5Nlc=; b=tncpWpb9+k9UiL29hkpzZkiFZAv5ReYb4FPVviciRiWAEEqaNF+ae1byonOqqzhRs6 Oy4sVs3cB5vchX1UWhKkcCFSgfpHsYk4Va3NWPLB04DrJ/MM063FJWV5QQCKK/PvqPaj zF4eSJYnmOp29o8n9gILarydi1ozqa4pWHdo4j3qpEnKOlmRh4mEqrDfuLhv35kk8ih9 HtHrA0KcZghZq7sXP6BtV79Cum3vSLL5ld3YjzUQM+ENw4GUYLCKySBNZymx0QRujt9u vlPLgXd5/otedgvHP6aJn8R4u4EkL8GyxqD27ctahC5Ixgb1v7jhydvA3DYdtPAbOIv1 fYgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0OG2eHEpmv1PH3q4tP85LacvaQQh1gTemYG4zdU5Nlc=; b=ATPh7Sy0HOyMT3yoF96SDoTw+yn4iuYLUol4kKMn8VnwNDs9uZJfPoBSo2qygWjWEs 080TbLMd1QAonLPdS5VvnZwohu49YUV8rEg2OzIcRZDdoQm8TarZa5sPonIly3UHcfky aOKTzQmuVrS5osNEHMP4NeghT3WHXteGaPWImf6SBQZ6F8gsc4Z0ATrogsWXodLWYYNC ZO5hrrgn8NpUPirjWGNaI72yuh87hcReU1M3EhBsNleWfnqaH+pCvUArsVSnsNkcjHLM DYubdaTWNWiS8CReSFBPJzPWBPmYpi6YXzJlkY/tQEMTK8hgVBWGKJhU7wMb92bC6xHL rZDg== X-Gm-Message-State: AOAM532GeIN2qLcqe/AymGFq6jGSSqEK9iUDCptqmeZEqd0yYuzy4ye+ aL9BM9u+/+ePwUGEki+YhU37Us8/vI0EnvtkiatmvUAS X-Google-Smtp-Source: ABdhPJxfeAfZxBRFYXBjKgoeX8ACsrQKETkgkJLzubw4yW2fnLzxtJRdcjmioJbtq3Fc07aAEWOxY9nx2n0mrkJfiM4= X-Received: by 2002:a05:6402:514e:: with SMTP id n14mr813464edd.129.1628095817639; Wed, 04 Aug 2021 09:50:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?UGV0ZXIgU2zDrcW+aWs=?= Date: Wed, 4 Aug 2021 18:49:59 +0200 Message-ID: Subject: Re: completion does not insert a slash To: Bart Schaefer Cc: Zsh Users Content-Type: multipart/alternative; boundary="000000000000deec6c05c8be9879" X-Seq: 26857 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: --000000000000deec6c05c8be9879 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ok, my suspicion is that the problem occurs if the completed name can expand to both a named directory and a local directory. My directory structure: /workdirs/projects/myproject/src/python/mymodule/submodule # Define a named directory src=3D/workdirs/projects/myproject/src : src # cd inside the tree cd /workdirs/projects/myproject # try to go deeper cd sr # completes 'sr' to 'cd src' (without a slash) cd src # another tab - emits a bell sound cd src # yet another tab - add a slash: 'src/' It seems like the completion engine cannot choose between the named directory and a local directory of the same name. In reality, they point to the same dir. Is there a way to fix this behavior? I'm using a lot of named directories, they are very convenient. In fact, they are the main reason I switched to zsh. Peter Here, =D1=81=D1=80=D0=B5, 4. =D0=B0=D0=B2=D0=B3 2021. =D1=83 17:45 Bart Schaefer = =D1=98=D0=B5 =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BE/=D0=BB=D0=B0: > On Wed, Aug 4, 2021 at 8:02 AM Peter Sl=C3=AD=C5=BEik > wrote: > > > > As I said, I have a lot of settings in my .zshrc and I don't know which > of them could make the change in completion behavior. Could you kindly > point me where to start or how to trace the problem? > > The place to start is nearly always to first type ctrl+x h instead of > tab, to get a description of the context, and if that doesn't help, > type ctrl+x question-mark in place of tab, to invoke completion > debugging, which leaves a trace file in /tmp. > --000000000000deec6c05c8be9879 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ok, my suspicion is that the problem occurs if t= he completed name can expand to both a named directory and a local director= y.

My directory structure:
/workdirs/projects/my= project/src/python/mymodule/submodule

# Define a n= amed directory
src=3D/workdirs/projects/myproject/src
: src

# cd inside the tree
cd= /workdirs/projects/myproject

# try to go deeper
cd sr<Tab>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # completes = 9;sr' to 'cd src' (without a slash)
cd src<Tab= >=C2=A0=C2=A0=C2=A0 # another tab - emits a bell sound
cd src&= lt;Tab>=C2=A0=C2=A0=C2=A0 # yet another tab - add a slash: 'src/'= ;

It seems like the completion engine cannot choos= e between the named directory and a local directory of the same name. In re= ality, they point to the same dir.

Is there a way = to fix this behavior?
I'm using a lot of named directorie= s, they are very convenient. In fact, they are the main reason I switched t= o zsh.

Peter

Here= ,

=D1=81=D1=80=D0=B5, 4. =D0=B0=D0=B2=D0=B3 2021. =D1=83 17:45 Ba= rt Schaefer <schaefer@brass= lantern.com> =D1=98=D0=B5 =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BE= /=D0=BB=D0=B0:
O= n Wed, Aug 4, 2021 at 8:02 AM Peter Sl=C3=AD=C5=BEik <peter.slizik@gmail.com> wr= ote:
>
> As I said, I have a lot of settings in my .zshrc and I don't know = which of them could make the change in completion behavior. Could you kindl= y point me where to start or how to trace the problem?

The place to start is nearly always to first type ctrl+x h instead of
tab, to get a description of the context, and if that doesn't help,
type ctrl+x question-mark in place of tab, to invoke completion
debugging, which leaves a trace file in /tmp.
--000000000000deec6c05c8be9879--