zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Matt Woodson <mwoodson@gmail.com>, zsh-users@zsh.org
Cc: d.s@daniel.shahaf.name
Subject: Re: known hosts tab completion
Date: Sat, 23 Jun 2012 11:18:12 -0700	[thread overview]
Message-ID: <120623111812.ZM13306@torch.brasslantern.com> (raw)
In-Reply-To: <CAMcVnE1Q8DU-DhY+5mxOJi4FLD_T4oWajJ+ANoAy9a8GmEF3qQ@mail.gmail.com>

On Jun 22,  2: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<tab>
} 
} 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.  Disable it for
this context and you should be able to get the behavior you want.


  reply	other threads:[~2012-06-23 18:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-22 18:48 Matt Woodson
2012-06-23 18:18 ` Bart Schaefer [this message]
2012-06-23 18:28   ` Mikael Magnusson
2012-06-24  8:39     ` Daniel Shahaf
2012-06-23 22:48   ` Matt Woodson
  -- strict thread matches above, loose matches on Subject: below --
2012-04-04  7:58 Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=120623111812.ZM13306@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=d.s@daniel.shahaf.name \
    --cc=mwoodson@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).