From 7e5c75c906b951bbca8834b760d5037d5793af98 Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Sat, 10 Apr 2010 19:31:13 +0400 Subject: [PATCH] Add new section [Diff Viewer] in man and built-in help. Signed-off-by: Ilia Maslakov Signed-off-by: Andrew Borodin --- doc/man/mc.1.in | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++-- doc/man/ru/mc.1.in | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 202 insertions(+), 5 deletions(-) diff --git a/doc/man/mc.1.in b/doc/man/mc.1.in index b161ec453..f1a0090a1 100644 --- a/doc/man/mc.1.in +++ b/doc/man/mc.1.in @@ -587,7 +587,7 @@ instead of the command line. If the option is enabled the search string is shown on the mini\-status line. When typing, the selection bar will move to the next file starting with the typed letters. The -.I backspace +.I Backspace or .I DEL keys can be used to correct typing mistakes. If C\-s is pressed @@ -713,7 +713,7 @@ moves one word forward. .B Alt\-b moves one word backward. .TP -.B C\-h, backspace +.B C\-h, Backspace delete the previous character. .TP .B C\-d, Delete @@ -2565,6 +2565,104 @@ checkbox is on, the selection will be case sensitive characters. If .I Case sensitive is off, the case will be ignored. +.\"NODE "Diff Viewer" +.SH "Internal Diff Viewer" +The mcdiff is a visual diff tool. You can compare two files and edit them +in\-place (diffs are updated dynamically). You can browse and view a working +copy from popular version control systems (GIT, Subversion, etc). +.PP +Following shortcuts are available in internal diff viewer of Midnight +Commander. +.PP +.B F1 +Invoke the built\-in hypertext help viewer. +.PP +.B F2 +Save modified files. +.PP +.B F4 +Edit file of the left panel in the internal editor. +.PP +.B F14 +Edit file of the right panel in the internal editor. +.PP +.B F5 +Merge the current hunk. Only the current hunk will be merged. +.PP +.B F7 +Start search. +.PP +.B F17 +Continue search. +.PP +.B F10, Esc, q +Exit from diff viewer. +.PP +.B Alt\-s, s +Toggle show of hunk status. +.PP +.B Alt\-n, l +Toggle show of line numbers. +.PP +.B f +Maximize left panel. +.PP +.B \= +Make panels equal in width. +.PP +.B \> +Reduce the size of the right panel. +.PP +.B \< +Reduce the size of the left panel. +.PP +.B c +Toggle show of trailing carriage return (CR) symbol as ^M. +.PP +.B 2, 3, 4, 8 +Set tabulation size +.PP +.B C\-u +Swap contents of diff panels. +.PP +.B C\-r +Refresh the screen. +.PP +.B C\-o +Switch to the subshell and show the command screen. +.PP +.B Enter, Space, n +Find next diff hunk. +.PP +.B Backspace, p +Find previous diff hunk. +.PP +.B g +Go to line. +.PP +.B Down +Scroll one line forward. +.PP +.B Up +Scroll one line backward. +.PP +.B PageUp +Move one page up. +.PP +.B PageDown +Mves one page down. +.PP +.B Home, A1 +Moves to the line beginning. +.PP +.B End +Moves to the line end. +.PP +.B C\-Home +Move to the file beginning. +.PP +.B C\-End, C1 +Move to the file end. .\"NODE "Internal File Viewer" .SH "Internal File Viewer" The internal file viewer provides two display modes: ASCII and hex. @@ -2638,7 +2736,7 @@ Exit the internal file viewer. .B next\-page, space, C\-v. Scroll one page forward. .PP -.B prev\-page, Alt\-v, C\-b, backspace. +.B prev\-page, Alt\-v, C\-b, Backspace. Scroll one page backward. .PP .B down\-key diff --git a/doc/man/ru/mc.1.in b/doc/man/ru/mc.1.in index 8e04229df..2a103b413 100644 --- a/doc/man/ru/mc.1.in +++ b/doc/man/ru/mc.1.in @@ -721,7 +721,7 @@ Commander\-ом (например, символ '+'). .B M\-b. Перемещает курсор на одно слово назад. .PP -.B C\-h, backspace. +.B C\-h, Backspace. Удаляет символ, предшествующий курсору. .PP .B C\-d, Delete. @@ -2852,6 +2852,105 @@ Midnight Commander, должен изменять символические с Если опция .I С учётом регистра отключена, то регистр символов учитываться не будет. +.\"NODE "Diff Viewer" +.SH "Встроенная программа сравнения файлов" +mcdiff -- это встроенное средство для сравнения файлов, позволяющее сравнить два файла. +Также оно позволяет редактировать их (после завершения редактирования произойдет +обновление различий). Можно просматривать файлы, находящиеся под контролем различных +систем управления версиями, такими как GIT, Subversion и другие. +.PP +Ниже представлен список горячих клавиш, используемых во встроенной утилите сравнения +файлов mcdiff. +.PP +.B F1 +Вызов встроенной помощи. +.PP +.B F2 +Сохранение изменений в файлах. +.PP +.B F4 +Редактирование файла в левой панели. +.PP +.B F14 +Редактирование файла в правой панели. +.PP +.B F5 +Произвести слияние текушего изменения. +.PP +.B F7 +Вызов диалогового окна для задания шаблона поиска. +.PP +.B F17 +Продолжение поиска в соответствии с ранее определенным шаблоном. +.PP +.B F10, Esc, q +Выход. +.PP +.B Alt\-s, s +Включить/выключить показ статуса различий. +.PP +.B Alt\-n, l +Включить/выключить показ номеров строк. +.PP +.B f +Увеличить левую панель до максимума. +.PP +.B \= +Сделать панели равными по ширине. +.PP +.B \> +Увеличить левую панель. +.PP +.B \< +Увеличить правую панель. +.PP +.B c +Включить/выключить показ символов конца строки (CR) как ^M. +.PP +.B 2, 3, 4, 8 +Установить размер табуляции. +.PP +.B C\-u +Поменять панели местами. +.PP +.B C\-r +Обновить экран. +.PP +.B C\-o +Переключиться в подоболочку и показать окно команд. +.PP +.B Enter, Space, n +Найти следующее различие. +.PP +.B Backspace, p +Найти предыдущее различие. +.PP +.B g +Показать диалог перехода к строке. +.PP +.B Down +Перемещение на одну строку вниз. +.PP +.B Up +Перемещение на одну строку вверх. +.PP +.B PageUp +Перемещение на одну страницу вверх. +.PP +.B PageDown +Перемещение на одну страницу вниз. +.PP +.B Home, A1 +Перемещение к началу строки. +.PP +.B End +Перемещение в конец строки. +.PP +.B C\-Home +Перемещение в начало файла. +.PP +.B C\-End, C1 +Перемещение в конец файла. .\"NODE "Internal File Viewer" .SH "Встроенная программа просмотра файлов" Встроенная программа просмотра файлов имеет два режима просмотра: режим @@ -2946,7 +3045,7 @@ ASCII и шестнадцатеричный (hex). Для переключени .B PageDown, пробел, C\-v Переместиться на страницу вперед. .PP -.B PageUp, M\-v, backspace. +.B PageUp, M\-v, Backspace. Переместиться на страницу назад. .PP .B стрелка вниз -- 2.11.4.GIT