diff options
Diffstat (limited to 'ranger/api/__init__.py')
-rw-r--r-- | ranger/api/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/api/__init__.py b/ranger/api/__init__.py index 7baa661d..5981c31a 100644 --- a/ranger/api/__init__.py +++ b/ranger/api/__init__.py @@ -5,6 +5,7 @@ # Hooks for use in plugins: + def hook_init(fm): """A hook that is called when ranger starts up. @@ -18,6 +19,7 @@ def hook_init(fm): keybindings and such. """ + def hook_ready(fm): """A hook that is called after the ranger UI is initialized. @@ -32,6 +34,7 @@ def hook_ready(fm): from ranger.core.linemode import LinemodeBase + def register_linemode(linemode_class): """Add a custom linemode class. See ranger.core.linemode""" from ranger.container.fsobject import FileSystemObject |