summaryrefslogtreecommitdiff
path: root/src/core/completions.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-04-26 14:27:02 +0200
committermathieui <mathieui@mathieui.net>2014-04-26 14:27:02 +0200
commit4172a79117606ffaf23feba6dc38ced3fa759ea5 (patch)
tree7f417c57a53eb9b366d903175e5122ac742492a8 /src/core/completions.py
parent1f0ff4f0c30f5326e1b36ff03ebf83ac85239e89 (diff)
downloadpoezio-4172a79117606ffaf23feba6dc38ced3fa759ea5.tar.gz
poezio-4172a79117606ffaf23feba6dc38ced3fa759ea5.tar.bz2
poezio-4172a79117606ffaf23feba6dc38ced3fa759ea5.tar.xz
poezio-4172a79117606ffaf23feba6dc38ced3fa759ea5.zip
Fix #2514 (add a /toggle command)
Diffstat (limited to 'src/core/completions.py')
-rw-r--r--src/core/completions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/completions.py b/src/core/completions.py
index 75122885..5387eefd 100644
--- a/src/core/completions.py
+++ b/src/core/completions.py
@@ -351,6 +351,10 @@ def completion_set(self, the_input):
return
return the_input.new_completion(end_list, n, quotify=True)
+def completion_toggle(self, the_input):
+ "Completion for /toggle"
+ return the_input.new_completion(config.options('Poezio'), 1, quotify=False)
+
def completion_bookmark_local(self, the_input):
"""Completion for /bookmark_local"""