poe

Уређивач .po фајлова
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување ce81d8bc85cb3b8f5c237283aa0d2e69f174f517
родитељ a0a3658a72a6427a747c29f178bdd8b34d4a23fb
Аутор: Страхиња Радић <contact@strahinja.org>
Датум:   Mon,  5 Jul 2021 19:23:15 +0200

WIP incremental search (just manpage+help so far)

Signed-off-by: Страхиња Радић <contact@strahinja.org>

Diffstat:
Mdraw.c | 3+++
Mdraw.h | 2+-
Mpoe.1.in | 21+++++++++++++++++----
измењених датотека: 3, додавања: 21(+), брисања: 5(-)

diff --git a/draw.c b/draw.c @@ -15,6 +15,9 @@ static const char* help[] = { "Esc - Close dialog, clear error", "Enter - Edit entry", "H or F1 - Show this screen", + "/ or F7 - Incremental search (end = Enter)", + "n or F3 - Find next", + "N or F4 - Find previous", "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/draw.h b/draw.h @@ -13,7 +13,7 @@ #define EDIT_WIDTH 70 #define EDIT_HEIGHT 20 #define HELP_WIDTH 50 -#define HELP_HEIGHT 20 +#define HELP_HEIGHT 22 #define TAB_SIZE 8 typedef enum { diff --git a/poe.1.in b/poe.1.in @@ -68,12 +68,15 @@ _ \fCEsc\fP@Close dialog or clear error \fCEnter\fP@Edit entry \fCH\fP or \fCF1\fP@Show help dialog -\fCg\fP or \fCHome\fP@First entry +\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 +\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@Previous entry -\fCj\fP or \fC\[da]\fP@Next entry +\fCk\fP or \fC\[ua]\fP@Go to previous entry +\fCj\fP or \fC\[da]\fP@Go to next entry \fCC-F\fP or \fCPgDn\fP@Go to next page -\fCG\fP or \fCEnd\fP@Last entry +\fCG\fP or \fCEnd\fP@Go to last entry \fCf\fP or \fCC-Z\fP@Toggle fuzzy flag \fCq\fP or \fCC-Q\fP@Quit .TE @@ -94,6 +97,11 @@ _ \fCC-P\fP@Show previous plural form of msgstr \fCC-N\fP@Show next plural form of msgstr \fCEscape\fP@Cancel changes and close dialog +\fCC-C\fP@Yank (copy) current msgstr to paste buffer +\fCC-V\fP@Paste the contents of paste buffer into current msgstr +\fCF3\fP@Go to next untranslated entry +\fCF4\fP@Go to next fuzzy entry +\fCF5\fP@Copy msgid to edit box as current msgstr \fCF6\fP@Toggle focus between info box and edit box \fCC-Z\fP@Toggle fuzzy flag \fCC-A\fP or \fCHome\fP@Go to start of line @@ -109,6 +117,11 @@ _ .sp 1 . .LP +In the table above, "current msgstr" refers to the situation when there are +multiple msgstrs, representing different plural forms. Only the currently shown +msgstr is affected. +. +.LP When the info box is focused, arrow keys, \fCC-B\fP/\fCC-F\fP (\fCPgUp\fP/\fCPgDn\fP) and \fCC-A\fP/\fCC-E\fP (\fCHome\fP/\fCEnd\fP) keys scroll the info box.