Add session name filtering for KakBegin hook
This commit is contained in:
parent
9b83589b18
commit
74898120ed
|
@ -123,7 +123,7 @@ of the given *group*.
|
||||||
*InputModeChange* `<old mode>:<new mode>`::
|
*InputModeChange* `<old mode>:<new mode>`::
|
||||||
Triggered whenever the current input mode changes
|
Triggered whenever the current input mode changes
|
||||||
|
|
||||||
*KakBegin*::
|
*KakBegin* `session name`::
|
||||||
kakoune has started, this hook is called just after reading the user
|
kakoune has started, this hook is called just after reading the user
|
||||||
configuration files
|
configuration files
|
||||||
|
|
||||||
|
|
|
@ -618,7 +618,7 @@ int run_server(StringView session, StringView server_init,
|
||||||
|
|
||||||
{
|
{
|
||||||
Context empty_context{Context::EmptyContextFlag{}};
|
Context empty_context{Context::EmptyContextFlag{}};
|
||||||
global_scope.hooks().run_hook("KakBegin", "", empty_context);
|
global_scope.hooks().run_hook("KakBegin", session, empty_context);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (not files.empty()) try
|
if (not files.empty()) try
|
||||||
|
|
Loading…
Reference in New Issue
Block a user