zsh-workers
 help / color / mirror / code / Atom feed
From: Jun T <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: adding '-p precmd' to _normal
Date: Tue, 29 Aug 2023 12:55:35 +0900	[thread overview]
Message-ID: <9A3B6734-18A2-4F18-9536-C8B5A9C535BA@kba.biglobe.ne.jp> (raw)

In workers/52037⁩, I replaced '_normal' by '_normal -p env' 
in _env (and similarly in _watch), so that only external
command (and its args) are completed.

But I've noticed there are many (about 15?) completion
functions that should complete only external commands
and may require the similar change (adding -p precmd).
Examples are _chroot, _chrt, _screen, etc. 

In some other completion functions (_dchroot, _truss, etc.)
'_command_name -e' is used for completing external
command and '_normal' is used for args.

If anyone knows any reason that this two-step method is
better than '_normal -p precmd' then please let me know.

Otherwise I will use '_normal -p precmd' in _chroot etc.

             reply	other threads:[~2023-08-29  3:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-29  3:55 Jun T [this message]
2023-08-30  0:25 ` dana
2023-09-01 16:33   ` Jun. T
2023-09-01 16:35   ` Jun. T

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=9A3B6734-18A2-4F18-9536-C8B5A9C535BA@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --cc=zsh-workers@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).