home/src/normal.hh
Maxime Coste ddff35e5ab Move keymap as an implementation detail of the normal mode keys
Only expose a free function that tries to get the NormalCmd from a
key.
2017-10-20 12:21:22 +08:00

30 lines
399 B
C++

#ifndef normal_hh_INCLUDED
#define normal_hh_INCLUDED
#include "optional.hh"
#include "keys.hh"
#include "string.hh"
namespace Kakoune
{
class Context;
struct NormalParams
{
int count;
char reg;
};
struct NormalCmd
{
StringView docstring;
void (*func)(Context& context, NormalParams params);
};
Optional<NormalCmd> get_normal_command(Key key);
}
#endif // normal_hh_INCLUDED