zsh-users
 help / color / mirror / code / Atom feed
* implementing a control for completing filenames with a defined list of tokens
@ 2013-12-02 14:26 Eric Smith
  2013-12-02 15:58 ` Bart Schaefer
  0 siblings, 1 reply; 29+ messages in thread
From: Eric Smith @ 2013-12-02 14:26 UTC (permalink / raw)
  To: Zsh Users

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


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

end of thread, other threads:[~2014-03-20 21:27 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-02 14:26 implementing a control for completing filenames with a defined list of tokens Eric Smith
2013-12-02 15:58 ` Bart Schaefer
2014-03-16 14:13   ` Eric Smith
2014-03-16 19:27     ` Bart Schaefer
2014-03-16 20:13       ` Bart Schaefer
2014-03-18  3:10         ` set -F kills read -t Ray Andrews
2014-03-18  6:50           ` Bart Schaefer
2014-03-18 16:22             ` Ray Andrews
2014-03-18 16:47               ` Peter Stephenson
2014-03-18 17:45               ` Bart Schaefer
2014-03-18 22:08                 ` Ray Andrews
2014-03-18 23:12                   ` Jan Larres
2014-03-19  4:06                     ` Ray Andrews
2014-03-19  5:30                       ` Jan Larres
2014-03-19 15:23                         ` Ray Andrews
2014-03-19 20:00                           ` Bart Schaefer
2014-03-20  1:47                             ` Ray Andrews
2014-03-19  1:17                   ` Bart Schaefer
2014-03-19  5:00                     ` Ray Andrews
2014-03-19  6:37                       ` Bart Schaefer
2014-03-19 17:08                         ` Ray Andrews
2014-03-19 17:22                           ` Roman Neuhauser
2014-03-19 22:21                           ` Bart Schaefer
2014-03-20  1:46                             ` Ray Andrews
2014-03-20  4:21                               ` Bart Schaefer
2014-03-20 15:49                                 ` Ray Andrews
2014-03-20 16:08                                   ` Bart Schaefer
2014-03-20 21:27                                     ` Ray Andrews
2014-03-19 10:00                       ` Roman Neuhauser

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