summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
authorMathieu OTHACEHE <m.othacehe@gmail.com>2016-08-07 12:50:52 +0200
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-11 15:32:48 +0100
commit0c4ea38ef84d990eb531267c980e2b90fe6a6f3a (patch)
tree0a1ec5713b8f4eea19f1c282ef2c16e0cfa681e8 /src/actions.c
parent8511dc94fc96bd5ad2ece8d730d9a9149859558a (diff)
downloadratpoison-0c4ea38ef84d990eb531267c980e2b90fe6a6f3a.zip
Introduce multiple completion styles.
The default, legacy style is named BASIC. A new completion style named SUBSTRING is added. Use SUBSTRING for window name completion in select command. Use BASIC everywhere else.
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/actions.c b/src/actions.c
index 8c55c04..3aef26b 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -1378,8 +1378,8 @@ cmd_select (int interactive, struct cmdarg **args)
/* FIXME: This is manually done because of the kinds of things
select accepts. */
if (args[0] == NULL)
- str = get_input (MESSAGE_PROMPT_SWITCH_TO_WINDOW, hist_SELECT,
- window_completions);
+ str = get_more_input (MESSAGE_PROMPT_SWITCH_TO_WINDOW, "", hist_SELECT,
+ SUBSTRING, window_completions);
else
str = xstrdup (ARG_STRING(0));
@@ -2641,7 +2641,7 @@ cmd_colon (int interactive UNUSED, struct cmdarg **args)
input = get_input (MESSAGE_PROMPT_COMMAND, hist_COMMAND, colon_completions);
else
input = get_more_input (MESSAGE_PROMPT_COMMAND, ARG_STRING(0), hist_COMMAND,
- colon_completions);
+ BASIC, colon_completions);
/* User aborted. */
if (input == NULL)
@@ -5930,7 +5930,7 @@ cmd_prompt (int interactive UNUSED, struct cmdarg **args)
query = sbuf_new (prefix - arg_str);
sbuf_nconcat (query, arg_str, prefix - arg_str);
output = get_more_input (sbuf_get (query), prefix, hist_PROMPT,
- trivial_completions);
+ BASIC, trivial_completions);
sbuf_free (query);
}
else