awful: add generic completion wrapper for awful.prompt.run()
commit47c836de97702c9eabefc31e932eb3b20124fbc8
authorSébastien Gross <seb-awesome@chezwam.org>
Tue, 25 Nov 2008 20:03:58 +0000 (25 20:03 +0000)
committerJulien Danjou <julien@danjou.info>
Fri, 12 Dec 2008 18:19:29 +0000 (12 19:19 +0100)
tree0f5bcbfd47002541aed767972a2199b9040509a1
parent458ae3456029551ddc1adcd4582f6f4652816940
awful: add generic completion wrapper for awful.prompt.run()

[completion.lua.in]:
  * add generic() function for completion

[prompt.lua.in]
  * add completion_run() function as a run() wrapper with completion

kw_feeder sould return a key = value dictionnary. Completion is run against
key. Once completion is done, exe_callback(value, key) is executed.
That's the major differences between awful.prompt.run() and
 awful.prompt.completion_run

Notice: This is not thread safe but as longs as only one keygrabber could be
run who cares?

Signed-off-by: Sébastien Gross <seb-awesome@chezwam.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
lib/awful/completion.lua.in