чување 6c65acf9478f5960dc171a65033109f722df63ea
родитељ 2d3b0eef65c430bc25f8c4bfca7ceaf05f5d91b2
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Tue, 6 Jul 2021 13:08:48 +0200
Added vim-forms for F8/F9: u and F
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 3, додавања: 6(+), брисања: 6(-)
diff --git a/draw.c b/draw.c
@@ -19,8 +19,8 @@ static const char* help[] = {
"/ or F7 - Incremental search (end = Enter)",
"n or F3 - Find next",
"N or F4 - Find previous",
- "F8 - Go to next untranslated entry",
- "F9 - Go to next fuzzy entry",
+ "u or F8 - Go to next untranslated entry",
+ "F or F9 - Go to next fuzzy entry",
"g or Home - Go to first entry",
"C-B or PgUp - Go to previous page",
"k or \u2191 - Go to previous entry",
diff --git a/poe.1.in b/poe.1.in
@@ -71,8 +71,8 @@ _
\fC/\fP or \fCF7\fP@Incremental search (end input with Enter)
\fCn\fP or \fCF3\fP@Find next
\fCN\fP or \fCF4\fP@Find previous
-\fCF8\fP@Go to next untranslated entry
-\fCF9\fP@Go to next fuzzy entry
+\fCu\fP or \fCF8\fP@Go to next untranslated entry
+\fCF\fP or \fCF9\fP@Go to next fuzzy entry
\fCg\fP or \fCHome\fP@Go to first entry
\fCC-B\fP or \fCPgUp\fP@Go to previous page
\fCk\fP or \fC\[ua]\fP@Go to previous entry
diff --git a/poe.c b/poe.c
@@ -1293,9 +1293,9 @@ handle_key_event(struct tb_event* ev, struct DrawState* state)
state->show_help = 1;
state->error[0] = 0;
}
- else if (ev->key == TB_KEY_F8)
+ else if (ev->key == TB_KEY_F8 || ev->ch == 'u')
next_untranslated(state);
- else if (ev->key == TB_KEY_F9)
+ else if (ev->key == TB_KEY_F9 || ev->ch == 'F')
next_fuzzy(state);
else if (ev->key == TB_KEY_HOME || ev->ch == 'g')
move_list_start(state);