* How do I complete from words in a file?
@ 2004-01-04 22:07 Eric Smith
2004-01-05 6:20 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Eric Smith @ 2004-01-04 22:07 UTC (permalink / raw)
To: Zsh Users
For example I have keys in the form
"_what_ever_" in certain files and want to type
on the command line:
_wh<tab>
and this should give me all the words commencing
with `_wh' in certain files.
Thanks.
--
Eric Smith
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How do I complete from words in a file?
2004-01-04 22:07 How do I complete from words in a file? Eric Smith
@ 2004-01-05 6:20 ` Bart Schaefer
2004-01-05 8:23 ` Eric Smith
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2004-01-05 6:20 UTC (permalink / raw)
To: zsh-users
On Jan 4, 11:07pm, Eric Smith wrote:
}
} For example I have keys in the form
} "_what_ever_" in certain files and want to type
} on the command line:
} _wh<tab>
*Where* on the command line? As the command name? As an argument of a
particular command? And, are you using compctl or compsys (compinit)?
} and this should give me all the words commencing
} with `_wh' in certain files.
I can tell you that you need to create a completion widget and have it
execute the command
compadd ${(f)"$(<certain_filename)"}
but I don't imagine that helps you very much. Unfortunately you haven't
provided enough details to formulate a more specific answer.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How do I complete from words in a file?
2004-01-05 6:20 ` Bart Schaefer
@ 2004-01-05 8:23 ` Eric Smith
0 siblings, 0 replies; 3+ messages in thread
From: Eric Smith @ 2004-01-05 8:23 UTC (permalink / raw)
To: zsh-users
Thanks Bart
Bart Schaefer said:
> On Jan 4, 11:07pm, Eric Smith wrote:
> }
> } For example I have keys in the form
> } "_what_ever_" in certain files and want to type
> } on the command line:
> } _wh<tab>
>
> *Where* on the command line? As the command name? As an argument of a
> particular command? And, are you using compctl or compsys (compinit)?
It would be as an argument to particular commands.
I am using compsys.
--
Eric Smith
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-01-05 8:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-04 22:07 How do I complete from words in a file? Eric Smith
2004-01-05 6:20 ` Bart Schaefer
2004-01-05 8:23 ` Eric Smith
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).