From 3ab88f4b7c7574acb74e547b8113be5aeb1b09d1 Mon Sep 17 00:00:00 2001 From: throwawayaccount12345-1 <77868642+throwawayaccount12345-1@users.noreply.github.com> Date: Wed, 20 Apr 2022 23:11:10 -0300 Subject: [PATCH] rc file-detection hook group Add a group to the `file-detection` hooks. There's no way to remove hooks without a group. With this patch, you'll be able to remove those `file-detection` hooks manually. There's no need for two separate groups since if you wanted to remove only one, you could run `remove-hooks` and then only add one again. Related: #3670 --- rc/detection/file.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/detection/file.kak b/rc/detection/file.kak index 99e0b05b..c7073865 100644 --- a/rc/detection/file.kak +++ b/rc/detection/file.kak @@ -22,5 +22,5 @@ define-command -hidden file-detection %{ evaluate-commands %sh{ fi } } -hook global BufOpenFile .* file-detection -hook global BufWritePost .* file-detection +hook -group file-detection global BufOpenFile .* file-detection +hook -group file-detection global BufWritePost .* file-detection