1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-28 09:07:19 +03:00

move InsertMode to normal.hh

This commit is contained in:
Maxime Coste 2013-12-15 19:41:32 +00:00
parent 7267b8281f
commit cb9384f8a7
3 changed files with 13 additions and 13 deletions

View File

@ -12,18 +12,6 @@ namespace InputModes { class Insert; }
class Register;
enum class InsertMode : unsigned
{
Insert,
Append,
Replace,
InsertAtLineBegin,
InsertAtNextLineBegin,
AppendAtLineEnd,
OpenLineBelow,
OpenLineAbove
};
// An Editor is a buffer mutator
//
// The Editor class provides methods to manipulate a set of selections

View File

@ -4,7 +4,7 @@
#include "color.hh"
#include "completion.hh"
#include "context.hh"
#include "editor.hh"
#include "normal.hh"
#include "keys.hh"
#include "string.hh"
#include "utils.hh"

View File

@ -11,6 +11,18 @@ namespace Kakoune
class Context;
enum class InsertMode : unsigned
{
Insert,
Append,
Replace,
InsertAtLineBegin,
InsertAtNextLineBegin,
AppendAtLineEnd,
OpenLineBelow,
OpenLineAbove
};
using KeyMap = std::unordered_map<Key, std::function<void (Context& context, int param)>>;
extern KeyMap keymap;