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:
parent
90db664635
commit
3ab88f4b7c
|
@ -22,5 +22,5 @@ define-command -hidden file-detection %{ evaluate-commands %sh{
|
||||||
fi
|
fi
|
||||||
} }
|
} }
|
||||||
|
|
||||||
hook global BufOpenFile .* file-detection
|
hook -group file-detection global BufOpenFile .* file-detection
|
||||||
hook global BufWritePost .* file-detection
|
hook -group file-detection global BufWritePost .* file-detection
|
||||||
|
|
Loading…
Reference in New Issue
Block a user