Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: globbing index*
- X-seq: zsh-users 15856
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: globbing index*
- Date: Thu, 10 Mar 2011 00:56:18 +0100
- Cc: zzapper <david@xxxxxxxxxx>, zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=SwSz2aCgEakikyvnz+ImU8j0mg6V4sdUqFMng9kY0eg=; b=JudD5CvUcrxmzTlJ253Cia5zqsYHQX8VtSZg2/OnS68MY+R7Ku5hrVtLdalYDyLUl3 3t4LFiEOng6H08oh+b3/y1Vzqr8+zup6QzAxfEl7BUP+/SyNMjysG22TlVRuDbAo8rhW TaC8dsZ4hA87bfYebuX26i6r88MOr0pvUdFks=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=i8h7bGM8SAKLaDIE8f71yalMMPXeHq/s57628gVYakRgHlxVeYeR/irR/AEM1ZsGDj uwlWaUiLzaaNRuBLYqEzJAcua8xlFPPwodaFoHS7rKqW/vdXPSl6/9PqhxCkGWrKeHDh 063TiD/sQVjRuA3V2lHUluA60WQx93PA5YgQk=
- In-reply-to: <AANLkTin3yfp4E9OOrAsuCSaauH4B=vahjOb9Z6bVL075@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: <Xns9EA1E1DE5F989zzappergmailcom@80.91.229.10> <AANLkTin3yfp4E9OOrAsuCSaauH4B=vahjOb9Z6bVL075@mail.gmail.com>
On 10 March 2011 00:29, Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx> wrote:
> On Mon, Mar 7, 2011 at 2:12 PM, zzapper <david@xxxxxxxxxx> wrote:
>
>> so when I type
>> > diff index*
>> I can assume that I will get, (but it will always be as clear)
>>
>
> I have Ctrl-D bound to delete-char-or-list, so I just type Ctrl-D after some
> glob* item to see what it will expand to (without changing the
> command-line). The only bad thing is if I'm not at the end of the command
> line it obviously will delete a character instead. Using tab-expansion
> followed by undo (Ctrl-underscore) is useful when I'm in the middle of the
> command.
Note though ctrl-d won't show what a glob expands to, for that you
want list-expand, not list-choices (which does what ctrl-d does
regardless of where on the line you are).
For example if you have *t and press ctrl-d, you will see things that
don't end with a t (because completing with glob_complete set will
always insert a * at the cursor), while list-expand will only show
exactly what it matches, and also works independently of
glob_complete.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author