summaryrefslogtreecommitdiff
path: root/src/hook_manager.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-07-19 12:56:55 +1000
committerMaxime Coste <mawww@kakoune.org>2020-07-19 12:56:55 +1000
commit47ba36c66e0e38c5bb5c832bfa751d553f769baa (patch)
treec44b20b3d7440374eefc9ff5cbc08352c8f73809 /src/hook_manager.hh
parent5df8073c3c4213075d1c0ee6267cc58848b86721 (diff)
Add a RegisterModified hook
This one has been a long time coming, I am still concerned this could impact performance a lot. This hook does *not* trigger for capture registers (0-9) or any other dynamic registers (that are not writable). Fixes #859
Diffstat (limited to 'src/hook_manager.hh')
-rw-r--r--src/hook_manager.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hook_manager.hh b/src/hook_manager.hh
index a6547fa0..4b8a8913 100644
--- a/src/hook_manager.hh
+++ b/src/hook_manager.hh
@@ -49,6 +49,7 @@ enum class Hook
NormalKey,
ModeChange,
RawKey,
+ RegisterModified,
WinClose,
WinCreate,
WinDisplay,
@@ -93,6 +94,7 @@ constexpr auto enum_desc(Meta::Type<Hook>)
{Hook::NormalKey, "NormalKey"},
{Hook::ModeChange, "ModeChange"},
{Hook::RawKey, "RawKey"},
+ {Hook::RegisterModified, "RegisterModified"},
{Hook::WinClose, "WinClose"},
{Hook::WinCreate, "WinCreate"},
{Hook::WinDisplay, "WinDisplay"},