zsh-users
 help / color / mirror / code / Atom feed
From: Gürkan <seqizz@gmail.com>
To: zsh-users@zsh.org
Subject: Decreasing needed TABs for completion
Date: Thu, 30 Sep 2021 16:09:18 +0200	[thread overview]
Message-ID: <CAG3b68F6DkABQrvhTX8C3uwDkgnsEA8nA8thVvoK0fnpt_aRDw@mail.gmail.com> (raw)

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,
-- 
Gürkan


             reply	other threads:[~2021-09-30 14:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-30 14:09 Gürkan [this message]
2021-09-30 14:49 ` Eric Cook

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=CAG3b68F6DkABQrvhTX8C3uwDkgnsEA8nA8thVvoK0fnpt_aRDw@mail.gmail.com \
    --to=seqizz@gmail.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).