Skip to content

Commit

Permalink
add option "Ask new file name" in the Configuration box
Browse files Browse the repository at this point in the history
Signed-off-by: Ilia Maslakov <[email protected]>
  • Loading branch information
ilia-maslakov committed Jan 31, 2013
1 parent 6e5b50c commit 81cd5dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions doc/man/mc.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -1874,6 +1874,9 @@ command is used. See the section on the
internal file viewer\&.
.\"Internal File Viewer"
.PP
.I Ask new file name
If this option is enabled, file name is asked before open new file in editor.
.PP
.I Auto menus.
If this option is enabled, the user menu will be invoked at startup.
Useful for building menus for non\-unixers.
Expand Down
4 changes: 4 additions & 0 deletions doc/man/ru/mc.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -2002,6 +2002,10 @@ FreeBSD или при использовании xterm вы можете про
компьютере работают неопытные пользователи (операторы), которые должны
выполнять только стандартные операции.
.PP
.I Спрашивать имя нового файла.
Если эта опция включена, то перед открытием нового файла в редакторе
будет запрошено его имя.
.PP
.I Выпадение меню при вызове.
Если эта опция включена, то при вызове главного меню нажатием клавиши F9
будет сразу отображаться перечень пунктов меню (выпадающее меню).
Expand Down
7 changes: 4 additions & 3 deletions src/filemanager/boxes.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ configure_box (void)
QUICK_CHECKBOX (N_("Compute tota&ls"), &file_op_compute_totals, NULL),
QUICK_CHECKBOX (N_("Classic pro&gressbar"), &classic_progressbar, NULL),
QUICK_CHECKBOX (N_("Mkdi&r autoname"), &auto_fill_mkdir_name, NULL),
QUICK_CHECKBOX (N_("Preallocate &space"), &mc_global.vfs.preallocate_space,
QUICK_CHECKBOX (N_("&Preallocate space"), &mc_global.vfs.preallocate_space,
NULL),
QUICK_STOP_GROUPBOX,
QUICK_START_GROUPBOX (N_("Esc key mode")),
Expand All @@ -474,9 +474,11 @@ configure_box (void)
QUICK_START_GROUPBOX (N_("Other options")),
QUICK_CHECKBOX (N_("Use internal edi&t"), &use_internal_edit, NULL),
QUICK_CHECKBOX (N_("Use internal vie&w"), &use_internal_view, NULL),
QUICK_CHECKBOX (N_("A&sk new file name"),
&editor_ask_filename_before_edit, NULL),
QUICK_CHECKBOX (N_("Auto m&enus"), &auto_menu, NULL),
QUICK_CHECKBOX (N_("&Drop down menus"), &drop_menus, NULL),
QUICK_CHECKBOX (N_("Shell &patterns"), &easy_patterns, NULL),
QUICK_CHECKBOX (N_("S&hell patterns"), &easy_patterns, NULL),
QUICK_CHECKBOX (N_("Co&mplete: show all"),
&mc_global.widget.show_all_if_ambiguous, NULL),
QUICK_CHECKBOX (N_("Rotating d&ash"), &nice_rotating_dash, NULL),
Expand All @@ -486,7 +488,6 @@ configure_box (void)
QUICK_SEPARATOR (FALSE),
QUICK_SEPARATOR (FALSE),
QUICK_SEPARATOR (FALSE),
QUICK_SEPARATOR (FALSE),
QUICK_STOP_GROUPBOX,
QUICK_STOP_COLUMNS,
QUICK_BUTTONS_OK_CANCEL,
Expand Down

0 comments on commit 81cd5dd

Please sign in to comment.