zsh-workers
 help / color / mirror / code / Atom feed
* adding '-p precmd' to _normal
@ 2023-08-29  3:55 Jun T
  2023-08-30  0:25 ` dana
  0 siblings, 1 reply; 4+ messages in thread
From: Jun T @ 2023-08-29  3:55 UTC (permalink / raw)
  To: zsh-workers

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-01 16:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-29  3:55 adding '-p precmd' to _normal Jun T
2023-08-30  0:25 ` dana
2023-09-01 16:33   ` Jun. T
2023-09-01 16:35   ` Jun. T

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).