From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17252 invoked by alias); 11 Apr 2015 22:53:09 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20137 Received: (qmail 1574 invoked from network); 11 Apr 2015 22:53:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=wzBIGQyWeuaKzBiejUN7y5C47loWDNGUMvuElBWsEMk=; b=E4XH9NbXm7UYh/sTI7pxoy/UfpsCyONFHaJCl+Q32CSm87wlxTVKMx/Ccz16pCqy8O 5bAUbKcmy5JlxJLvikbfZlNSoWASZUZZ7c4xBvtU6B1uedWP0WcV0tK0ckcfBYx6lwMZ 4XZeucnT/9JEl+RiP69z3uU7DjM9s5iNYtxnQhu4fRhfPgxtYj94AyuO1dEMhg9c9eGT yNLSLd7PgZMZlUgiaYN//tae8VwcI1BkyR+b+uSwwco8T53W8jd8D4h0sXIEndF3T+Bp Y0D0NwhL3vjeovhMJpBmaPt1BwBNuijcJW62ypKJsVUeZG8KKW3tPUFrlPCncqz+j4Fn tDYg== X-Received: by 10.70.56.4 with SMTP id w4mr14132065pdp.148.1428792783308; Sat, 11 Apr 2015 15:53:03 -0700 (PDT) Message-ID: <5529A5C2.3090603@gmail.com> Date: Sun, 12 Apr 2015 08:52:50 +1000 From: Aleksandrina Nikolova User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Bart Schaefer CC: zsh-users@zsh.org Subject: Re: mkdir completion not offering ignored patterns References: <5528B4C2.3010001@gmail.com> <150411134410.ZM27516@torch.brasslantern.com> In-Reply-To: <150411134410.ZM27516@torch.brasslantern.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi and thank you for replying! Your suggested solution changes nothing for me though, not sure why it works for you. If it's of any importance, my zsh version is 5.0.7 On 12/04/15 06:44, Bart Schaefer wrote: > On Apr 11, 3:44pm, Aleksandrina Nikolova wrote: > } > } Greetings, I am trying to make mkdir behave like similar commands (in > } particular, cd) but I can't seem to figure it out. I have set the > } completion system to ignore hidden files and only show them when there > } are no other options (no other files in the listed directory or I > } explicitly type . at the beginning). It works perfectly with all > } commands but mkdir, which simply refuses to offer hidden files, ever. > > As far as I can tell, this is happening because _mkdir calls _wanted, > and _wanted forces completion to be limited to the first set of matches > for the desired tag ("directories" in this case). > > If I do (after compinit) > > autoload +X _mkdir > functions[_mkdir]="${functions[_mkdir]:s/_wanted/_tags directories;_requested}" > > then things seem to work as you are expecting, though I'm not sure I've > tried all nuances. > > I'd like feedback from other zsh-workers on whether this is the right > change to make permanent.