Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: tab completion sort by modification time
- X-seq: zsh-users 19728
- From: kamaraju kusumanchi <raju.mailinglists@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: tab completion sort by modification time
- Date: Mon, 12 Jan 2015 00:58:07 -0500
- 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==
- In-reply-to: <CABpbYadfrByb1efj2vksRNpEVgmQHimK_a0ja9chTthGQh-m=g@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CABpbYafixR-PGF9TpOpUzpAWNFauL2b6Kagq7Ub=Pxir5Rt9aw@mail.gmail.com> <54B182E7.6020804@gmx.com> <CABpbYadfrByb1efj2vksRNpEVgmQHimK_a0ja9chTthGQh-m=g@mail.gmail.com>
On Sat, Jan 10, 2015 at 11:40 PM, kamaraju kusumanchi
<raju.mailinglists@xxxxxxxxx> wrote:
> On Sat, Jan 10, 2015 at 2:52 PM, Eric Cook <llua@xxxxxxx> 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 <tab>
rajulocal@hogwarts ~/x % ls file<tab>
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/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author