From: Eric Cook <llua@gmx.com>
To: zsh-users@zsh.org
Subject: Re: Decreasing needed TABs for completion
Date: Thu, 30 Sep 2021 10:49:07 -0400 [thread overview]
Message-ID: <33ab7aa5-42e5-7956-cd2d-783a49b672fb@gmx.com> (raw)
In-Reply-To: <CAG3b68F6DkABQrvhTX8C3uwDkgnsEA8nA8thVvoK0fnpt_aRDw@mail.gmail.com>
On 9/30/21 10:09, Gürkan wrote:
> Hi,
>
> When using tab completion on app-parameter (e.g. not for "cd"), I'd
> like to automatically "prefer" directories if possible.
>
> It's kinda hard for me to explain, so please consider following tree:
>
> a/
> something.py # <-- a file
> something/ # <-- a directory
> something_else.py ...
>
> When I do "vim a/so<tab>", buffer becomes "vim a/something".
> On second <tab>, it shows "something.py" and "something/" as valid
> options (without changing buffer).
> On third <tab> it selects first one, but doesn't remove the suggestions.
> That is the level (on 3rd <tab>) I'd like to land with first <tab> if possible.
>
> Is there a way to achieve this?
>
> Thanks,
>
zstyle ':completion:*' list-dirs-first true
setopt menucomplete
prev parent reply other threads:[~2021-09-30 14:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-30 14:09 Gürkan
2021-09-30 14:49 ` Eric Cook [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=33ab7aa5-42e5-7956-cd2d-783a49b672fb@gmx.com \
--to=llua@gmx.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).