From bfbd61c42397dcf70c11c19eb8948909ced9ecfd Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 8 Mar 2016 23:02:14 +0100 Subject: Add a plugin api.get_status method --- src/plugin.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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. -- cgit v1.2.3