From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15041 invoked by alias); 12 Jan 2015 05:58:39 -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: 19728 Received: (qmail 25933 invoked from network); 12 Jan 2015 05:58:35 -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=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=yk4+7Z+F9kN7Of8bBmH07V+zIkMIASVeXimFmUIhsps=; b=IcH+ZEtr5k3g6GhNy2EIbySVUKEZsCaPcIR91HZN/Sn3RA1OiJoABwm5pDS2IdPQ6Z zwpEkh3uyxIlvcqr6MP5TSiJoEeggmdhPmlqeUtLZgaYBSi15jJ6H9RCmIr/jX0dIYcP tg9w2IWVq2rVmaFuYzjwPHYF2OQFl/Kkr4yAbB2O5ZOT5w8yBw9XvVJ33uQPLet/oiyU IwBpKuF0TPJ1Owd5iLEAFvQC99oZDQ+bM0z3RdhCm3TpUXsqwtw91JBYjjGFIHF+Lsqk lwHPmKAZTlpGClmBoSYBczN31wn0JtCDJjZ+BU2iGAlPPVkntfNWqgPZ6+8j2nKHht3e cphA== X-Received: by 10.112.222.135 with SMTP id qm7mr34346197lbc.19.1421042308122; Sun, 11 Jan 2015 21:58:28 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <54B182E7.6020804@gmx.com> From: kamaraju kusumanchi Date: Mon, 12 Jan 2015 00:58:07 -0500 Message-ID: Subject: Re: tab completion sort by modification time To: Zsh Users Content-Type: text/plain; charset=UTF-8 On Sat, Jan 10, 2015 at 11:40 PM, kamaraju kusumanchi wrote: > On Sat, Jan 10, 2015 at 2:52 PM, Eric Cook wrote: >> You can also reverse the order: >> zstyle ':completion:*' file-sort 'reverse modification' > > I confirm that this line is all I needed to get what I am after. But > thanks to all other tidbits. They will all be useful as I get more > experience with Z shell. > > raju So I have been experimenting with zsh and I found one feature that I really like. The shell cleans up the tab completions once it is completed. For example, say I have rajulocal@hogwarts ~/x % ls file* file10.txt file11.txt file12.txt file13.txt file1.txt file2.txt file3.csv file4.csv file5.tsv file6.tsv file7.txt file9.txt Now, I can bring up a list of possible completions by rajulocal@hogwarts ~/x % ls file Completing files file2.txt file4.csv file6.tsv file7.txt file10.txt file12.txt file3.csv file5.tsv file1.txt file9.txt file11.txt file13.txt* and when I enter 12.txt, the list completely disappears. rajulocal@hogwarts ~/x % ls file12.txt file12.txt That is pretty impressive and something I always wanted to do in bash. raju -- Kamaraju S Kusumanchi http://malayamaarutham.blogspot.com/