summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-03-08 23:02:14 +0100
committermathieui <mathieui@mathieui.net>2016-03-08 23:02:14 +0100
commitbfbd61c42397dcf70c11c19eb8948909ced9ecfd (patch)
treef17bba222c569e40cca6aae76b81356aa8f55e2f /src
parent0161f35f82337f56a8d01cd5dc7d6ea530ad43d9 (diff)
downloadpoezio-bfbd61c42397dcf70c11c19eb8948909ced9ecfd.tar.gz
poezio-bfbd61c42397dcf70c11c19eb8948909ced9ecfd.tar.bz2
poezio-bfbd61c42397dcf70c11c19eb8948909ced9ecfd.tar.xz
poezio-bfbd61c42397dcf70c11c19eb8948909ced9ecfd.zip
Add a plugin api.get_status method
Diffstat (limited to 'src')
-rw-r--r--src/plugin.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugin.py b/src/plugin.py
index eca6baf2..2d8275ed 100644
--- a/src/plugin.py
+++ b/src/plugin.py
@@ -199,6 +199,14 @@ class PluginAPI(object):
"""
return self.core.current_tab()
+ def get_status(self, _):
+ """
+ Get the current user global status.
+
+ :returns Status: The current status.
+ """
+ return self.core.get_status()
+
def run_command(self, _, *args, **kwargs):
"""
Run a command from the current tab.