mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-19 01:11:36 +03:00
ebecd60eb8
std::hash specialization is a pain to work with, stop using that, and just specialize a 'size_t hash_value(const T&)' free function.
32 lines
446 B
C++
32 lines
446 B
C++
#ifndef normal_hh_INCLUDED
|
|
#define normal_hh_INCLUDED
|
|
|
|
#include "keys.hh"
|
|
#include "unordered_map.hh"
|
|
|
|
#include <functional>
|
|
|
|
namespace Kakoune
|
|
{
|
|
|
|
class Context;
|
|
|
|
struct NormalParams
|
|
{
|
|
int count;
|
|
char reg;
|
|
};
|
|
|
|
struct NormalCmdDesc
|
|
{
|
|
const char* docstring;
|
|
std::function<void (Context& context, NormalParams params)> func;
|
|
};
|
|
|
|
using KeyMap = UnorderedMap<Key, NormalCmdDesc>;
|
|
extern KeyMap keymap;
|
|
|
|
}
|
|
|
|
#endif // normal_hh_INCLUDED
|