From 0a1061278616bf5f8282af6366228ebf74cb5346 Mon Sep 17 00:00:00 2001 From: Philipp Jungkamp Date: Thu, 6 Jun 2024 17:24:31 +0200 Subject: Add EnterDirectory hook This hook runs on `change-directory` and is also emitted just before KakBegin after kakrc has been sourced. --- doc/pages/hooks.asciidoc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') 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* `:`:: 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 -- cgit v1.2.3