From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8404 invoked from network); 13 Jul 2021 10:03:06 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Jul 2021 10:03:06 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1626170586; b=hFiEMDcqD9VvBNxDwCH+L4HOlXI9nO3+iId7MH0JSUf/psBAEAyIIKLmUgMF4U25MdLMHEbRhO V7eWOHHeaxlBXTxSAI8DVhweXBtNVrQhRUogiDnZ4u3JWwH221wvTvvf29ppvFTctwhg2yj/DI H1lKV1c9qBPzsyC7FhmqhBF272IqQRcr3VcaT3dS0zwRu3b3WCz+kl2gxgzyyxWUaa69AJEnf7 DaprLymyiWkhzZcuQJ3yxRmcd+k87u4IkZXkmcn/q61p7PGOdhKYsLqRDYhj8VkXp6KRg+W4uY smxfAo3/9fporeisRpk/vRIQlFyzO5X6JLzjffeMcy4JTQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-wr1-f51.google.com) smtp.remote-ip=209.85.221.51; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1626170586; bh=eGbqGXdzXCTonQWRr4Sl3Z4kCzwYFQm4pAXd6ZHyFsM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=JcRyNInQO5dfzq8xzs+lJaycW7cK95HYshq416J4WHPSn7yjJxB+P83WVr0osyCOqe0lxGwI3H pMD30XrhUw6fIGWJYUCWRtUFwmW5ou0R4B8gxFefwUPOcPYtshFJ0BrEPVLmxvMYRaL9Qos3zm CHd/nEbNTIZ8Mwf60PE5dkoCw9n/xejkNHuDKlvH5/n7OD+E1Xvq9VA34EIB+DfRoQmnNkdTKx 5+000wt5Vvp/AJb73bPsaHM4oQoDbNJ/ZNbVNuvULklH+DiIQlLyBeBX8bzqcrBVEbkFtJ2gg3 1je4DPXHHxbHQ/h2gSMMNLQLgOp1T+LA8w757xq+VW41jQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=eGbqGXdzXCTonQWRr4Sl3Z4kCzwYFQm4pAXd6ZHyFsM=; b=kUZ/Ru8ZeclOcWQHV9zYFKU3UX XHq6AX9/FKlqM3RgR/1/K9AnWLKwG0SzZVMzq4SKLbC5tRy7GO27UuoR1c3Vwq0fLYqMPv+z0kaxp 99o2QiLZ8Wy/KKUSUlP3dry0pgH0yMhyDcGWIW2WmEgMfWugX29rKiWhJ3UjmeGtaUOaF9a78Si4K U0TNCvi9FZOMkOBfecGbei3B3TFnXmzbzkyPAemyxANnb0z4wu8rVbFfisrDvu0dZxqZpVj4YA5Wz lCZETYzoEfABCZ4je5GLtK3N8SuJM02GyVeiuhLbF1aCciJqC3XkmvV+nlYarVxasBWvGvkcyooWS 0EEMNw9g==; Received: from authenticated user by zero.zsh.org with local id 1m3FFp-000FLq-91; Tue, 13 Jul 2021 10:03:05 +0000 Authentication-Results: zsh.org; iprev=pass (mail-wr1-f51.google.com) smtp.remote-ip=209.85.221.51; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-wr1-f51.google.com ([209.85.221.51]:41941) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1m3FEn-000Eay-OU; Tue, 13 Jul 2021 10:02:02 +0000 Received: by mail-wr1-f51.google.com with SMTP id k4so23369779wrc.8 for ; Tue, 13 Jul 2021 03:02:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=eGbqGXdzXCTonQWRr4Sl3Z4kCzwYFQm4pAXd6ZHyFsM=; b=FoTpCxOlWpnMoi88GLIomyYApPvqFSzEYQoS6pSXH31M5C/5MlyO0EYqgey6twtd1i pVGQinaliFtJq870opAFu5aPhIz0UlPzlU4nf4HAFVuEiAL/JKn4hzq6ZBJ+jLzr1Zhr fkUuwcMkgX+gwmG35mzg+M9UbZr/WHrYvM00IiG5XGF9tr3JwZ2jWeODGS4dpcvI0qby y0y5FbE2fmyNSy/Ok2WRvWHF2asqtFDkeyABtf7dXNDhkL8JI2oFjt1dBwceawaHHMLo JoxImmpCNBTubG9Zg2Xs1MseDl04c/DnGe/88GFzf6GSRuYpOm/SMyCtOxX6vMvsvNm3 h0Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eGbqGXdzXCTonQWRr4Sl3Z4kCzwYFQm4pAXd6ZHyFsM=; b=SiZPpXkhI0CfdFyDoAmQKm+WSsHpYihAK08xHgItnlgol1Kbr1QN5lLbKM89JJxR4M okakCqZtdZ5Xtugz3AMfR/gBU8jDEk2rqWtqNInJN+tAZtqO3UY89cvzEkGpx5OHLlQ8 VikhD0OpjjnCoZvLQ3hWEPDGm19ZtXa+c56NTLIlt0OK3QaNMkV1bS5li4qg76lsVNee qwjogcCzuZO24zkYFds++S3pl7Rf8aPsp3q8ga0Wor4yeyQau0tOj48GboVYYAYpjqlf K4c+ex7hA/oTlPHYcbuwxpXabpDPWOfvkgnUo5sK3ZJ/cqzPpngYidaWGrY+fceNtbH5 1PPA== X-Gm-Message-State: AOAM532HbRU9lDphNLmxZaAiDaSYB5LzQj+rfRfpP0D2vkyCKR94O1QW CYOlw214UgxuG3tHmtpN57rF7B5eIlP28GRvXyhXpEEbvyE= X-Google-Smtp-Source: ABdhPJwu6Gvc46XTzkxhGj3Jo25b+CEyvPxZmSatidK3Z/9HkclH21aUu9ohx2ctOXzPoZHHD+I/zZN48JsIpv5fFvw= X-Received: by 2002:a5d:408d:: with SMTP id o13mr347926wrp.246.1626170520994; Tue, 13 Jul 2021 03:02:00 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?UGV0ZXIgU2zDrcW+aWs=?= Date: Tue, 13 Jul 2021 12:01:45 +0200 Message-ID: Subject: Tweaking the completion engine to prefer some completions To: Zsh Users Content-Type: multipart/alternative; boundary="0000000000003f84c205c6fe54ab" X-Seq: 26785 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --0000000000003f84c205c6fe54ab Content-Type: text/plain; charset="UTF-8" Hello, 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*, 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* 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, Peter --0000000000003f84c205c6fe54ab Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello,

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

messageedit,= messageview, messageformat, messagesend, you've g= ot the idea.

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

Now, if I type mess<Tab>, the n= ame gets completed to message and the completion engine waits for fu= rther input.

I would like to tweak the completion = in such a way the typing mess<Tab> completes the input to m= essageedit 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 y= ou very much for the answers!

Best regards,
Peter
--0000000000003f84c205c6fe54ab--