zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Always display prefix, even if unambiguous?
Date: Sun, 28 Dec 2014 19:55:14 -0800	[thread overview]
Message-ID: <141228195514.ZM22827@torch.brasslantern.com> (raw)
In-Reply-To: <549F26A7.8020005@gmail.com>

On Dec 27, 11:37pm, Aleksandrina Nikolova wrote:
}
} I hope I made myself clear. How can I "fix this"?

You haven't made yourself entirely clear because there must be some
zstyle values or other settings that get you to the situation you have
so far.  For example, I can't get anything even close to your example
output without at least "setopt globcomplete".

However, I *think* the answer to your question is "you can't."  The
_path_files completion function unconditionally passes the -p (hide
prefix) option to "compadd" with the longest unambiguous directory
path of every file name that it finds.  

I thought perhaps the "fake" style could be caused to create a false
ambiguity that would get you what you wanted, but I haven't managed
to formulate a working example.


  reply	other threads:[~2014-12-29  3:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-27 21:37 Aleksandrina Nikolova
2014-12-29  3:55 ` Bart Schaefer [this message]
2014-12-29  8:56   ` Aleksandrina Nikolova

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=141228195514.ZM22827@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).