help / color / mirror / code / Atom feed
From: "Peter Slížik" <peter.slizik@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Tweaking the completion engine to prefer some completions
Date: Tue, 13 Jul 2021 12:01:45 +0200	[thread overview]
Message-ID: <CAC-uhUA9=TxbPKup6GwhqBEj=Sf7Q9qHwq7mqwLp2XRfo7EZWg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 875 bytes --]


I have a few applications installed on my system, with their names sharing
a common prefix.
Now as the apps are company-specific, let me invent some contrived names:

*messageedit*, *messageview*, *messageformat*, *messagesend*, you've got
the idea.

Now, in may daily work, I'm using only one of them: *messageedit*. The
other are used... well, almost never.

Now, if I type *mess<Tab>*, the name gets completed to *message* and the
completion engine waits for further input.

I would like to tweak the completion in such a way the typing *mess<Tab>*
completes the input to *messageedit* and ignores the other possible apps.

Can this be done in a positive way (by naming the preferred application) or
in a negative fashion (by prohibiting all unwanted completions)?

What are the setting options to do it?

Thank you very much for the answers!

Best regards,

[-- Attachment #2: Type: text/html, Size: 1222 bytes --]

             reply	other threads:[~2021-07-13 10:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-13 10:01 Peter Slížik [this message]
2021-07-13 12:00 ` Oliver Kiddle
2021-07-13 16:41   ` Peter Slížik

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:

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

  git send-email \
    --in-reply-to='CAC-uhUA9=TxbPKup6GwhqBEj=Sf7Q9qHwq7mqwLp2XRfo7EZWg@mail.gmail.com' \
    --to=peter.slizik@gmail.com \
    --cc=zsh-users@zsh.org \


* 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


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).