zsh-workers
 help / color / mirror / code / Atom feed
* info completion doesn't offer index entries any longer
@ 2021-08-01 16:05 Stephane Chazelas
  2021-08-01 16:24 ` Stephane Chazelas
  0 siblings, 1 reply; 5+ messages in thread
From: Stephane Chazelas @ 2021-08-01 16:05 UTC (permalink / raw)
  To: Zsh hackers list

Hello,

I'm pretty sure zsh used to offer completion for index entries
so you could do "info zsh read<Tab>" for instance to see the
index entry for the "read" builtin among other things, but that
no longer works.

I noticed that the completer runs "info -k" which is not a valid
command which points to the obvious:

_call_program info-nodes $cmd -k ''

mistake in the code which should be:

_call_program info-nodes "$cmd -k ''"

Or possibly 

_call_program info-nodes "${(qq)cmd} -k ''"

as those _call_program arguments are interpreted as shell code
to evaluate, not a list of arguments making up a simple command,
but even after that fixed (which causes the completion to be
very slow on my system as

$ info -k '' | wc
47919  267467 2341131
), 
That still doesn't give me index entries. Same with

info zsh --index-search=<Tab>

info has its own completion for the index with "i", and even "I"
for a selectable search result, so not having it in zsh is not
critical, but it sounds like it's meant to be there, but just
broken atm.

-- 
Stephane


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

end of thread, other threads:[~2021-08-09 13:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-01 16:05 info completion doesn't offer index entries any longer Stephane Chazelas
2021-08-01 16:24 ` Stephane Chazelas
2021-08-05  7:53   ` Oliver Kiddle
2021-08-08 15:58     ` Stephane Chazelas
2021-08-09 13:36       ` Oliver Kiddle

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