zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Bug#465284: Expansion of completion choices expanding to the same command don't complete
Date: Tue, 12 Feb 2008 20:03:33 -0800	[thread overview]
Message-ID: <080212200333.ZM20698@torch.brasslantern.com> (raw)
In-Reply-To: <20080213023034.GA3545@scowler.net>

[Trimmed distribution to zsh-workers; Clint please forward as you like.]

On Feb 12,  9:30pm, Clint Adams wrote:
} Subject: Re: Bug#465284: Expansion of completion choices expanding to the 
}
} On Mon, Feb 11, 2008 at 05:49:36PM +0100, Loïc Minier wrote:
} >  I get the expanded command without a final space:
} >     debcommit
} >  hitting tab a second time reveals that zsh sees two choices:
} >     % debcommit<tab>
} >     external command
} >     debcommit -- commit changes to a package
} >     alias
} >     debcommit
} > 
} >  I would like it if zsh would only consider the highest priority
} >  completion choice for commands as obviously I can't invoke the
} >  debcommit binary but only the debcommit alias here.  Or it would be
} >  enough if zsh would append a space if all choices expans to the same
} >  thing.
} 
} This sounds very familiar.

This can be controlled with styles.  If you tell zsh to put external
commands and aliases in separate completion groups, then it doesn't
attempt to resolve duplications across groups.  If you let it put all
the completions together, then it de-dups them.

You can't, at present, have it both ways.


      reply	other threads:[~2008-02-13  4:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080211164936.GA7200@bee.dooz.org>
2008-02-13  2:30 ` Clint Adams
2008-02-13  4:03   ` Bart Schaefer [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=080212200333.ZM20698@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /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).