0
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-10-28 09:57:13 -04:00

Allow filepath autocompletion in plugins

closes #858
This commit is contained in:
James Booth
2016-10-10 22:28:23 +01:00
parent d485588a07
commit dcc2123ec4
12 changed files with 229 additions and 111 deletions

View File

@@ -182,6 +182,20 @@ def completer_clear(key):
pass
def filepath_completer_add(prefix):
"""Add filepath autocompletion for a command, or command argument.
:param prefix: the prefix from which filepath autocompletion will be triggered
Examples:
::
prof.filepath_completer_add("/filecmd")
prof.filepath_completer_add("/mycommand open")
"""
pass
def send_line(line):
"""Send a line of input to Profanity to execute.