move InsertMode to normal.hh
This commit is contained in:
parent
7267b8281f
commit
cb9384f8a7
|
@ -12,18 +12,6 @@ namespace InputModes { class Insert; }
|
||||||
|
|
||||||
class Register;
|
class Register;
|
||||||
|
|
||||||
enum class InsertMode : unsigned
|
|
||||||
{
|
|
||||||
Insert,
|
|
||||||
Append,
|
|
||||||
Replace,
|
|
||||||
InsertAtLineBegin,
|
|
||||||
InsertAtNextLineBegin,
|
|
||||||
AppendAtLineEnd,
|
|
||||||
OpenLineBelow,
|
|
||||||
OpenLineAbove
|
|
||||||
};
|
|
||||||
|
|
||||||
// An Editor is a buffer mutator
|
// An Editor is a buffer mutator
|
||||||
//
|
//
|
||||||
// The Editor class provides methods to manipulate a set of selections
|
// The Editor class provides methods to manipulate a set of selections
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include "color.hh"
|
#include "color.hh"
|
||||||
#include "completion.hh"
|
#include "completion.hh"
|
||||||
#include "context.hh"
|
#include "context.hh"
|
||||||
#include "editor.hh"
|
#include "normal.hh"
|
||||||
#include "keys.hh"
|
#include "keys.hh"
|
||||||
#include "string.hh"
|
#include "string.hh"
|
||||||
#include "utils.hh"
|
#include "utils.hh"
|
||||||
|
|
|
@ -11,6 +11,18 @@ namespace Kakoune
|
||||||
|
|
||||||
class Context;
|
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)>>;
|
using KeyMap = std::unordered_map<Key, std::function<void (Context& context, int param)>>;
|
||||||
extern KeyMap keymap;
|
extern KeyMap keymap;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user