From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16108 invoked by alias); 23 Jun 2012 18:28:17 -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: 17159 Received: (qmail 2496 invoked from network); 23 Jun 2012 18:28:05 -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=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.160.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=7qsaPGqbLkDsc6MWdlPLdYvyggHZLaA/NBweB8DFWeA=; b=03ocue8CX+DMiQvcbOt2pq9h/rVpxyJgthuPGREAIT2KhgNAk8FtgtYiT7UT6emfFu 7iiX04qjy/pcmk+4it6fT7j3/TmbuPzAP9sBadCjmElmQpA6eHqumHUN6qnK1OlkCOWQ EHnPowRSuJSSbn/ou2Za5uXe+TCsuxIUcvkQu6go309HEQM89alu+MfA2pTW4xiY8V+l 99JvscEM9y0U8+QzzpkqZSMggpNgd94yBVRKhJum5dBQ9ZPs2dAm/9WY54Rc0eVym/R4 ItDlEnlpPzNRIkyLmF+HBB4xqS2e5vV9aY2OeFSu0YFuUzHg4P796DVvNdTJ8p1JgGAC e9Rg== MIME-Version: 1.0 In-Reply-To: <120623111812.ZM13306@torch.brasslantern.com> References: <120623111812.ZM13306@torch.brasslantern.com> Date: Sat, 23 Jun 2012 20:28:00 +0200 Message-ID: Subject: Re: known hosts tab completion From: Mikael Magnusson To: Bart Schaefer Cc: Matt Woodson , zsh-users@zsh.org, d.s@daniel.shahaf.name Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 23 June 2012 20:18, Bart Schaefer wrote: > On Jun 22, =C2=A02:48pm, Matt Woodson wrote: > } > } Let's say I have these hosts: > } > } host01.stage.example.com > } host02.stage.example.com > } host01.prod.example.com > } host02.prod.example.com > } > } now, in my prompt, I will type: > } > } $ ssh hos > } > } zsh will show me: > } > } $ ssh host..example.com > } > } with the cursor right after "host" and shows me a menu with the host > } names in it. I like the menu showing me hostnames, I just don't want > } it to complete everything. > > This similar to the confusion about the default matcher-list that was > discussed about a month ago in the "completion oddity" thread (starts > with zsh-users/17099 if you want to check the archives). > > In this case, though, the default matcher-list does not include the > dot character, so you must have a zstyle that does. =C2=A0Disable it for > this context and you should be able to get the behavior you want. The default matcher-list for host completion does have the . in it, or rather it uses a hardcoded compadd -M 'm:{a-zA-Z}=3D{A-Za-z} r:|.=3D* r:|=3D*', as do a couple of other completions. zsh -f gives me the "magic" behaviour with just compinit, and I don't think you can override compadd -M 'foo' provided stuff with styles. --=20 Mikael Magnusson