Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
implementing a control for completing filenames with a defined list of tokens
- X-seq: zsh-users 18180
- From: Eric Smith <Eric.Smith@xxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: implementing a control for completing filenames with a defined list of tokens
- Date: Mon, 2 Dec 2013 15:26:14 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Wise zsh'lers,
I would like to define a completion widget to complete filenames with a defined
list of tokens. The widget would look up in a list the tokens and suggest
these (ideally in order) to the user.
As an example;
$ cat tokenfile
token1
token2
token3
User has the binding control-k to execute the completion function;
mv <somefile> <c-k>
Then the widget would supply
mv <somefile> token1
token1
token2
token3
How would I best implement this?
--
Eric Smith
Messages sorted by:
Reverse Date,
Date,
Thread,
Author