From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23172 invoked by alias); 11 Apr 2015 20:44:22 -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: 20136 Received: (qmail 23590 invoked from network); 11 Apr 2015 20:44:19 -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.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=hWjAAKfMBOdP28FfUVf2mg8u2WvRaEaEhfsf1IO7Yts=; b=BqkIfcYL5qHJNgrgnXioayCWJA5kMwtQKfOoWBZGvhzKJPjH3CAk/SG3OEWiYUCag2 sXh8T+ht3mpSzPaoMPbqId0gWOROyp2HEkf/dPajgmtE06qkHL5dMbQilZRq/A6HAXni +XcuyxwY/sgaWOKIReUKPRMhaIry8AHcG0eOKSMK+yab8vGrAzhrhcrTVhZzEMx9DvAZ iGnt+HQBQD2B6B9aBrnNqm6eZDlShMRxvbdO7utmxQrNf1n0kPvWnfmDh8RT9/yVqSMX bSVm6KChAY4T9oRjtQuAov2Rfw7NGxJJ7jdQNnbr5ut2eP1bV4b/UibQVlZl77Z4tOXe xdyQ== X-Gm-Message-State: ALoCoQmhUjS3hyUkqfXht0753sZrfMWbqh1k5QEMA1qpRwWGsXJQJATeyHrC4D+tugTUO1FWuyM2 X-Received: by 10.202.44.82 with SMTP id s79mr2750974ois.103.1428785054052; Sat, 11 Apr 2015 13:44:14 -0700 (PDT) From: Bart Schaefer Message-Id: <150411134410.ZM27516@torch.brasslantern.com> Date: Sat, 11 Apr 2015 13:44:10 -0700 In-Reply-To: <5528B4C2.3010001@gmail.com> Comments: In reply to Aleksandrina Nikolova "mkdir completion not offering ignored patterns" (Apr 11, 3:44pm) References: <5528B4C2.3010001@gmail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: mkdir completion not offering ignored patterns MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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.