diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2013-03-03 17:29:54 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2013-03-03 17:29:54 +0000 |
commit | 4ae270072a0a6477466f09e8a5ea712af746d733 (patch) | |
tree | efb07ef84438b72564119ca37d45d8c08be31b76 /docs | |
parent | a4cc9c22e6267f0ff7909148e5b8c03435244e1e (diff) | |
parent | 41e129aa92c52eb3a8cd19bba6f6dcdcb10200d6 (diff) |
Merge branch '0.3.4-feature-hooks-563' into 0.3.4-feature-urwidtrees
Diffstat (limited to 'docs')
-rw-r--r-- | docs/source/configuration/hooks.rst | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/docs/source/configuration/hooks.rst b/docs/source/configuration/hooks.rst index 40b46271..90b4fc30 100644 --- a/docs/source/configuration/hooks.rst +++ b/docs/source/configuration/hooks.rst @@ -123,3 +123,48 @@ Apart from command pre- and posthooks, the following hooks will be interpreted: :type subject: str :rtype: str +.. py:function:: pre_buffer_open(ui= None, dbm=None, buf=buf) + + run before a new buffer is opened + + :param buf: buffer to open + :type buf: alot.buffer.Buffer + +.. py:function:: post_buffer_open(ui=None, dbm=None, buf=buf) + + run after a new buffer is opened + + :param buf: buffer to open + :type buf: alot.buffer.Buffer + +.. py:function:: pre_buffer_close(ui=None, dbm=None, buf=buf) + + run before a buffer is closed + + :param buf: buffer to open + :type buf: alot.buffer.Buffer + +.. py:function:: post_buffer_close(ui=None, dbm=None, buf=buf, success=success) + + run after a buffer is closed + + :param buf: buffer to open + :type buf: alot.buffer.Buffer + :param success: true if successfully closed buffer + :type success: boolean + +.. py:function:: pre_buffer_focus(ui=None, dbm=None, buf=buf) + + run before a buffer is focused + + :param buf: buffer to open + :type buf: alot.buffer.Buffer + +.. py:function:: post_buffer_focus(ui=None, dbm=None, buf=buf, success=success) + + run after a buffer is focused + + :param buf: buffer to open + :type buf: alot.buffer.Buffer + :param success: true if successfully focused buffer + :type success: boolean |