Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How do I complete from words in a file?
- X-seq: zsh-users 6974
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: How do I complete from words in a file?
- Date: Mon, 5 Jan 2004 06:20:12 +0000
- In-reply-to: <20040104220708.GB27407@xxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040104220708.GB27407@xxxxxxxxxxxx>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author