2013-04-12 14:28:13 +02:00
|
|
|
#ifndef normal_hh_INCLUDED
|
|
|
|
#define normal_hh_INCLUDED
|
|
|
|
|
2015-03-09 14:55:55 +01:00
|
|
|
#include "array_view.hh"
|
2013-04-12 14:28:13 +02:00
|
|
|
#include "keys.hh"
|
2015-03-05 20:57:46 +01:00
|
|
|
#include "string.hh"
|
2013-04-12 14:28:13 +02:00
|
|
|
|
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
|
|
|
class Context;
|
|
|
|
|
2014-11-28 14:58:36 +01:00
|
|
|
struct NormalParams
|
|
|
|
{
|
|
|
|
int count;
|
|
|
|
char reg;
|
|
|
|
};
|
|
|
|
|
2014-07-08 21:25:09 +02:00
|
|
|
struct NormalCmdDesc
|
|
|
|
{
|
2015-03-08 12:40:50 +01:00
|
|
|
Key key;
|
2015-03-05 20:57:46 +01:00
|
|
|
StringView docstring;
|
|
|
|
void (*func)(Context& context, NormalParams params);
|
2014-07-08 21:25:09 +02:00
|
|
|
};
|
|
|
|
|
2015-03-09 14:55:55 +01:00
|
|
|
using KeyMap = const ArrayView<NormalCmdDesc>;
|
2015-03-08 12:40:50 +01:00
|
|
|
extern KeyMap keymap;
|
2013-04-12 14:28:13 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // normal_hh_INCLUDED
|