чување be581e70af14ca984fec684cf1ca1a9c92b5b757
родитељ 0b398edbd917a02ced435bd9061972cc560f2ab5
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Wed, 23 Feb 2022 16:10:57 +0100
New key for switching command<->insert mode: C-\ (C-I clashed with Tab)
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 4, додавања: 6(+), брисања: 6(-)
diff --git a/config.def.h b/config.def.h
@@ -181,7 +181,7 @@ static const struct Key input_dialog_keys[] = {
/* Only when in insert mode */
static const struct Key insert_keys[] = {
- { .ev = { .key = TB_KEY_CTRL_I },
+ { .ev = { .key = TB_KEY_CTRL_BACKSLASH },
.callback = enter_command_mode },
{ .ev = { .key = TB_KEY_ENTER },
.callback = insert_line },
@@ -192,7 +192,7 @@ static const struct Key insert_keys[] = {
/* Only when in command mode */
static const struct Key command_keys[] = {
- { .ev = { .key = TB_KEY_CTRL_I },
+ { .ev = { .key = TB_KEY_CTRL_BACKSLASH },
.callback = enter_insert_mode },
{ .ev = { .ch = ':' }, .callback = show_go_to_line },
{ .ev = { .ch = '0' }, .callback = move_start },
diff --git a/config.h b/config.h
@@ -181,7 +181,7 @@ static const struct Key input_dialog_keys[] = {
/* Only when in insert mode */
static const struct Key insert_keys[] = {
- { .ev = { .key = TB_KEY_CTRL_I },
+ { .ev = { .key = TB_KEY_CTRL_BACKSLASH },
.callback = enter_command_mode },
{ .ev = { .key = TB_KEY_ENTER },
.callback = insert_line },
@@ -192,7 +192,7 @@ static const struct Key insert_keys[] = {
/* Only when in command mode */
static const struct Key command_keys[] = {
- { .ev = { .key = TB_KEY_CTRL_I },
+ { .ev = { .key = TB_KEY_CTRL_BACKSLASH },
.callback = enter_insert_mode },
{ .ev = { .ch = ':' }, .callback = show_go_to_line },
{ .ev = { .ch = '0' }, .callback = move_start },
diff --git a/draw.c b/draw.c
@@ -20,9 +20,9 @@ static const char* help[] = {
"Esc - Close dialog, clear error, cancel",
" selection",
"F1 - Show this screen",
+ "C-\\ - Switch command <-> insert mode",
"Home or C-A - Go to start of line",
"End or C-E - Go to end of line",
- "C-I - Switch command <-> insert mode",
"C-L - Show Go to line dialog",
"C-O - Reread (reopen) file",
"C-Q - Quit",
diff --git a/sled.1.in b/sled.1.in
@@ -90,11 +90,11 @@ _
\fCHome\fP or \fCC-A\fP@Go to start of line
\fCPgUp\fP or \fCC-B\fP@Go to previous page
\fCBackspace\fP@Erase character before cursor
+\fCC-\\\fP@Switch between command and insert mode
\fCC-C\fP@Yank to paste buffer
\fCDelete\fP@Erase character under cursor
\fCEnd\fP or \fCC-E\fP@Go to end of line
\fCPgDown\fP or \fCC-F\fP@Go to next page
-\fCC-I\fP@Switch between command and insert mode
\fCC-K\fP@Erase to end of line
\fCC-L\fP@Show Go to line dialog
\fCC-O\fP@Reread (reopen) file