summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/source/configuration/hooks.rst45
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