summaryrefslogtreecommitdiff
path: root/src/normal.hh
blob: 96cf1457d309d864ec392dcee33e411f655420ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef normal_hh_INCLUDED
#define normal_hh_INCLUDED

#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);
};

using KeyMap = const ArrayView<NormalCmdDesc>;
extern KeyMap keymap;

}

#endif // normal_hh_INCLUDED