torben_fj_mode options was moved from [Midnight-Commander] section to [Panels] one.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
родитель
5341a6b53f
Коммит
f13778d94f
@ -73,9 +73,6 @@
|
|||||||
/* If true, show the mini-info on the panel */
|
/* If true, show the mini-info on the panel */
|
||||||
int show_mini_info = 1;
|
int show_mini_info = 1;
|
||||||
|
|
||||||
/* If true, use some usability hacks by Torben */
|
|
||||||
int torben_fj_mode = 0;
|
|
||||||
|
|
||||||
/* The hook list for the select file function */
|
/* The hook list for the select file function */
|
||||||
hook_t *select_file_hook = NULL;
|
hook_t *select_file_hook = NULL;
|
||||||
|
|
||||||
@ -1956,9 +1953,10 @@ move_home (WPanel * panel)
|
|||||||
{
|
{
|
||||||
if (panel->selected == 0)
|
if (panel->selected == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
unselect_item (panel);
|
unselect_item (panel);
|
||||||
|
|
||||||
if (torben_fj_mode)
|
if (panels_options.torben_fj_mode)
|
||||||
{
|
{
|
||||||
int middle_pos = panel->top_file + (ITEMS (panel) / 2);
|
int middle_pos = panel->top_file + (ITEMS (panel) / 2);
|
||||||
|
|
||||||
@ -1988,8 +1986,10 @@ move_end (WPanel * panel)
|
|||||||
{
|
{
|
||||||
if (panel->selected == panel->count - 1)
|
if (panel->selected == panel->count - 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
unselect_item (panel);
|
unselect_item (panel);
|
||||||
if (torben_fj_mode)
|
|
||||||
|
if (panels_options.torben_fj_mode)
|
||||||
{
|
{
|
||||||
int middle_pos = panel->top_file + (ITEMS (panel) / 2);
|
int middle_pos = panel->top_file + (ITEMS (panel) / 2);
|
||||||
|
|
||||||
@ -2870,7 +2870,7 @@ panel_key (WPanel * panel, int key)
|
|||||||
if (key == panel_map[i].key)
|
if (key == panel_map[i].key)
|
||||||
return panel_execute_cmd (panel, panel_map[i].command);
|
return panel_execute_cmd (panel, panel_map[i].command);
|
||||||
|
|
||||||
if (torben_fj_mode && key == ALT ('h'))
|
if (panels_options.torben_fj_mode && key == ALT ('h'))
|
||||||
{
|
{
|
||||||
goto_middle_file (panel);
|
goto_middle_file (panel);
|
||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
|
@ -133,7 +133,6 @@ typedef struct WPanel
|
|||||||
|
|
||||||
extern panel_field_t panel_fields[];
|
extern panel_field_t panel_fields[];
|
||||||
|
|
||||||
extern int torben_fj_mode;
|
|
||||||
extern int show_mini_info;
|
extern int show_mini_info;
|
||||||
|
|
||||||
extern hook_t *select_file_hook;
|
extern hook_t *select_file_hook;
|
||||||
|
@ -143,7 +143,8 @@ panels_options_t panels_options = {
|
|||||||
.mouse_move_pages = TRUE,
|
.mouse_move_pages = TRUE,
|
||||||
.filetype_mode = TRUE,
|
.filetype_mode = TRUE,
|
||||||
.permission_mode = FALSE,
|
.permission_mode = FALSE,
|
||||||
.qsearch_mode = QSEARCH_PANEL_CASE
|
.qsearch_mode = QSEARCH_PANEL_CASE,
|
||||||
|
.torben_fj_mode = FALSE
|
||||||
};
|
};
|
||||||
|
|
||||||
int easy_patterns = 1;
|
int easy_patterns = 1;
|
||||||
@ -273,7 +274,6 @@ static const struct
|
|||||||
{ "cd_symlinks", &cd_symlinks },
|
{ "cd_symlinks", &cd_symlinks },
|
||||||
{ "show_all_if_ambiguous", &show_all_if_ambiguous },
|
{ "show_all_if_ambiguous", &show_all_if_ambiguous },
|
||||||
{ "max_dirt_limit", &mcview_max_dirt_limit },
|
{ "max_dirt_limit", &mcview_max_dirt_limit },
|
||||||
{ "torben_fj_mode", &torben_fj_mode },
|
|
||||||
{ "use_file_to_guess_type", &use_file_to_check_type },
|
{ "use_file_to_guess_type", &use_file_to_check_type },
|
||||||
{ "alternate_plus_minus", &alternate_plus_minus },
|
{ "alternate_plus_minus", &alternate_plus_minus },
|
||||||
{ "only_leading_plus_minus", &only_leading_plus_minus },
|
{ "only_leading_plus_minus", &only_leading_plus_minus },
|
||||||
@ -363,6 +363,7 @@ static const struct
|
|||||||
{ "mouse_move_pages", &panels_options.mouse_move_pages },
|
{ "mouse_move_pages", &panels_options.mouse_move_pages },
|
||||||
{ "filetype_mode", &panels_options.filetype_mode },
|
{ "filetype_mode", &panels_options.filetype_mode },
|
||||||
{ "permission_mode", &panels_options.permission_mode },
|
{ "permission_mode", &panels_options.permission_mode },
|
||||||
|
{ "torben_fj_mode", &panels_options.torben_fj_mode },
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
|
@ -48,6 +48,7 @@ typedef struct
|
|||||||
gboolean filetype_mode; /* If TRUE then add per file type hilighting */
|
gboolean filetype_mode; /* If TRUE then add per file type hilighting */
|
||||||
gboolean permission_mode; /* If TRUE, we use permission hilighting */
|
gboolean permission_mode; /* If TRUE, we use permission hilighting */
|
||||||
qsearch_mode_t qsearch_mode; /* Quick search mode */
|
qsearch_mode_t qsearch_mode; /* Quick search mode */
|
||||||
|
gboolean torben_fj_mode; /* If TRUE, use some usability hacks by Torben */
|
||||||
} panels_options_t;
|
} panels_options_t;
|
||||||
|
|
||||||
/*** global variables defined in .c file *********************************************************/
|
/*** global variables defined in .c file *********************************************************/
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user