summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPhilipp Jungkamp <p.jungkamp@gmx.net>2024-06-06 17:24:31 +0200
committerPhilipp Jungkamp <p.jungkamp@gmx.net>2024-06-24 16:16:33 +0200
commit0a1061278616bf5f8282af6366228ebf74cb5346 (patch)
tree9919f01e520fb56015680337bde205fc274b5ad3 /doc
parent07000adb9bf659a879b8c272426e5c5201a7b0c1 (diff)
Add EnterDirectory hook
This hook runs on `change-directory` and is also emitted just before KakBegin after kakrc has been sourced.
Diffstat (limited to 'doc')
-rw-r--r--doc/pages/hooks.asciidoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/pages/hooks.asciidoc b/doc/pages/hooks.asciidoc
index 8d339d9d..67311868 100644
--- a/doc/pages/hooks.asciidoc
+++ b/doc/pages/hooks.asciidoc
@@ -147,6 +147,11 @@ name. Hooks with no description will always use an empty string.
*SessionRenamed* `<old name>:<new name>`::
executed when a session is renamed using the `rename-session` command
+*EnterDirectory* `path`::
+ executed on startup and when the current working directory is changed
+ using the `change-directory` command. The hook param is an absolute path
+ to the new working directory.
+
*RuntimeError* `error message`::
an error was encountered while executing a user command