Commit Graph

16 Commits

Author SHA1 Message Date
koniu dc6a2c6b0d awful.completion: callback functions return table of matches
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-11 15:22:44 +02:00
Julien Danjou 61d2712076 awful.completion: use sort -u to sort (FS#621)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-22 17:15:49 +02:00
Julien Danjou 8b1b894cdf awful.completion: enhance description
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:32:38 +02:00
koniu 8b36cb7ce4 awful.completion: sort matches
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-09 14:14:46 +02:00
Julien Danjou 42afd9636f awful.completion: remove deprecated function from 3.3
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:19:44 +02:00
Julien Danjou 405b5d0123 awful.completion: fix compatibility (FS#474)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-19 11:03:04 +01:00
Christian Kuka c635d3e2d1 awful.completion: add zsh completion
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:58 +01:00
Maxime COSTE 1276c215e7 completion: append / to directories
Here is a small patch that appends a / to directories names in bash completion,
it does not seems to add noticeable overhead, but I only tested it on my
(rather fast) system.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-24 10:46:18 +01:00
Julien Danjou 6143e58190 awful.completion: add more chars to bash_escape
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-10 14:13:07 +01:00
Perrin "kAworu" Alexandre e3068bd2b6 use SYSCONFDIR to find bash's completion file.
Signed-off-by: Perrin "kAworu" Alexandre <kaworu(a)kaworu,ch>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-05 18:44:17 +01:00
Maxime COSTE 74188a07df awful.completion: escape spaces
This patch add a bash_escape function for bash completion, at the moment it
only escape spaces, other escaping may easily be added

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-29 10:14:00 +01:00
Sébastien Gross 8fb0ba2417 awful.completion: remove keywords global variable
* move keywords global variable to generic() last parameter.
  This prevents from having table clash.

  Please udate you configuration according this feature in your
  awful.prompt.run() calls.
  If keywords parameter is missing then no completion would be
  done.

  Before:
   awful.completion.keywords = kw
   awful.prompt.run( [ ... ],
     function(t, p, n) return awful.completion.generic(t, p, n) end,
     [ ... ] )

  Now:
   awful.prompt.run( [ ... ],
     function(t, p, n) return awful.completion.generic(t, p, n, kw) end,
     [ ... ] )

Signed-off-by: Sébastien Gross <seb-awesome@chezwam.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-18 13:55:41 +01:00
Maarten Maathuis 02e4be93dc completion, util: Check for io.popen failure.
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:24 +01:00
Sébastien Gross 47c836de97 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>
2008-12-12 19:19:29 +01:00
Julien Danjou c529c3d7ed awful.completion: doc fixes
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-07 15:27:51 +01:00
Julien Danjou 34647e4e75 awful: split in several modules
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-29 18:30:32 +02:00