diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-11-23 09:09:15 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-11-23 09:09:15 +0100 |
commit | 592d4fa3008d6e758897b6486b25468a558c5a68 (patch) | |
tree | 31589201a5eca63104d6322eb2fc538abc9bc1f1 | |
parent | fa9ea5d1681c446d7f26599d689e9a0e354120a7 (diff) | |
download | poezio-592d4fa3008d6e758897b6486b25468a558c5a68.tar.gz poezio-592d4fa3008d6e758897b6486b25468a558c5a68.tar.bz2 poezio-592d4fa3008d6e758897b6486b25468a558c5a68.tar.xz poezio-592d4fa3008d6e758897b6486b25468a558c5a68.zip |
Plugin API: add a method to put text in the input.
-rw-r--r-- | src/core.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py index 7f578bd2..0b1755b1 100644 --- a/src/core.py +++ b/src/core.py @@ -1918,3 +1918,9 @@ class Core(object): if not isinstance(self.current_tab(), tabs.ChatTab): return None return self.current_tab().get_conversation_messages() + + def insert_input_text(self, text): + """ + Insert the given text into the current input + """ + self.do_command(text, True) |