Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions doc/man/es/mc.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -3899,19 +3899,6 @@ Cambiar el formato de fecha y hora empleado para fechas más antiguas que seis
meses. Véanse las páginas de manual de strftime o date para la descripción del formato a
emplear. Sin esta opción se emplea el formato por defecto.
.TP
.I torben_fj_mode
Si este modificador existe, entonces las teclas Inicio y Fin funcionarán de manera
diferente en los paneles, en lugar de mover la selección al primer
o último archivo en los paneles, actuarán como sigue:
.IP
La tecla Inicio: Irá a la línea central del panel, si está bajo ella; sino va a
la primera línea a menos que ya esté allí, en este caso
irá al primer archivo del panel.
.IP
La tecla Fin tiene un comportamiento similar: Irá a la línea central del panel, si
está situada en la mitad superior del panel; si no irá a la línea inferior del panel a menos que
ya estemos ahí, en cuyo caso moverá la selección al último nombre de archivo del panel.
.TP
.I use_file_to_guess_type
Si esta variable está activada (por defecto lo está) se recurrirá al
comando «file» para reconocer los tipos de archivo referidos en el archivo
Expand Down
11 changes: 0 additions & 11 deletions doc/man/hu/mc.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -2999,17 +2999,6 @@ Amikor a C\-o billentyű kombinációt használod, visszalépsz a felhasználói
képernyőre, ha "egy" a beállítás, akkor a shellt frissíted. Egyébként
bármely gomb lenyomásával visszatérhetsz a Midnight Commander\-hez.
.PP
.I torben_fj_mode
.IP
Ha ez a flag be van állítva, akkor a home és az end gombok kissé
eltérően fognak működni a panelekben, a kiválasztást a panel első és
utolsó fájljára mozgatja, s a következőképp működik: A home gombnál:
Felmegy a középső sorra, ha lejjebb volt; egyébként a felső sor lép
addíg, amíg el nem éri a legfelső sort, ebben ez esetben ez lesz a panel
első fájlja. Az end gomb működése hasonló: Lemegy a középső sorra, ha
felette volt; egyébként a legalsó sorra lép addíg, amíg el nem éri az
utolsó fájl a panelben.
.PP
.I use_file_to_guess_type
.IP
Ha ez a változó be van állítva (alapértelmezésben) meg foja jelölni azt
Expand Down
14 changes: 0 additions & 14 deletions doc/man/it/mc.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -2997,20 +2997,6 @@ subshell. Quando si usano i tasti C\-o per tornare allo schermo utente,
se quest'opzione è impostata, si avrà una nuova shell. Altrimenti,
premendo qualsiasi tasto si tornerà al Midnight Commander.
.TP
.I torben_fj_mode
Se quest'opzione è impostata, allora i tasti inizio e fine lavoreranno
leggermente differentemente sui pannelli. Invece che muovere le selezioni
al primo e ultimo file del pannello, agiranno nel modo seguente:
.IP
Il tasto inizio: va alla riga centrale, se sotto di essa, altrimenti
va alla riga in cima a meno che non ci sia già; in tal caso andrà al
primo file del pannello.
.IP
Il tasto fine ha un comportamento simile: va giù alla riga centrale
se era sopra di essa, altrimenti va alla riga di fondo a meno che non
ci sia già; in tal caso sposterà la selezione all'ultimo file del
pannello.
.TP
.I use_file_to_guess_type
Se questa variabile è abilitata (valore predefinito) userà il comando
file per trovare delle corrispondenze sui tipi di file elencati nel
Expand Down
14 changes: 0 additions & 14 deletions doc/man/mc.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -3839,20 +3839,6 @@ now or for dates in the future.
See strftime or date man page for the format specification. If this
option is absent, default timeformat is used.
.TP
.I torben_fj_mode
If this flag is set, then the home and end keys will work slightly
different on the panels, instead of moving the selection to the first
and last files in the panels, they will act as follows:
.IP
The home key will: Go up to the middle line, if below it; else go to the
top line unless it is already on the top line, in this case it will go
to the first file in the panel.
.IP
The end key has a similar behavior: Go down to the middle line, if over
it; else go to the bottom line unless you already are at the bottom
line, in such case it will move the selection to the last file name in
the panel.
.TP
.I use_file_to_guess_type
If this variable is on (the default) it will spawn the file command to
match the file types listed on the
Expand Down
15 changes: 0 additions & 15 deletions doc/man/pl/mc.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -2668,21 +2668,6 @@ Jeśli chcesz widzieć wszystkie możliwe dokończenia już po pierwszym naciśn
.BR M\-Tab ,
zmień tę opcję na 1.
.PP
.I torben_fj_mode
.IP
Jeśli ta opcja jest włączona, klawisze home i end będą działały troszkę
inaczej w panelach, zamiast przemieszczać linię wyboru do pierwszej lub
ostatniej linii w panelu, będą działały tak jak jest to opisane poniżej:
.IP
Klawisz home będzie: przechodził do środkowej linii, jeśli jest pod nią; w
przeciwnym wypadku będzie przechodził do najwyższej linii w panelu, jeśli
już w niej jest, będzie przechodził do pierwszego pliku w panelu.
.IP
Klawisz end ma podobne zastosowanie: przechodzi do środkowej linii, jeśli
jest nad nią; w przeciwnym wypadku przechodzi do najniższej linii w panelu,
chyba że już się w niej znajduje, wtedy przechodzi do ostatniego pliku w
panelu.
.PP
.I highlight_mode
Standardowo wszystkie informacje w panelach są wyświetlane tym samym
kolorem. Jeśli ta warość jest ustawiona na 1, to
Expand Down
23 changes: 0 additions & 23 deletions doc/man/ru/mc.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -4586,29 +4586,6 @@ subshell. Если она установлена, то при нажатии
для перехода в экран пользователя будет запускаться новый экземпляр
оболочки.
.PP
.I torben_fj_mode
.IP
Установка этой опции слегка изменяет реакцию программы на нажатие клавиш
.B Home
и
.B End
в активной панели. Вместо того, чтобы перемещать подсветку (курсор) к первому
или последнему из имен файлов, отображенных на панели, нажатие этих клавиш будет
вызывать следующую реакцию:
.IP
клавиша
.B Home
\- перемещение курсора вверх до середины панели, если курсор был ниже, в противном
случае перемещение на самую верхнюю строку; если только курсор уже на самой верхней
строке, то перемещение на самую первую строку списка файлов.
.IP
клавиша
.B End
вызывает аналогичную реакцию \- смещение вниз до середины панели, если курсор
был выше; если ниже \- то переход на последнюю отображаемую в панели строку;
если уже на последней строке, то перемещение курсора на самую последнюю строку
списка файлов.
.PP
.I use_file_to_guess_type
.IP
Когда эта опция включена (что сделано по умолчанию), mc будет вызывать
Expand Down
13 changes: 0 additions & 13 deletions doc/man/sr/mc.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -3982,19 +3982,6 @@ menuhotsel=yellow;black;bold+underline
спецификацију формата. Ако ове опције нема, биће коришћен подразумевани формат
времена.
.TP
.I torben_fj_mode
Уколико је овај прекидач постављен, онда ће тастери home и end
радити мало другачије над панелима: уместо да се избор помера на прву и
последњу датотеку у панелу, тастери ће имати следећи ефекат:
.IP
Тастер home ће: ићи на средњу линију, уколико се налазимо испод ње; иначе ће
ићи на прву линију, осим уколико се већ налазимо на њој, а тада ће ићи на прву
датотеку у панелу.
.IP
Тастер end се слично понаша: ићи ће доле на средњу линију, уколико се налазимо
изнад ње; иначе ће ићи на последњу линију, осим уколико смо већ на њој, а тада
ће померити избор на последњу датотеку у панелу.
.TP
.I use_file_to_guess_type
Уколико је ова променљива укључена (подразумевано), ПН ће покренути
наредбу file за одређивање врсте датотека које су задате у
Expand Down
43 changes: 0 additions & 43 deletions src/filemanager/panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -2411,24 +2411,6 @@ move_home (WPanel *panel)

unselect_item (panel);

if (panels_options.torben_fj_mode)
{
int middle_pos;

middle_pos = panel->top + panel_items (panel) / 2;

if (panel->current > middle_pos)
{
goto_middle_file (panel);
return;
}
if (panel->current != panel->top)
{
goto_top_file (panel);
return;
}
}

panel->top = 0;
panel->current = 0;

Expand All @@ -2446,25 +2428,6 @@ move_end (WPanel *panel)

unselect_item (panel);

if (panels_options.torben_fj_mode)
{
int items, middle_pos;

items = panel_items (panel);
middle_pos = panel->top + items / 2;

if (panel->current < middle_pos)
{
goto_middle_file (panel);
return;
}
if (panel->current != panel->top + items - 1)
{
goto_bottom_file (panel);
return;
}
}

panel->current = panel->dir.len - 1;
paint_dir (panel);
select_item (panel);
Expand Down Expand Up @@ -3784,12 +3747,6 @@ panel_key (WPanel *panel, int key)
if (command != CK_IgnoreKey)
return panel_execute_cmd (panel, command);

if (panels_options.torben_fj_mode && key == ALT ('h'))
{
goto_middle_file (panel);
return MSG_HANDLED;
}

if (!command_prompt && ((key >= ' ' && key <= 255) || key == KEY_BACKSPACE))
{
start_search (panel);
Expand Down
2 changes: 0 additions & 2 deletions src/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ panels_options_t panels_options = {
.filetype_mode = TRUE,
.permission_mode = FALSE,
.qsearch_mode = QSEARCH_PANEL_CASE,
.torben_fj_mode = FALSE,
.select_flags = SELECT_MATCH_CASE | SELECT_SHELL_PATTERNS,
};

Expand Down Expand Up @@ -444,7 +443,6 @@ static const struct
{ "mouse_move_pages", &panels_options.mouse_move_pages },
{ "filetype_mode", &panels_options.filetype_mode },
{ "permission_mode", &panels_options.permission_mode },
{ "torben_fj_mode", &panels_options.torben_fj_mode },
{
NULL,
NULL,
Expand Down
1 change: 0 additions & 1 deletion src/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ typedef struct
gboolean filetype_mode; // If TRUE then add per file type highlighting
gboolean permission_mode; // If TRUE, we use permission highlighting
qsearch_mode_t qsearch_mode; // Quick search mode
gboolean torben_fj_mode; // If TRUE, use some usability hacks by Torben
select_flags_t select_flags; // Select/unselect file flags
} panels_options_t;

Expand Down
Loading