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=-5.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7242 invoked from network); 22 Apr 2022 16:28:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Apr 2022 16:28:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1650644909; b=g9siu2TKJaxDRPEoO9JyVLS+UlixYH9BBYWaRDa/grRbA4poJWeiqSNwtyQURu2/TuxdW1Y4ob 6MiFYw3oXKK42ssJh9EorlsTQzZF50YKxpBBeAoBFiXpDCvlLU95LKf291TqqLvgZdJxQA/6Ka oFjOXSygNOpQ60/ZN4aPjkCbVTtXK3lrsYpw7zCSc0MBdSx4QuC1EHF0Llv+OS//gZvfs8lBAP FlyR2j45p/iJZaE4b9uiyVRS82ZmpnYCufDU1v5X9BXw5G17r2RbKB5seatxMCRn6ihYE1Enuc HH6DQnFkoJ5VfCCjVVJ3SaQCCEErn6obqfpcw+LKw06cSw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (p3plsmtp16-06-2.prod.phx3.secureserver.net) smtp.remote-ip=173.201.193.64; dmarc=none header.from=rayninfo.co.uk; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1650644909; bh=rUPZQKJe8+khzCpGs85VSocYGssrmivPITpmUXWAWIY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=hOybFWrLTJ5ZJ8vtRmPRqKTPCI1ZG9BnRsFl12ZINPUOWAkkiJ6tInSny/rWhmhz0GOI7+RGTd WIrOVLPb9ov9Om33VAwe403tyaWdQzTc/r+/34PD3UGMd319d1/0rzDWKoH5RnDAspA/VyOApJ mWEo4zPmRaIfLyAW7RhZLgJvWYW4CwB4LW73FhVI2HCsh15c5y0HAwf98R+jZb1OMSGljN2Nwt dZObOVPppBGRpcZkvzDEq9SkhvpiGT9iTaWcZHQrdHq/LYozRguhsnmHS/q+SaS/4ijb//lmjh CPYu7gjXkOPygeYFS/eygmxL5UAM0NTDNlbxlfs92KD7Qg==; 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:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=bVu2WBvXOaX8KH0RVnHi5S2ygaxW7Xfz3a7J7tGc//Q=; b=CRtmfUYjm79iJu/9I/WjXv7BhO s5y3JIrdmFPAyCP4BbMLEaLpgMmKneLJsis7jL4Iih8ZGk4tlDbuk+hddp5Z4RNXGCPgS2imCf+3O CGPD1A88CT3QTp4xSjefcjtbUYNuBl08SNfIXh1E2uwU96h5MQFa3X1WhORVJDXZoaPX5425sEskB L3Em/32yp1Q2gCTVrNJVr+uQg8UtqMRHThKPU7ff/gG+rgW/QmrHj2us9nM7GtcAsYp+rIPw1qO7o c2bBVhYDAEIpWC1G1re7OOtj6PMMQHWi6x5+tqGqaQApyBHjjV2epkeLNIj9y4WajeQeI77xIyO+p 8mp/Hp/w==; Received: from authenticated user by zero.zsh.org with local id 1nhw8y-000Mbr-5V; Fri, 22 Apr 2022 16:28:28 +0000 Authentication-Results: zsh.org; iprev=pass (p3plsmtp16-06-2.prod.phx3.secureserver.net) smtp.remote-ip=173.201.193.64; dmarc=none header.from=rayninfo.co.uk; arc=none Received: from p3plsmtp16-06-2.prod.phx3.secureserver.net ([173.201.193.64]:52508 helo=p3plwbeout16-06.prod.phx3.secureserver.net) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1nhw8F-000Lu9-1K; Fri, 22 Apr 2022 16:27:44 +0000 Received: from mailex.mailcore.me ([94.136.40.142]) by :WBEOUT: with ESMTP id hw8CnKrwettEqhw8DnZiCz; Fri, 22 Apr 2022 09:27:41 -0700 X-CMAE-Analysis: v=2.4 cv=aMc1FZxm c=1 sm=1 tr=0 ts=6262d77d a=s1hRAmXuQnGNrIj+3lWWVA==:117 a=1XUAoriuO2rjmCQC64jSlQ==:17 a=4OHr2usCQUQA:10 a=IkcTkHD0fZMA:10 a=z0gMJWrwH1QA:10 a=22Ro6XbQAAAA:8 a=9mOKPicYv9wIcksBhpAA:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=QEXdDO2ut3YA:10 a=p1RiBf0vZFgkX3Jmbd9N:22 X-SECURESERVER-ACCT: david@rayninfo.co.uk X-SID: hw8CnKrwettEq Received: from [95.145.222.163] (helo=[192.168.1.231]) by smtp07.mailcore.me with esmtpa (Exim 4.94.2) (envelope-from ) id 1nhw8B-0005DM-Dk; Fri, 22 Apr 2022 17:27:39 +0100 Message-ID: Date: Fri, 22 Apr 2022 17:27:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: How to accept a particular directory during directory selection for further tab completion Content-Language: en-US To: Mikael Magnusson Cc: Zsh-Users List References: From: zzapper In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailcore-Auth: 8308408 X-Mailcore-Domain: 840527 X-123-reg-Authenticated: david@rayninfo.co.uk X-Originating-IP: 95.145.222.163 X-CMAE-Envelope: MS4xfBELxzcgRHyCKYijlLndNlCk6eMb1uAVPrTiKqOI848/RTQ76YQXwX5BNzEvBgW8out1ZPgXOjk/R/ZoDE0yWEAFk/jWFAVj579xB2ig+VHR+6mEQTxl MyO8vkFYWJ1T0dvFUukgmYmV4AkbNB/+URwL1dMKz0MlJe82YG+2ggfuZB5iKtiMkAqEVzk+OTQnLw== X-Seq: 27693 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 22/04/2022 12:05, Mikael Magnusson wrote: > On 4/22/22, zzapper wrote: >> Hi >> >> cd aa >> >> aaa/ aab/ aac/ >> >> >> I want to accept aab/ then carry on completing >> >> >> I do this by manually deleting and then retyping the trailing slash. >> >> But I guess there is an official way to do this? > If you press a key bound to accept-and-infer-next-history during menu > selection, then it will be accepted and menu selection will be > automatically started again. There is no such key bound by default but > you can do > bindkey -M menuselect whateverkey accept-and-infer-next-history > > manpage entry: > accept-and-infer-next-history > accepts the current match and then tries completion with menu selec‐ > tion again; in the case of files this allows one to select a direc‐ > tory and immediately attempt to complete files in it; if there are no > matches, a message is shown and one can use undo to go back to comple‐ > tion on the previous level, every other key leaves menu selection > (including the other zle functions which are otherwise special during > menu selection) > > > relatedly, accept-and-hold (or accept-and-menu-complete, they do the > same thing here) is also useful: > accept-and-hold, accept-and-menu-complete > accept the currently inserted match and continue selection allowing to > select the next match to insert into the line > > If you press this while several levels deep, you will insert one of > the matches to the command line, and stay in the same directory in > menu selection so you don't have to navigate back there to insert the > next file you want (or slightly more optimally, copy-earlier-word and > erase to last slash) > MM thanks for the detailed reply