diff options
| author | Delapouite <delapouite@gmail.com> | 2018-01-18 09:57:14 +0100 |
|---|---|---|
| committer | Delapouite <delapouite@gmail.com> | 2018-02-12 14:19:58 +0100 |
| commit | 6b447a0ecb018256c574fc2a36be99698f603cc3 (patch) | |
| tree | 6561f4c13cc5f27ad31be9ab4353f44c0d70f018 /src/normal.hh | |
| parent | 9c25e955dfdddd0ee63c2edb56cde79b18452da8 (diff) | |
Add declare-user-mode / enter-user-mode commands
Diffstat (limited to 'src/normal.hh')
| -rw-r--r-- | src/normal.hh | 11 |
1 files changed, 11 insertions, 0 deletions
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<NormalCmd> get_normal_command(Key key); +struct KeyInfo +{ + ConstArrayView<Key> keys; + StringView docstring; +}; + +String build_autoinfo_for_mapping(Context& context, KeymapMode mode, + ConstArrayView<KeyInfo> built_ins); + } #endif // normal_hh_INCLUDED |
