zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Timothee Cour <timothee.cour2@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: how to make zsh tab-complete $path after dot?
Date: Mon, 09 Dec 2019 15:46:28 +0100	[thread overview]
Message-ID: <20019-1575902788.983119@r2hr.BVKK.Yt6R> (raw)
In-Reply-To: <CANri+ExCn3KF0FKihb1-HfHiL_O6dR44azLS8JkwiX83BW+0yQ@mail.gmail.com>

On 6 Dec, Timothee Cour wrote:
> echo $nim_devel_X.<TAB>
> nothing gets completed

That depends on your setup. A default setup will expand to both
possibilities.

> expected outcome:
> would suggest filename completions:
> $nim_devel_X.bak1
> $nim_devel_X.bak2

For that you would want to enable the _match completer. Completers are
configured through the completer style, e.g.:
  zstyle ':completion:*::::' completer _match _complete

By default tab is bound to expand-or-complete which does some basic
expansion of things like globs. So you may need to redefine it to just
complete-word:
  bindkey "^I" complete-word

There's also an _expand completer which does expansion but where details
of how it works can be configured. For either of _match or _expand you
almost certainly want go through the documentation and configure the
relevant styles.

Oliver

      reply	other threads:[~2019-12-09 14:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-06 19:45 Timothee Cour
2019-12-09 14:46 ` Oliver Kiddle [this message]

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=20019-1575902788.983119@r2hr.BVKK.Yt6R \
    --to=okiddle@yahoo.co.uk \
    --cc=timothee.cour2@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).