2013-04-12 14:28:13 +02:00
|
|
|
#ifndef normal_hh_INCLUDED
|
|
|
|
#define normal_hh_INCLUDED
|
|
|
|
|
|
|
|
#include "keys.hh"
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include <unordered_map>
|
|
|
|
|
|
|
|
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
|
|
|
|
{
|
|
|
|
const char* docstring;
|
2014-11-28 14:58:36 +01:00
|
|
|
std::function<void (Context& context, NormalParams params)> func;
|
2014-07-08 21:25:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
using KeyMap = std::unordered_map<Key, NormalCmdDesc>;
|
2013-04-12 14:28:13 +02:00
|
|
|
extern KeyMap keymap;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // normal_hh_INCLUDED
|