tAdd catch-all to insert mode in other languages so adding text works at least - ledit - Text editor (WIP)
HTML git clone git://lumidify.org/ledit.git (fast, but not encrypted)
HTML git clone https://lumidify.org/git/ledit.git (encrypted, but very slow)
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 133041cbe8f5b106c95984a743b852fcdac6eda9
DIR parent b7dc5c71dceb3a26368fc7d027053378a5828463
HTML Author: lumidify <nobody@lumidify.org>
Date: Tue, 2 Nov 2021 11:30:14 +0100
Add catch-all to insert mode in other languages so adding text works at least
Diffstat:
M .gitignore | 1 +
M keys_basic_config.h | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
---
DIR diff --git a/.gitignore b/.gitignore
t@@ -2,3 +2,4 @@ tmp
ledit
*.core
*.o
+.*.swp
DIR diff --git a/keys_basic_config.h b/keys_basic_config.h
t@@ -133,6 +133,7 @@ static struct key keys_en[] = {
};
static struct key keys_de[] = {
+ {"", 0, 0, INSERT, KEY_ANY, KEY_ANY, &insert_mode_insert_text}
};
static struct key keys_ur[] = {
t@@ -150,7 +151,8 @@ static struct key keys_ur[] = {
{"ج", 0, 0, NORMAL, KEY_ANY, KEY_MOTION | KEY_NUMBERALLOWED, &cursor_down},
{"ک", 0, 0, NORMAL, KEY_ANY, KEY_MOTION | KEY_NUMBERALLOWED, &cursor_up},
{"0", 0, 0, NORMAL, KEY_ANY, KEY_ANY, &cursor_to_beginning},
- {"چ", ControlMask, 0, INSERT|VISUAL, KEY_ANY, KEY_ANY, &clipcopy}
+ {"چ", ControlMask, 0, INSERT|VISUAL, KEY_ANY, KEY_ANY, &clipcopy},
+ {"", 0, 0, INSERT, KEY_ANY, KEY_ANY, &insert_mode_insert_text}
};
static struct key keys_hi[] = {
t@@ -167,7 +169,8 @@ static struct key keys_hi[] = {
{"ल", 0, 0, NORMAL, KEY_ANY, KEY_MOTION | KEY_NUMBERALLOWED, &cursor_right},
{"ज", 0, 0, NORMAL, KEY_ANY, KEY_MOTION | KEY_NUMBERALLOWED, &cursor_down},
{"क", 0, 0, NORMAL, KEY_ANY, KEY_MOTION | KEY_NUMBERALLOWED, &cursor_up},
- {"0", 0, 0, NORMAL, KEY_ANY, KEY_ANY, &cursor_to_beginning}
+ {"0", 0, 0, NORMAL, KEY_ANY, KEY_ANY, &cursor_to_beginning},
+ {"", 0, 0, INSERT, KEY_ANY, KEY_ANY, &insert_mode_insert_text}
};
GEN_KEY_ARRAY(struct key, keys_en, keys_de, keys_ur, keys_hi);