Maxime Coste
|
91386a535c
|
Support discarding selections in exec/eval -itersel
Only fail if all selections are discarded.
Fixes #2841
|
2019-05-13 17:34:43 +10:00 |
|
Maxime Coste
|
346c78f5e0
|
Header and dependency cleanup
|
2019-01-24 21:22:20 +11:00 |
|
Delapouite
|
6b447a0ecb
|
Add declare-user-mode / enter-user-mode commands
|
2018-02-12 14:19:58 +01:00 |
|
Maxime Coste
|
7c06667bdf
|
Make the normal mode keymap a compile time hash map
This hash map is now fully constexpr, and ends up stored in the read
only data segment instead of being recomputed at each startup.
|
2017-10-20 12:21:22 +08:00 |
|
Maxime Coste
|
ddff35e5ab
|
Move keymap as an implementation detail of the normal mode keys
Only expose a free function that tries to get the NormalCmd from a
key.
|
2017-10-20 12:21:22 +08:00 |
|
Maxime Coste
|
8b1078e510
|
Use a HashMap to store the normal mode keymap
|
2017-03-16 23:40:38 +00:00 |
|
Maxime Coste
|
d1f17228dd
|
Use a static array to store the keymap
|
2015-03-09 13:55:55 +00:00 |
|
Maxime Coste
|
0bbaef6e48
|
Use a sorted array for keymap rather than an unordered map
with ~100 entry, a binary search finds in < 7 step, unordered map
is overkill.
|
2015-03-08 11:40:50 +00:00 |
|
Maxime Coste
|
2d93933d81
|
Rework keymap to use function pointer rather than std::function
|
2015-03-05 19:57:46 +00:00 |
|
Maxime Coste
|
ebecd60eb8
|
Rework hashing, use a more extensible framework similar to n3876 proposal
std::hash specialization is a pain to work with, stop using that, and
just specialize a 'size_t hash_value(const T&)' free function.
|
2014-12-16 18:57:19 +00:00 |
|
Maxime Coste
|
77e2e8a31e
|
Support selecting yank/paste register with "
|
2014-11-28 13:58:36 +00:00 |
|
Maxime Coste
|
b6979e2d2c
|
Add docstring for normal mode commands and display them if autoinfo >= 2
|
2014-07-10 19:22:14 +01:00 |
|
Maxime Coste
|
b2621ca140
|
Move insert/erase methods from normal.cc to member functions in SelectionList
It does look like the Editor class is attempting a sneaky comeback...
|
2014-05-25 20:28:32 +01:00 |
|
Maxime Coste
|
cb9384f8a7
|
move InsertMode to normal.hh
|
2013-12-15 20:23:02 +00:00 |
|
Maxime Coste
|
74fe8b5e8d
|
Remove Context::numeric_param, pass it directly to normal mode functions
|
2013-10-10 21:22:20 +01:00 |
|
Maxime Coste
|
5653af15ed
|
move normal mode implementation to normal.{cc,hh}
|
2013-04-12 14:28:13 +02:00 |
|