diff options
| author | Philipp Jungkamp <p.jungkamp@gmx.net> | 2024-06-06 17:24:31 +0200 |
|---|---|---|
| committer | Philipp Jungkamp <p.jungkamp@gmx.net> | 2024-06-24 16:16:33 +0200 |
| commit | 0a1061278616bf5f8282af6366228ebf74cb5346 (patch) | |
| tree | 9919f01e520fb56015680337bde205fc274b5ad3 /src/main.cc | |
| parent | 07000adb9bf659a879b8c272426e5c5201a7b0c1 (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 'src/main.cc')
| -rw-r--r-- | src/main.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc index 0c63403b..f2e31cab 100644 --- a/src/main.cc +++ b/src/main.cc @@ -842,6 +842,7 @@ int run_server(StringView session, StringView server_init, { Context empty_context{Context::EmptyContextFlag{}}; + global_scope.hooks().run_hook(Hook::EnterDirectory, real_path("."), empty_context); global_scope.hooks().run_hook(Hook::KakBegin, session, empty_context); } |
