kakoune/src/normal.hh

32 lines
438 B
C++
Raw Normal View History

#ifndef normal_hh_INCLUDED
#define normal_hh_INCLUDED
2015-03-09 14:55:55 +01:00
#include "array_view.hh"
#include "keys.hh"
#include "string.hh"
namespace Kakoune
{
class Context;
struct NormalParams
{
int count;
char reg;
};
struct NormalCmdDesc
{
Key key;
StringView docstring;
void (*func)(Context& context, NormalParams params);
};
2015-03-09 14:55:55 +01:00
using KeyMap = const ArrayView<NormalCmdDesc>;
extern KeyMap keymap;
}
#endif // normal_hh_INCLUDED