From 6b447a0ecb018256c574fc2a36be99698f603cc3 Mon Sep 17 00:00:00 2001 From: Delapouite Date: Thu, 18 Jan 2018 09:57:14 +0100 Subject: Add declare-user-mode / enter-user-mode commands --- src/normal.hh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/normal.hh') diff --git a/src/normal.hh b/src/normal.hh index 9802f642..9b6693cc 100644 --- a/src/normal.hh +++ b/src/normal.hh @@ -1,8 +1,10 @@ #ifndef normal_hh_INCLUDED #define normal_hh_INCLUDED +#include "context.hh" #include "optional.hh" #include "keys.hh" +#include "keymap_manager.hh" #include "string.hh" namespace Kakoune @@ -24,6 +26,15 @@ struct NormalCmd Optional get_normal_command(Key key); +struct KeyInfo +{ + ConstArrayView keys; + StringView docstring; +}; + +String build_autoinfo_for_mapping(Context& context, KeymapMode mode, + ConstArrayView built_ins); + } #endif // normal_hh_INCLUDED -- cgit v1.2.3