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 21300 invoked from network); 25 Aug 2021 08:26:36 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Aug 2021 08:26:36 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1629879996; b=n8uh1ywIPW/n0Atz17KVyKXX0o/G6NJVymbigpSxhVIn6fvuq0tZKCXT9Dz0K+86J9MGlr0eWf eyR0fQJ5AhbsrW2wtWbllj/5qufUMK5KNbCiNeXOknpxgL6iFaHiorOQvU9vtJj+qLQg4xFHjX 8ojNCCYa/bOk3LLTVcLLPHMYHSRNsfzX2jvH3km1Nl1TGGF8YZM80mUokU74VaTlZs2bud1cBc hxEasZkxwRJvXVScaYdrOLQgWeq/9ohjz20i06tJ7nubqofcdkkpGef01vhFc8sSUPeIn8VDLM d4S4YcsCikiZ6ZNszuQ9INdmHeDw0iL0vUlM4/N8Qn7xHw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f180.google.com) smtp.remote-ip=209.85.219.180; 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-20210803; t=1629879996; bh=SeKxvqcBwijsQJy7RgIkdL9ku6/TOH/rDXC9k5WOn4c=; 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=RbOif1MGU8NDFLxPXp19v82/w7aixVcL828bqMZCLgVuBZU34lZCi3SQwCz2ZO86zUM88QTW11 ikfwnDZ+PT9/SG9xewqOjnvDnT1xWJ48956lLSJTWRGBrceqJfS/tSPtURqPXhP41iErxFjulW NgyvjT09bckYkYJKffqBjZisbj58/HpfBvlrD/qZHwCzhykqCiKGZKrTa20pRFKqVF2pHjhlFw gGaBL5//d2Gnypzh33ywczyuDZrucGEgE0m0ot3J1YbrUt6qpTjzFFR1g9Px1pxpS4PrOTy4yn FIPvtLthu4MVFU0pv6KKqtQQ/fxCP28fc0SqnOnJlazklQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; 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=oa0Ug4tEx9YenhcMABqv8LctEeVKOH/dbsWqE11BfaU=; b=k4nRg4Fx3+hObrLSzgCZXRl9YV SaNJFyBm4hMsFIs4CEYxdzaLcGlKYfsuz7k8ulD4CDqgHXCzTVhH3hGtTGA8UWg2qtYJUWutRxmOp stt/6oxlxeLyxnEC4A+6yOX38ag//On5xfTAcV+UTMN6YoPCllxtr687l5wGwluHBvhqc16efQ8f3 Hjv4XIuRzDFrjoV/pRaFOEau60cUEklAKJdF4fCNR02KtCVd31hvBnnk6mCYN5438G7dYB5izEPoV sknpIZQD561/oJgi//GINA2P3rZ1pehu2tckPas7CL6QMTc4RJ3y4Nw3glNerc4JQUrHZFgmNr0JJ /njokD5g==; Received: from authenticated user by zero.zsh.org with local id 1mIoEz-000DXM-Qi; Wed, 25 Aug 2021 08:26:33 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f180.google.com) smtp.remote-ip=209.85.219.180; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-yb1-f180.google.com ([209.85.219.180]:46830) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mIoEH-000CpF-GI; Wed, 25 Aug 2021 08:25:49 +0000 Received: by mail-yb1-f180.google.com with SMTP id k65so46221021yba.13 for ; Wed, 25 Aug 2021 01:25:49 -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=oa0Ug4tEx9YenhcMABqv8LctEeVKOH/dbsWqE11BfaU=; b=UJ1RemM5tREZPSWWtCldBLoi2Bjt8xvhnXQURqKA3HENnalcECrp7rhapbR7/SaDYi sAwUiA5822iW75gT/EPwahC3NCMl+M8hIrajFfNVlriM5q71Aa1/olqaclLKNa7XdDv0 G1gAZXfcOGeatWkx71e790GwUl3kdhAmJqij18VIa5KtE/s97J/aXvJf6X+TwNP/HaDk Pnqqhqs01vOzlql2OlFX9POJeiMwUvpl3kgqTAFlD9u9JXpPOd3W6jCUgWkK49hJPe4s nN2m1C8Sb3Jtzm3MyaQyS/1MqssqZIEI7uY2HYZmPrxTV9QhRAV+YGpqmN2BM+uSSEqM 7W7g== 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=oa0Ug4tEx9YenhcMABqv8LctEeVKOH/dbsWqE11BfaU=; b=jlHWQFuz3LFU4+Li7W/66QeU1omJAgpsZXQtW3jBlD950ry6n8FnwLLm2nFBtnOHyt 8UutTgEg9b8uujfSJkG8vAYD7W3gI/T2WWE35GwKz/bMdFY5NRg7FeZgFCA55tL4ZtOq cXlU/vCzsWf6HfUhnffzsT2s6iv9QXKflSOEPDH0ve06TNfC+atkFO/2uS/9ElGMIUIp HNKYMT8aM9+6Rf523jgozrHOSTBOqQxWFOzaZzWAnaePZTs6IPHagkzB8GoxItwJvdHU 3g+56I6zLGfE7ZFwjPL6SjlpOkXreRv6haswMVXB0a+fIUvsLZaCEXi4PUI/bzVzImBL cDCg== X-Gm-Message-State: AOAM530j52xK9DQiqpW7mCuno1Zp5ezWxWv8giAeMec01dZaoDYsAuZj i0RueQp5+O+KpNFCVw/XqvTt+9O05cpS3fvoTSy3yCWCSd0= X-Google-Smtp-Source: ABdhPJx2BPE7JnS/cxhgGLqtJEL3DCHP7Mn+vZJdm/t44jhlCzSkt9oXs2tVhIXNlBbg9wu1Nv76+UeBlBb+IfNV0Ng= X-Received: by 2002:a25:6183:: with SMTP id v125mr6430330ybb.428.1629879948386; Wed, 25 Aug 2021 01:25:48 -0700 (PDT) MIME-Version: 1.0 From: Andreas Winschu Date: Wed, 25 Aug 2021 10:25:37 +0200 Message-ID: Subject: How to expeand zsh compctl completions with same prefix (from z script)? To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="00000000000059a3d405ca5dff79" X-Seq: 26975 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: --00000000000059a3d405ca5dff79 Content-Type: text/plain; charset="UTF-8" Hello there , Can anyone help me with a `compctl` grouping autocomplete entries by prefix behavior? I have a zsh setup via .oh-my-zsh. The z plugin allows to jump to last recently used directories. When you press `z name` it autocompletes `name` from the list of recently visited dirs by matching `name` against the list. https://github.com/ohmyzsh/ohmyzsh/blob/6d5b8484ce7198161d5f617c3db9fd7d3833d48c/plugins/z/z.sh#L250 Sometimes the result contains only a single entry, when i know there should be multiple. I have debugged the `reply` variable. This issue happens, if all entries have the same prefix, e.g. `/path/to/dir`, containing dirs with `name` In this case there is only the prefix in the autocomplete menu instead of full list of matched dirs. Hitting ` `again after expansion, triggers a new call to `z` script complete function now with the full common prefix instead of my search query , e.g. `/path/to/dir` When i press which is bound to `reverse-menu-complete` `zsh` properly selects the last item and shows the full list. Is there supposed to be a further keybinding to expand the common prefix for `compctl` after it grouped all entries with a common prefix? --00000000000059a3d405ca5dff79 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello there ,=C2=A0

Can anyone help me = with a `compctl` grouping autocomplete entries by prefix behavior?

<= /div>
I have a zsh setup via .oh-my-zsh.
The z plugin allows to jump= to last recently used directories.

When you press `z name<TAB>= ;` =C2=A0it autocompletes `name` from the list of recently visited dirs by = matching `name` against the list.

https://github.com/ohmyzsh/ohmyzsh/blob/6d5b8484ce7198161d5f617c3db9fd7= d3833d48c/plugins/z/z.sh#L250

Sometimes the result contains only= a single entry, when i know there should be multiple. I have debugged the = `reply` variable. This issue happens, if all entries have the same prefix, = e.g. `/path/to/dir`, containing dirs with `name`
In this case there is o= nly the prefix in the autocomplete menu instead of full list of matched dir= s. Hitting `<TAB> `again after expansion, triggers a new call to `z` = script complete function now with the full common prefix instead of my sear= ch query , e.g. `/path/to/dir`

When i press <Shift+Tab> which = is bound to `reverse-menu-complete`
`zsh` properly selects the last item= and shows the full list.

Is there supposed to be a further keybindi= ng to expand the common prefix for `compctl` after it grouped all entries w= ith a common prefix?
--00000000000059a3d405ca5dff79--