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
This commit is contained in:
throwawayaccount12345-1 2022-04-20 23:11:10 -03:00 committed by GitHub
parent 90db664635
commit 3ab88f4b7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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