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-07-08 21:25:09 +02:00
|
|
|
struct NormalCmdDesc
|
|
|
|
{
|
|
|
|
const char* docstring;
|
|
|
|
std::function<void (Context& context, int param)> func;
|
|
|
|
};
|
|
|
|
|
|
|
|
using KeyMap = std::unordered_map<Key, NormalCmdDesc>;
|
2013-04-12 14:28:13 +02:00
|
|
|
extern KeyMap keymap;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // normal_hh_INCLUDED
|