Merge remote branch 'osp/only-directories' into homework
[pantumic.git] / doc / man / mc.1.in
blob0ec1b6f3e7bc3bd7e069aba584914bb9ca98e630
1 .\"TOPICS "Topics:"
2 .TH MC 1 "@DATE_OF_MAN_PAGE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander"
3 .\"SKIP_SECTION"
4 .SH "NAME"
5 mc \- Visual shell for Unix\-like systems.
6 .\"SKIP_SECTION"
7 .SH "USAGE"
8 .B mc
9 [\-abcCdfhPstuUVx] [\-l log] [dir1 [dir2]] [\-e [file]] [\-v file]
10 .\"NODE "DESCRIPTION"
11 .SH "DESCRIPTION"
12 GNU Midnight Commander is a directory browser/file manager for
13 Unix\-like operating systems.
14 .\"NODE "OPTIONS"
15 .\"DONT_SPLIT"
16 .SH "OPTIONS"
17 .TP
18 .I \-a, \-\-stickchars
19 Disable usage of graphic characters for line drawing.
20 .TP
21 .I \-b, \-\-nocolor
22 Force black and white display.
23 .TP
24 .I \-c, \-\-color
25 Force color mode, please check the section
26 .\"LINK2"
27 Colors
28 .\"Colors"
29 for more information.
30 .TP
31 .I \-C arg, \-\-colors=arg
32 Specify a different color set in the command line.  The format of arg is
33 documented in the
34 .\"LINK2"
35 Colors
36 .\"Colors"
37 section.
38 .TP
39 .I \-S arg
40 Specify a name of skin in the command line. Technology of skins is
41 documented in the
42 .\"LINK2"
43 Skins\&.
44 .\"Skins"
45 section.
46 .TP
47 .I \-d, \-\-nomouse
48 Disable mouse support.
49 .TP
50 .I \-e [file], \-\-edit[=file]
51 Start the internal editor.  If the file is specified, open it on
52 startup.  See also
53 .BR "mcedit (1)" .
54 .TP
55 .I \-f, \-\-datadir
56 Display the compiled\-in search paths for Midnight Commander files.
57 .TP
58 .I \-k, \-\-resetsoft
59 Reset softkeys to their default from the termcap/terminfo
60 database. Only useful on HP terminals when the function keys don't work.
61 .TP
62 .I \-K file
63 Specify a name of keymap file in the command line.
64 .TP
65 .I \-l file, \-\-ftplog=file
66 Save the ftpfs dialog with the server in file.
67 .TP
68 .I \-P file, \-\-printwd=file
69 Print the last working directory to the specified file.  This option is
70 not meant to be used directly.  Instead, it's used from a special shell
71 script that automatically changes the current directory of the shell to
72 the last directory the Midnight Commander was in.  Source the file
73 .B @prefix@/share/mc/bin/mc.sh
74 (bash and zsh users) or
75 .B @prefix@/share/mc/bin/mc.csh
76 (tcsh users) respectively to define
77 .B mc
78 as an alias to the appropriate shell script.
79 .TP
80 .I \-s
81 Set alternative mode drawing of frameworks.
82 If the section [Lines] is not filled, the symbol for the pseudographics
83 frame is a space, otherwise the frame characters are taken from follow params.
85 .B You can redefine the following variables:
86 .TP
87 .B lefttop
88 left\-top corner
89 .TP
90 .B righttop
91 right\-top corner
92 .TP
93 .B centertop
94 center\-top cross
95 .TP
96 .B centerbottom
97 center\-bottom cross
98 .TP
99 .B leftbottom
100 left\-bottom corner
102 .B rightbottom
103 right\-bottom corner
105 .B leftmiddle
106 left\-middle cross
108 .B rightmiddle
109 right\-middle cross
111 .B centermiddle
112 center cross
114 .B horiz
115 default horizontal line
117 .B vert
118 default vertical line
120 .B thinhoriz
121 thin horizontal line
123 .B thinvert
124 thin vertical line
126 .I \-t, \-\-termcap
127 Used only if the code was compiled with Slang and terminfo: it makes
128 the Midnight Commander use the value of the
129 .B TERMCAP
130 variable for the terminal information instead of the information on
131 the system wide terminal database
133 .I \-u, \-\-nosubshell
134 Disable use of the concurrent shell (only makes sense if the Midnight
135 Commander has been built with concurrent shell support).
137 .I \-U, \-\-subshell
138 Enable use of the concurrent shell support (only makes sense if the
139 Midnight Commander was built with the subshell support set as an
140 optional feature).
142 .I \-v file, \-\-view=file
143 Start the internal viewer to view the specified file.  See also
144 .BR "mcview (1)" .
146 .I \-V, \-\-version
147 Display the version of the program.
149 .I \-x, \-\-xterm
150 Force xterm mode.  Used when running on xterm\-capable terminals (two
151 screen modes, and able to send mouse escape sequences).
153 If specified, the first path name is the directory to show in the
154 selected panel; the second path name is the directory to be shown in
155 the other panel.
156 .\"NODE "Overview"
157 .SH "Overview"
158 The screen of the Midnight Commander is divided into four parts.
159 Almost all of the screen space is taken up by two directory panels.
160 By default, the second line from the bottom of the screen is the
161 shell command line, and the bottom line shows the function key labels.
162 The topmost line is the
163 .\"LINK2"
164 menu bar line\&.
165 .\"Menu Bar"
166 The menu bar line may not be visible, but appears if you click the
167 topmost line with the mouse or press the F9 key.
169 The Midnight Commander provides a view of two directories at the same
170 time. One of the panels is the current panel (a selection bar is in
171 the current panel). Almost all operations take place on the current
172 panel. Some file operations like Rename and Copy by default use the
173 directory of the unselected panel as a destination (don't worry, they
174 always ask you for confirmation first). For more information, see the
175 sections on the
176 .\"LINK2"
177 Directory Panels\&,
178 .\"Directory Panels"
180 .\"LINK2"
181 Left and Right Menus
182 .\"Left and Right Menus"
183 and the
184 .\"LINK2"
185 File Menu\&.
186 .\"File Menu"
188 You can execute system commands from the Midnight Commander by simply
189 typing them. Everything you type will appear on the shell command line,
190 and when you press Enter the Midnight Commander will execute the
191 command line you typed; read the
192 .\"LINK2"
193 Shell Command Line
194 .\"Shell Command Line"
196 .\"LINK2"
197 Input Line Keys
198 .\"Input Line Keys"
199 sections to learn more about the command line.
200 .\"NODE "Mouse Support"
201 .SH "Mouse Support"
202 The Midnight Commander comes with mouse support.  It is activated
203 whenever you are running on an
204 .B xterm(1)
205 terminal (it even works if you take a telnet, ssh or rlogin connection to
206 another machine from the xterm) or if you are running on a Linux
207 console and have the
208 .B gpm
209 mouse server running.
211 When you left click on a file in the directory panels, that file is
212 selected; if you click with the right button, the file is marked (or
213 unmarked, depending on the previous state).
215 Double\-clicking on a file will try to execute the command if it is
216 an executable program; and if the
217 .\"LINK2"
218 extension file
219 .\"Extension File Edit"
220 has a program specified for the file's extension, the specified
221 program is executed.
223 Also, it is possible to execute the commands assigned to the function
224 key labels by clicking on them.
226 The default auto repeat rate for the mouse buttons is 400
227 milliseconds. This may be changed to other values by editing the
228 .\"LINK2"
229 \&~/.config/mc/ini
230 .\"Save Setup"
231 file and changing the
232 .I mouse_repeat_rate
233 parameter.
235 If you are running the Midnight Commander with the mouse support, you
236 can get the default mouse behavior (cutting and pasting text) by holding
237 down the Shift key.
238 .SH ""
239 .\"NODE "Keys"
240 .SH "Keys"
241 Some commands in the Midnight Commander involve the use of the
242 .I Control
243 (sometimes labeled CTRL or CTL) and the
244 .I Meta
245 (sometimes labeled ALT or even Compose) keys. In this manual we will
246 use the following abbreviations:
248 .B C\-<chr>
249 means hold the Control key while typing the character <chr>.
250 Thus C\-f would be: hold the Control key and type f.
252 .B Alt\-<chr>
253 means hold the Meta or Alt key down while typing <chr>.
254 If there is no Meta or Alt key, type
255 .IR ESC ,
256 release it, then type the character <chr>.
258 .B S\-<chr>
259 means hold the Shift key down while typing <chr>.
261 All input lines in the Midnight Commander use an approximation to
262 the GNU Emacs editor's key bindings (default).
264 You may redefine key bindings. See
265 .\"LINK2"
266 .I redefine hotkey bindings
267 .\"Keys_redefine"
269 for more info. All other key bindings (described in this manual) relative
270 to default behavior.
273 There are many sections which tell about the keys. The following are
274 the most important.
277 .\"LINK2"
278 File Menu
279 .\"File Menu"
280 section documents the keyboard shortcuts for the commands appearing in
281 the File menu. This section includes the function keys. Most of these
282 commands perform some action, usually on the selected file or the
283 tagged files.
286 .\"LINK2"
287 Directory Panels
288 .\"Directory Panels"
289 section documents the keys which select a file or tag files as a
290 target for a later action (the action is usually one from the file
291 menu).
294 .\"LINK2"
295 Shell Command Line
296 .\"Shell Command Line"
297 section list the keys which are used for entering and editing command
298 lines. Most of these copy file names and such from the directory
299 panels to the command line (to avoid excessive typing) or access the
300 command line history.
302 .\"LINK2"
303 Input Line Keys
304 .\"Input Line Keys"
305 are used for editing input lines. This means both the command line and
306 the input lines in the query dialogs.
308 .\"NODE "  Keys_redefine"
309 .SH "  Redefine hotkey bindings"
310 Hotkey bindings may be read from external file (keymap\-file).
311 A keymap\-file is searched on the following algorithm (to the first one found):
314 1) command line option
315 .BR \-K
316 .BR \<keymap\>
318 .BR \-\-keymap=\<keymap\>
320 2) Environment variable
321 .BR MC_KEYMAP
323 3) In config file parameter
324 .BR keymap
325 in section
326 .BR [Midnight\-Commander]
328 4) File
329 .BR ~/.local/share/mc/mc.keymap
331 5) File
332 .BR @sysconfdir@/mc/mc.keymap
334 6) File
335 .BR @prefix@/share/mc/mc.keymap
337 Command line option, environment variable and parameter in config file may
338 contain the absolute path to the keymap\-file (with the extension \.keymap
339 or without it). Search of keymap\-file will occur in (to the first one found):
342 .BR ~/.local/share
345 .BR @sysconfdir@/mc/
348 .BR @prefix@/share/mc/
350 .\"NODE "  Miscellaneous Keys"
351 .SH "  Miscellaneous Keys"
352 Here are some keys which don't fall into any of the other categories:
354 .B Enter
355 if there is some text in the command line (the one at the bottom of
356 the panels), then that command is executed. If there is no text in the
357 command line then if the selection bar is over a directory the
358 Midnight Commander does a
359 .B chdir(2)
360 to the selected directory and reloads the information on the panel;
361 if the selection is an executable file then it is executed. Finally,
362 if the extension of the selected file name matches one of the
363 extensions in the
364 .\"LINK2"
365 extensions file
366 .\"Extension File Edit"
367 then the corresponding command is executed.
369 .B C\-l
370 repaint all the information in the Midnight Commander.
372 .B C\-x c
373 run the
374 .\"LINK2"
375 Chmod
376 .\"Chmod"
377 command on a file or on the tagged files.
379 .B C\-x o
380 run the
381 .\"LINK2"
382 Chown
383 .\"Chown"
384 command on the current file or on the tagged files.
386 .B C\-x l
387 run the hard link command.
389 .B C\-x s
390 run the absolute symbolic link command.
392 .B C\-x v
393 run the relative symbolic link command. See the
394 .\"LINK2"
395 File Menu
396 .\"File Menu"
397 section for more information about symbolic links.
399 .B C\-x i
400 set the other panel display mode to information.
402 .B C\-x q
403 set the other panel display mode to quick view.
405 .B C\-x !
406 execute the
407 .\"LINK2"
408 External panelize
409 .\"External panelize"
410 command.
412 .B C\-x h
413 run the
414 .\"LINK2"
415 add directory to hotlist
416 .\"Hotlist"
417 command.
419 .B Alt\-!
420 executes the Filtered view command, described in the
421 .\"LINK2"
422 view command\&.
423 .\"Internal File Viewer"
425 .B Alt\-?
426 executes the
427 .\"LINK2"
428 Find file
429 .\"Find File"
430 command.
432 .B Alt\-c
433 pops up the
434 .\"LINK2"
435 quick cd
436 .\"Quick cd"
437 dialog.
439 .B C\-o
440 when the program is being run in the Linux or FreeBSD console or under
441 an xterm, it will show you the output of the previous command.  When ran
442 on the Linux console, the Midnight Commander uses an external program
443 (cons.saver) to handle saving and restoring of information on the
444 screen.
446 When the subshell support is compiled in, you can type C\-o at any time
447 and you will be taken back to the Midnight Commander main screen, to
448 return to your application just type C\-o.  If you have an application
449 suspended by using this trick, you won't be able to execute other
450 programs from the Midnight Commander until you terminate the suspended
451 application.
452 .\"NODE "  Directory Panels"
453 .SH "  Directory Panels"
454 This section lists the keys which operate on the directory panels. If
455 you want to know how to change the appearance of the panels take a
456 look at the section on
457 .\"LINK2"
458 Left and Right Menus\&.
459 .\"Left and Right Menus"
461 .B Tab, C\-i
462 change the current panel. The old other panel becomes the new current
463 panel and the old current panel becomes the new other panel. The
464 selection bar moves from the old current panel to the new current
465 panel.
467 .B Insert, C\-t
468 to tag files you may use the Insert key (the kich1 terminfo sequence).
469 To untag files, just retag a tagged file.
471 .B M\-e
472 to change charset of panel you may use M\-e (Alt\-e).
473 Recoding is made from selected codepage into system codepage. To
474 cancel the recoding you may select "directory up" (..) in active panel.
475 To cancel the charsets in all directories, select "No translation " in
476 the dialog of encodings.
478 .B Alt\-g, Alt\-r, Alt\-j
479 used to select the top file in a panel, the middle file and the bottom one,
480 respectively.
482 .B Alt\-t
483 toggle the current display listing to show the next display listing
484 mode.
485 With this it is possible to quickly switch to brief listing, long
486 listing, user defined listing mode, and back to the default.
488 .B C\-\\\\ (control\-backslash)
489 show the
490 .\"LINK2"
491 directory hotlist
492 .\"Hotlist"
493 and change to the selected directory.
495 .B + \ (plus)
496 this is used to select (tag) a group of files.  The Midnight Commander
497 will prompt for a selection options. When
498 .I Files only
499 checkbox is on, only files will be selected.  If
500 .I Files only
501 is off, as files as directories will be selected.
502 When
503 .I Shell Patterns
504 checkbox is on, the regular expression is much like the filename globbing
505 in the shell (* standing for zero or more characters and ? standing
506 for one character). If
507 .I Shell Patterns
508 is off, then the tagging of files is done with normal regular
509 expressions (see ed (1)). When
510 .I Case sensitive
511 checkbox is on, the selection will be case sensitive characters.
513 .I Case sensitive
514 is off, the case will be ignored.
516 .B \\\\ (backslash)
517 use the "\\" key to unselect a group of files. This is the opposite of
518 the Plus key.
520 .B up\-key, C\-p
521 move the selection bar to the previous entry in the panel.
523 .B down\-key, C\-n
524 move the selection bar to the next entry in the panel.
526 .B home, a1, Alt\-<
527 move the selection bar to the first entry in the panel.
529 .B end, c1, Alt\->
530 move the selection bar to the last entry in the panel.
532 .B next\-page, C\-v
533 move the selection bar one page down.
535 .B prev\-page, Alt\-v
536 move the selection bar one page up.
538 .B Alt\-o
539 If the currently selected file is a directory, load that directory on
540 the other panel and moves the selection to the next file. If the
541 currently selected file is not a directory, load the parent directory
542 on the other panel and moves the selection to the next file.
544 .B Alt\-i
545 make the current directory of the current panel also the current
546 directory of the other panel.  Put the other panel to the listing mode
547 if needed.  If the current panel is panelized, the other panel doesn't
548 become panelized.
550 .B C\-PageUp, C\-PageDown
551 only when supported by the terminal: change to ".." and to the currently
552 selected directory respectively.
554 .B Alt\-y
555 moves to the previous directory in the history, equivalent to clicking
557 .I <
558 with the mouse.
560 .B Alt\-u
561 moves to the next directory in the history, equivalent to clicking the
562 .I >
563 with the mouse.
565 .B Alt\-Shift\-h, Alt\-H
566 displays the directory history, equivalent to depressing the 'v' with
567 the mouse.
568 .\"NODE "  Quick search"
569 .SH "  Quick search"
570 The Quick search mode allows to perform fast file search in file panel.
571 Press
572 .I C\-s
574 .I Alt\-s
575 to start a filename search in the directory listing.
577 When the search is active, the user input will be added to the search string
578 instead of the command line. If the
579 .I Show mini\-status
580 option is enabled the search string is shown on the mini\-status
581 line. When typing, the selection bar will move to the next file
582 starting with the typed letters. The
583 .I Backspace
585 .I DEL
586 keys can be used to correct typing mistakes. If C\-s is pressed
587 again, the next match is searched for.
589 If quick search is started with double pressing of C\-s, the previous quick
590 search pattern will be used for current search.
592 Besides the filename characters, you can also use wildcard
593 characters '*' and '?'.
594 .\"NODE "  Shell Command Line"
595 .SH "  Shell Command Line"
596 This section lists keys which are useful to avoid excessive typing when
597 entering shell commands.
599 .B Alt\-Enter
600 copy the currently selected file name to the command line.
602 .B C\-Enter
603 same a Alt\-Enter.  May not work on remote systems and some terminals.
605 .B C\-Shift\-Enter
606 copy the full path name of the currently selected file to the command
607 line.  May not work on remote systems and some terminals.
609 .B Alt\-Tab
610 does the filename, command, variable, username and hostname
611 .\"LINK2"
612 completion
613 .\"Completion"
614 for you.
616 .B C\-x t, C\-x C\-t
617 copy the tagged files (or if there are no tagged files, the selected
618 file) of the current panel (C\-x t) or of the other panel (C\-x C\-t) to
619 the command line.
621 .B C\-x p, C\-x C\-p
622 the first key sequence copies the current path name to the command
623 line, and the second one copies the unselected panel's path name to
624 the command line.
626 .B C\-q
627 the quote command can be used to insert characters that are otherwise
628 interpreted by the Midnight Commander (like the '+' symbol)
630 .B Alt\-p, Alt\-n
631 use these keys to browse through the command history. Alt\-p takes you
632 to the last entry, Alt\-n takes you to the next one.
634 .B Alt\-h
635 displays the history for the current input line.
636 .\"NODE "  General Movement Keys"
637 .SH "  General Movement Keys"
638 The help viewer, the file viewer and the directory tree use common
639 code to handle moving. Therefore they accept exactly the same
640 keys. Each of them also accepts some keys of its own.
642 Other parts of the Midnight Commander use some of the same movement
643 keys, so this section may be of use for those parts too.
645 .B Up, C\-p
646 moves one line backward.
648 .B Down, C\-n
649 moves one line forward.
651 .B Prev Page, Page Up, Alt\-v
652 moves one page up.
654 .B Next Page, Page Down, C\-v
655 moves one page down.
657 .B Home, A1
658 moves to the beginning.
660 .B End, C1
661 move to the end.
663 The help viewer and the file viewer accept the following keys in
664 addition the to ones mentioned above:
666 .B b, C\-b, C\-h, Backspace, Delete
667 moves one page up.
669 .B Space bar
670 moves one page down.
672 .B u, d
673 moves one half of a page up or down.
675 .B g, G
676 moves to the beginning or to the end.
677 .\"NODE "  Input Line Keys"
678 .SH "  Input Line Keys"
679 The input lines (they are used for the
680 .\"LINK2"
681 command line
682 .\"Shell Command Line"
683 and for the query dialogs in the program) accept these keys:
685 .B C\-a
686 puts the cursor at the beginning of line.
688 .B C\-e
689 puts the cursor at the end of the line.
691 .B C\-b, move\-left
692 move the cursor one position left.
694 .B C\-f, move\-right
695 move the cursor one position right.
697 .B Alt\-f
698 moves one word forward.
700 .B Alt\-b
701 moves one word backward.
703 .B C\-h, Backspace
704 delete the previous character.
706 .B C\-d, Delete
707 delete the character in the point (over the cursor).
709 .B C\-@
710 sets the mark for cutting.
712 .B C\-w
713 copies the text between the cursor and the mark to a kill buffer and
714 removes the text from the input line.
716 .B Alt\-w
717 copies the text between the cursor and the mark to a kill buffer.
719 .B C\-y
720 yanks back the contents of the kill buffer.
722 .B C\-k
723 kills the text from the cursor to the end of the line.
725 .B Alt\-p, Alt\-n
726 Use these keys to browse through the command history. Alt\-p takes you
727 to the last entry, Alt\-n takes you to the next one.
729 .B Alt\-C\-h, Alt\-Backspace
730 delete one word backward.
732 .B Alt\-Tab
733 does the filename, command, variable, username and hostname
734 .\"LINK2"
735 completion
736 .\"Completion"
737 for you.
738 .SH ""
739 .\"NODE "Menu Bar"
740 .SH "Menu Bar"
741 The menu bar pops up when you press F9 or click the mouse on the top
742 row of the screen. The menu bar has five menus: "Left", "File",
743 "Command", "Options" and "Right".
746 .\"LINK2"
747 Left and Right Menus
748 .\"Left and Right Menus"
749 allow you to modify the appearance of the left and right directory
750 panels.
753 .\"LINK2"
754 File Menu
755 .\"File Menu"
756 lists the actions you can perform on the currently selected file or
757 the tagged files.
760 .\"LINK2"
761 Command Menu
762 .\"Command Menu"
763 lists the actions which are more general and bear no relation to the
764 currently selected file or the tagged files.
767 .\"LINK2"
768 Options Menu
769 .\"Options Menu"
770 lists the actions which allow you to customize the Midnight Commander.
771 .\"NODE "  Left and Right Menus"
772 .SH "  Left and Right (Above and Below) Menus"
773 The outlook of the directory panels can be changed from the
774 .B Left
776 .B Right
777 menus (they are named
778 .B Above
780 .B Below
781 when the horizontal panel split is chosen from the
782 .\"LINK2"
783 Layout
784 .\"Layout"
785 options dialog).
786 .\"NODE "    Listing Mode..."
787 .SH "    Listing Mode..."
788 The listing mode view is used to display a listing of files, there are
789 four different listing modes available:
790 .BR Full ,
791 .BR Brief ,
792 .B Long
794 .BR User .
795 The full directory view shows the file name, the size of the file and
796 the modification time.
798 The brief view shows only the file name and it has two columns
799 (therefore showing twice as many files as other views). The long view
800 is similar to the output of
801 .B "ls \-l"
802 command. The long view takes the whole screen width.
804 If you choose the "User" display format, then you have to specify
805 the display format.
807 The user display format must start with a panel size specifier.  This
808 may be "half" or "full", and they specify a half screen panel and a
809 full screen panel respectively.
811 After the panel size, you may specify the two columns mode on the
812 panel, this is done by adding the number "2" to the user format
813 string.
815 After this you add the name of the fields with an optional size
816 specifier.  This are the available fields you may display:
818 .B name
819 displays the file name.
821 .B size
822 displays the file size.
824 .B bsize
825 is an alternative form of the
826 .B size
827 format. It displays the size of the files and for directories it just
828 shows SUB\-DIR or UP\-\-DIR.
830 .B type
831 displays a one character wide type field.  This character is similar to
832 what is displayed by ls with the \-F flag \-
833 .B *
834 for executable files,
835 .B /
836 for directories,
837 .B @
838 for links,
839 .B =
840 for sockets,
841 .B \-
842 for character devices,
843 .B +
844 for block devices,
845 .B |
846 for pipes,
847 .B ~
848 for symbolic links to directories and
849 .B !
850 for stale symlinks (links that point nowhere).
852 .B mark
853 an asterisk if the file is tagged, a space if it's not.
855 .B mtime
856 file's last modification time.
858 .B atime
859 file's last access time.
861 .B ctime
862 file's status change time.
864 .B perm
865 a string representing the current permission bits of the file.
867 .B mode
868 an octal value with the current permission bits of the file.
870 .B nlink
871 the number of links to the file.
873 .B ngid
874 the GID (numeric).
876 .B nuid
877 the UID (numeric).
879 .B owner
880 the owner of the file.
882 .B group
883 the group of the file.
885 .B inode
886 the inode of the file.
888 Also you can use following keywords to define the panel layout:
890 .B space
891 a space in the display format.
893 .B |
894 add a vertical line to the display format.
896 To force one field to a fixed size (a size specifier), you just add
897 .B :
898 followed by the number of characters you want the field to have.  If the
899 number is followed by the symbol
900 .BR + ,
901 then the size specifies the minimal field size \- if the program finds
902 out that there is more space on the screen, it will then expand that
903 field.
905 For example, the
906 .B Full
907 display corresponds to this format:
909 half type name | size | mtime
911 And the
912 .B Long
913 display corresponds to this format:
915 full perm space nlink space owner space group space size space mtime
916 space name
918 This is a nice user display format:
920 half name | size:7 | type mode:3
922 Panels may also be set to the following modes:
924 .B "Info"
925 The info view display information related to the currently
926 selected file and if possible information about the current file
927 system.
929 .B "Tree"
930 The tree view is quite similar to the
931 .\"LINK2"
932 directory tree
933 .\"Directory Tree"
934 feature. See the section about it for more information.
936 .B "Quick View"
937 In this mode, the panel will switch to a reduced
938 .\"LINK2"
939 viewer
940 .\"Internal File Viewer"
941 that displays the contents of the currently selected file, if you
942 select the panel (with the tab key or the mouse), you will have access
943 to the usual viewer commands.
944 .\"NODE "    Sort Order..."
945 .SH "    Sort Order..."
946 The eight sort orders are by name, by extension, by modification time,
947 by access time, and by inode information modification time, by size,
948 by inode and unsorted.  In the Sort order dialog box you can choose
949 the sort order and you may also specify if you want to sort in reverse
950 order by checking the reverse box.
952 By default directories are sorted before files but this can be changed
953 from the
954 .\"LINK2"
955 Panel options
956 .\"Panel options"
957 menu (option
958 .BR "Mix all files" ).
959 .\"NODE "    Filter..."
960 .SH "    Filter..."
961 The filter command allows you to specify a shell pattern (for example
962 .BR "*.tar.gz" )
963 which the files must match to be shown. Regardless
964 of the filter pattern, the directories and the links to directories
965 are always shown in the directory panel.
966 .\"NODE "    Reread"
967 .SH "    Reread"
968 The reread command reload the list of files in the directory. It is
969 useful if other processes have created or removed files.  If you
970 have panelized file names in a panel this will reload the directory
971 contents and remove the panelized information (See the section
972 .\"LINK2"
973 External panelize
974 .\"External panelize"
975 for more information).
976 .\"NODE "  File Menu"
977 .SH "  File Menu"
978 The Midnight Commander uses the F1 \- F10 keys as keyboard shortcuts
979 for commands appearing in the file menu.  The escape sequences for the
980 function keys are terminfo capabilities kf1 trough kf10.  On terminals
981 without function key support, you can achieve the same functionality by
982 pressing the ESC key and then a number in the range 1 through 9 and 0
983 (corresponding to F1 to F9 and F10 respectively).
985 The File menu has the following commands (keyboard shortcuts in parentheses):
987 .B Help (F1)
989 Invokes the built\-in hypertext help viewer. Inside the
990 .\"LINK2"
991 help viewer\&,
992 .\"Contents"
993 you can use the Tab key to select the next link and the Enter key to
994 follow that link. The keys Space and Backspace are used to move
995 forward and backward in a help page. Press F1 again to get the full
996 list of accepted keys.
998 .B Menu (F2)
1000 Invoke the
1001 .\"LINK2"
1002 user menu\&.
1003 .\"Menu File Edit"
1004 The user menu provides an easy way to provide users with a menu and
1005 add extra features to the Midnight Commander.
1007 .B View (F3, F13)
1009 View the currently selected file. By default this invokes the
1010 .\"LINK2"
1011 Internal File Viewer
1012 .\"Internal File Viewer"
1013 but if the option "Use internal view" is off, it invokes an external
1014 file viewer specified by the
1015 .B VIEWER
1016 environment variable.  If
1017 .B VIEWER
1018 is undefined, the
1019 .B PAGER
1020 environment variable is tried.  If
1021 .B PAGER
1022 is also undefined, the "view" command is invoked.  If you use F13
1023 instead, the viewer will be invoked without doing any formatting or
1024 preprocessing to the file.
1026 .B Filtered View (Alt\-!)
1028 This command prompts for a command
1029 and its arguments (the argument defaults to the currently selected
1030 file name), the output from such command is shown in the internal file
1031 viewer.
1033 .B Edit (F4, F14)
1035 Press F4 to edit the highlighted file.  Press F14 (usually F14)
1036 to start the editor with a new, empty file.
1037 Currently they invoke the
1038 .B vi
1039 editor, or the editor specified in the
1040 .B EDITOR
1041 environment variable, or the
1042 .\"LINK2"
1043 Internal File Editor
1044 .\"Internal File Editor"
1045 if the use_internal_edit option is on.
1047 .B Copy (F5, F15)
1049 Press F5 to pop up an input dialog to copy the currently selected file (or
1050 the tagged files, if there is at least one file tagged) to the
1051 directory/filename you specify in the input dialog.  The destination
1052 defaults to the directory in the non\-selected panel. During this
1053 process, you can press C\-c or ESC to abort the operation. For details
1054 about source mask (which will be usually either * or ^\\(.*\\)$ depending
1055 on setting of Use shell patterns) and possible wildcards in the destination
1057 .\"LINK2"
1058 Mask copy/rename\&.
1059 .\"Mask Copy/Rename"
1061 F15 (usually F15) is similar, but defaults to the directory in the
1062 selected panel. It always operates on the selected file, regardless of
1063 any tagged files.
1065 On some systems, it is possible to do the copy in the background by
1066 clicking on the background button (or pressing Alt\-b in the dialog
1067 box).  The
1068 .\"LINK2"
1069 Background Jobs
1070 .\"Background jobs"
1071 is used to control the background process.
1073 .B Link (C\-x l)
1075 Create a hard link to the current file.
1077 .B Absolute symlink (C\-x s)
1079 Create a absolute symbolic link to the current file.
1081 .B Relative symLink (C\-x v)
1083 Create a relative symbolic link to the current file.
1085 To those of you who don't know what links are: creating a link to a file
1086 is a bit like copying the file, but both the source filename and the destination
1087 filename represent the same file image. For example, if you edit one of these
1088 files, all changes you make will appear in both files. Some people call
1089 links aliases or shortcuts.
1091 A hard link appears as a real file. After making it, there is no way of
1092 telling which one is the original and which is the link. If you delete
1093 either one of them the other one is still intact. It is very difficult
1094 to notice that the files represent the same image. Use hard links when
1095 you don't even want to know.
1097 A symbolic link is a reference to the name of the original file. If
1098 the original file is deleted the symbolic link is useless. It is quite
1099 easy to notice that the files represent the same image. The Midnight
1100 Commander shows an "@"\-sign in front of the file name if it is a
1101 symbolic link to somewhere (except to directory, where it shows a tilde (~)).
1102 The original file which the link points to is shown on mini\-status line if the
1103 .I "Show mini\-status"
1104 option is enabled. Use symbolic links when you want to avoid the
1105 confusion that can be caused by hard links.
1107 When you press "C\-x s" Midnight Commander will automatically fill in the
1108 complete path+filename of the original file and suggest a name for the link.
1109 You can change either one.
1111 Sometimes you may want to change the absolute path of the original into
1112 a relative path. An absolute path starts from the root directory:
1114 .I /home/frodo/mc/mc -> /home/frodo/new/mc
1116 A relative link describes the original file's location starting from the
1117 location of the link itself:
1119 .I /home/frodo/mc/mc -> ../new/mc
1121 You can force Midnight Commander to suggest a relative path by pressing
1122 "C\-x v" instead of "C\-x s".
1124 .B Rename/Move (F6, F16)
1126 Press F6 to pop up an input dialog to copy the currently selected file (or
1127 the tagged files, if there is at least one file tagged) to the
1128 directory/filename you specify in the input dialog.  The destination
1129 defaults to the directory in the non\-selected panel. For more details
1130 look at Copy (F5) operation above, most of the things are quite similar.
1132 F16 (usually F16) is similar, but defaults to the directory in the
1133 selected panel. It always operates on the selected file, regardless of
1134 any tagged files.
1136 On some systems, it is possible to do the copy in the background by
1137 clicking on the background button (or pressing Alt\-b in the dialog
1138 box).  The
1139 .\"LINK2"
1140 Background Jobs
1141 .\"Background jobs"
1142 is used to control the background process.
1144 .B Mkdir (F7)
1146 Pop up an input dialog and creates the directory specified.
1148 .B Delete (F8)
1150 Delete the currently selected file or the tagged files in the
1151 currently selected panel. During the process, you can press C\-c or
1152 ESC to abort the operation.
1154 .B Quick cd (Alt\-c)
1155 Use the
1156 .\"LINK2"
1157 quick cd
1158 .\"Quick cd"
1159 command if you have full command line and want to cd somewhere.
1161 .B Select group (+)
1163 This is used to select (tag) a group of files. The Midnight Commander
1164 will prompt for a selection options. When
1165 .I Files only
1166 checkbox is on, only files will be selected.  If
1167 .I Files only
1168 is off, as files as directories will be selected.
1169 When
1170 .I Shell Patterns
1171 checkbox is on, the regular expression is much like the filename globbing
1172 in the shell (* standing for zero or more characters and ?  standing
1173 for one character). If
1174 .I Shell Patterns
1175 is off, then the tagging of files is done with normal regular
1176 expressions (see ed (1)). When
1177 .I Case sensitive
1178 checkbox is on, the selection will be case sensitive characters.
1180 .I Case sensitive
1181 is off, the case will be ignored.
1183 .B Unselect group (\\\\)
1185 Used to unselect a group of files. This is the opposite of the
1186 .I "Select group"
1187 command.
1189 .B Quit (F10, Shift\-F10)
1191 Terminate the Midnight Commander.  Shift\-F10 is used when you want to
1192 quit and you are using the shell wrapper.  Shift\-F10 will not take you
1193 to the last directory you visited with the Midnight Commander, instead
1194 it will stay at the directory where you started the Midnight Commander.
1195 .\"NODE "    Quick cd"
1196 .SH "    Quick cd"
1197 This command is useful if you have a full command line and want to
1198 .\"LINK2"
1200 .\"The cd internal command"
1201 somewhere without having to yank and paste the command line. This command
1202 pops up a small dialog, where you enter everything you would enter after
1203 .B cd
1204 on the command line and then you press enter. This features all the things
1205 that are already in the
1206 .\"LINK2"
1207 internal cd command\&.
1208 .\"The cd internal command"
1209 .\"NODE "  Command Menu"
1210 .SH "  Command Menu"
1212 .\"LINK2"
1213 Directory tree
1214 .\"Directory Tree"
1215 command shows a tree figure of the directories.
1218 .\"LINK2"
1219 "Find file"
1220 .\"Find File"
1221 command allows you to search for a specific file.
1223 The "Swap panels" command swaps the contents of the two directory panels.
1225 The "Switch panels on/off" command shows the output of the last shell command.
1226 This works only on xterm and on Linux and FreeBSD console.
1228 The "Compare directories" command compares the directory
1229 panels with each other. You can then use the Copy (F5) command to make
1230 the panels identical. There are three compare methods. The quick method
1231 compares only file size and file date. The thorough method makes a
1232 full byte\-by\-byte compare. The thorough method is not available if the
1233 machine does not support the mmap(2) system call.  The size\-only
1234 compare method just compares the file sizes and does not check the
1235 contents or the date times, it just checks the file size.
1238 .\"LINK2"
1239 "External panelize"
1240 .\"External panelize"
1241 allows you to execute an external program, and make the output of that
1242 program the contents of the current panel.
1244 The "Command history" command shows a list of typed commands. The
1245 selected command is copied to the command line. The command history
1246 can also be accessed by typing Alt\-p or Alt\-n.
1249 .\"LINK2"
1250 "Directory hotlist"
1251 .\"Hotlist"
1252 command makes changing of the current directory to often used directories
1253 faster.
1256 .\"LINK2"
1257 "Screen list"
1258 .\"Screen selector"
1259 command shows a dialog window with the list of currently running
1260 internal editors, viewers and other MC modules that support this mode.
1263 .\"LINK2"
1264 "Edit extension file"
1265 .\"Extension File Edit"
1266 command allows you to specify programs to executed when you try to
1267 execute, view, edit and do a bunch of other thing on files
1268 with certain extensions (filename endings).
1271 .\"LINK2"
1272 "Edit menu file"
1273 .\"Menu File Edit"
1274 command may be used for editing the user menu (which appears by
1275 pressing F2).
1276 .\"NODE "    Directory Tree"
1277 .SH "    Directory Tree"
1278 The Directory Tree command shows a tree figure of the directories. You
1279 can select a directory from the figure and the Midnight Commander will
1280 change to that directory.
1282 There are two ways to invoke the tree. The real directory tree command
1283 is available from Commands menu. The other way is to select tree view
1284 from the Left or Right menu.
1286 To get rid of long delays the Midnight Commander creates the tree
1287 figure by scanning only a small subset of all the directories. If the
1288 directory which you want to see is missing, move to its parent
1289 directory and press C\-r (or F2).
1291 You can use the following keys:
1293 .\"LINK2"
1294 General movement keys
1295 .\"General Movement Keys"
1296 are accepted.
1298 .B Enter.
1299 In the directory tree, exits the directory tree and changes to this
1300 directory in the current panel. In the tree view, changes to this
1301 directory in the other panel and stays in tree view mode in the
1302 current panel.
1304 .B C\-r, F2 (Rescan).
1305 Rescan this directory. Use this when the tree figure is out of date:
1306 it is missing subdirectories or shows some subdirectories which don't
1307 exist any more.
1309 .B F3 (Forget).
1310 Delete this directory from the tree figure. Use this to remove clutter
1311 from the figure. If you want the directory back to the tree figure
1312 press F2 in its parent directory.
1314 .B F4 (Static/Dynamic).
1315 Toggle between the dynamic navigation mode (default) and the static
1316 navigation mode.
1318 In the static navigation mode you can use the Up and Down keys to
1319 select a directory. All known directories are shown.
1321 In the dynamic navigation mode you can use the Up and Down keys to
1322 select a sibling directory, the Left key to move to the parent
1323 directory, and the Right key to move to a child directory. Only the
1324 parent, sibling and children directories are shown, others are left
1325 out. The tree figure changes dynamically as you traverse.
1327 .B F5 (Copy).
1328 Copy the directory.
1330 .B F6 (RenMov).
1331 Move the directory.
1333 .B F7 (Mkdir).
1334 Make a new directory below this directory.
1336 .B F8 (Delete).
1337 Delete this directory from the file system.
1339 .B C\-s, Alt\-s.
1340 Search the next directory matching the search string. If there is
1341 no such directory these keys will move one line down.
1343 .B C\-h, Backspace.
1344 Delete the last character of the search string.
1346 .B Any other character.
1347 Add the character to the search string and move to the next directory
1348 which starts with these characters. In the tree view you must first
1349 activate the search mode by pressing C\-s. The search string is shown
1350 in the mini status line.
1352 The following actions are available only in the directory tree. They
1353 aren't supported in the tree view.
1355 .B F1 (Help).
1356 Invoke the help viewer and show this section.
1358 .B Esc, F10.
1359 Exit the directory tree. Do not change the directory.
1361 The mouse is supported. A double\-click behaves like Enter. See
1362 also the section on
1363 .\"LINK2"
1364 mouse support\&.
1365 .\"Mouse Support"
1366 .\"NODE "    Find File"
1367 .SH "    Find File"
1368 The Find File feature first asks for the start directory for the
1369 search and the filename to be searched for. By pressing the Tree
1370 button you can select the start directory from the
1371 .\"LINK2"
1372 directory tree
1373 .\"Directory Tree"
1374 figure.
1376 Option \"Whole words\" allows select only those files containing matches that
1377 form whole words. Like grep \-w.
1379 You can start the search by pressing the OK button.
1380 During the search you can stop from the Stop button and continue from
1381 the Start button.
1383 When the "Only directories" checkbox is checked, only directories are
1384 matched against filename. Ordinary files are not matched and no file
1385 is searched for content even if the content field is not empty.
1387 You can browse the filelist with the up and down arrow keys. The Chdir
1388 button will change to the directory of the currently selected
1389 file. The Again button will ask for the parameters for a new
1390 search. The Quit button quits the search operation. The Panelize
1391 button will place the found files to the current directory panel so
1392 that you can do additional operations on them (view, copy, move,
1393 delete and so on). After panelizing you can press C\-r to return to the
1394 normal file listing.
1396 The 'Enable ignore directories' checkbox and input field below it
1397 allow to set up the list of directories that should be skip during the search
1398 files (for example, you may want to avoid searches on a CD\-ROM or on a NFS
1399 directory that is mounted across a slow link). List components must be separated
1400 with a colon, here is an example:
1403 /cdrom:/nfs/wuarchive:/afs
1406 Relative paths are supported also. The following example shows how to skip special
1407 directories of version control systems:
1409 /cdrom:/nfs/wuarchive:/afs:.svn:.git:CVS
1412 Attention: input field can contain a dot (.), this means the current absolute path.
1414 You may consider using the
1415 .\"LINK2"
1416 External panelize
1417 .\"External panelize"
1418 command for some operations. Find file command is for simple queries
1419 only, while using External panelize you can do as mysterious searches
1420 as you would like.
1421 .\"NODE "    External panelize"
1422 .SH "    External panelize"
1423 The External panelize allows you to execute an external program, and
1424 make the output of that program the contents of the current panel.
1426 For example, if you want to manipulate in one of the panels all the
1427 symbolic links in the current directory, you can use external
1428 panelization to run the following command:
1431 find . \-type l \-print
1434 Upon command completion, the directory contents of the panel will no
1435 longer be the directory listing of the current directory, but all the
1436 files that are symbolic links.
1438 If you want to panelize all of the files that have been downloaded
1439 from your FTP server, you can use this awk command to extract the file
1440 name from the transfer log files:
1443 awk '$9 ~! /incoming/ { print $9 }' < /var/log/xferlog
1446 You may want to save often used panelize commands under a descriptive name,
1447 so that you can recall them quickly. You do this by typing the command on
1448 the input line and pressing Add new button. Then you enter a name under
1449 which you want the command to be saved. Next time, you just choose that
1450 command from the list and do not have to type it again.
1451 .\"NODE "    Hotlist"
1452 .SH "    Hotlist"
1453 The Directory hotlist command shows the labels of the directories
1454 in the directory hotlist.  The Midnight Commander will change to the
1455 directory corresponding to the selected label.  From the hotlist dialog,
1456 you can remove already created label/directory pairs and add new ones.
1457 To add new directories quickly, you can use the Add to hotlist command
1458 (C\-x h), which adds the current directory into the directory hotlist,
1459 asking just for the label for the directory.
1461 This makes cd to often used directories faster. You may consider using the
1462 CDPATH variable as described in
1463 .\"LINK2"
1464 internal cd command
1465 .\"The cd internal command"
1466 description.
1467 .\"NODE "    Extension File Edit"
1468 .SH "    Extension File Edit"
1469 This will invoke your editor on the file
1470 .IR ~/.local/share/mc/bindings .
1471 The format of this file following:
1473 All lines starting with # or empty lines are thrown away.
1475 Lines starting in the first column should have following format:
1477 .IR keyword/expr ,
1478 i.e. everything after the slash until new line is
1479 .IR expr .
1481 .I keyword
1482 can be:
1484 .I shell
1486 .I expr
1487 is an extension (no wildcards).  File matches it its name ends
1488 with
1489 .IR expr .
1490 Example:
1491 .I shell/.tar
1492 matches
1493 .IR *.tar .
1495 .I regex
1497 .I expr
1498 is a regular expression.  File matches if its name matches the regular
1499 expression.
1501 .I directory
1503 .I expr
1504 is a regular expression.  File matches if it is a directory and its name
1505 matches the regular expression.
1507 .I type
1509 .I expr
1510 is a regular expression.  File matches if the output of
1511 .I file %f
1512 without the initial "filename:" part matches regular expression
1513 .IR expr .
1515 .I default
1516 \- matches any file.
1517 .I expr
1518 is ignored.
1520 .I include
1521 \- denotes a common section.
1522 .I expr
1523 is the name of the section.
1525 Other lines should start with a space or tab and should be of the format:
1526 .I keyword=command
1527 (with no spaces around =), where
1528 .I keyword
1529 should be:
1530 .I Open
1531 (invoked on Enter or double click),
1532 .I View
1533 (F3),
1534 .I Edit
1535 (F4) or
1536 .I Include
1537 (to add rules from the common section).
1538 .I command
1539 is any one\-line shell command, with the simple
1540 .\"LINK2"
1541 macro substitution\&.
1542 .\"Macro Substitution"
1544 Rules are matched from top to bottom, thus the order is important.  If
1545 the appropriate action is missing, search continues as if this rule
1546 didn't match (i.e. if a file matches the first and second entry and View
1547 action is missing in the first one, then on pressing F3 the View action
1548 from the second entry will be used).
1549 .I default
1550 should match all the actions.
1551 .\"NODE "    Background jobs"
1552 .SH "    Background Jobs"
1553 This lets you control the state of any background Midnight Commander
1554 process (only copy and move files operations can be done in the
1555 background).  You can stop, restart and kill a background job from
1556 here.
1557 .\"NODE "    Menu File Edit"
1558 .SH "    Menu File Edit"
1559 The user menu is a menu of useful actions that can be customized by
1560 the user. When you access the user menu, the
1561 file .mc.menu from the current directory is used if it exists,
1562 but only if it is owned by user or root and is not world\-writable.
1563 If no such file found, ~/.local/share/mc/menu is tried in the same way,
1564 and otherwise mc uses the default system\-wide menu
1565 @prefix@/share/mc/mc.menu.
1567 The format of the menu file is very simple. Lines that start with
1568 anything but space or tab are considered entries for the menu (in
1569 order to be able to use it like a hot key, the first character should
1570 be a letter). All the lines that start with a space or a tab are the
1571 commands that will be executed when the entry is selected.
1573 When an option is selected all the command lines of the option are
1574 copied to a temporary file in the temporary directory (usually
1575 /usr/tmp) and then that file is executed. This allows the user to put
1576 normal shell constructs in the menus. Also simple macro substitution
1577 takes place before executing the menu code. For more information, see
1578 .\"LINK2"
1579 macro substitution\&.
1580 .\"Macro Substitution"
1582 Here is a sample mc.menu file:
1585 A       Dump the currently selected file
1586         od \-c %f
1588 B       Edit a bug report and send it to root
1589         I=`mktemp ${MC_TMPDIR:\-/tmp}/mail.XXXXXX` || exit 1
1590         vi $I
1591         mail \-s "Midnight Commander bug" root < $I
1592         rm \-f $I
1594 M       Read mail
1595         emacs \-f rmail
1597 N       Read Usenet news
1598         emacs \-f gnus
1600 H       Call the info hypertext browser
1601         info
1603 J       Copy current directory to other panel recursively
1604         tar cf \- . | (cd %D && tar xvpf \-)
1606 K       Make a release of the current subdirectory
1607         echo \-n "Name of distribution file: "
1608         read tar
1609         ln \-s %d `dirname %d`/$tar
1610         cd ..
1611         tar cvhf ${tar}.tar $tar
1613 = f *.tar.gz | f *.tgz & t n
1614 X       Extract the contents of a compressed tar file
1615         tar xzvf %f
1618 .B Default Conditions
1620 Each menu entry may be preceded by a condition. The condition must
1621 start from the first column with a '=' character. If the condition is
1622 true, the menu entry will be the default entry.
1625 Condition syntax:       = <sub\-cond>
1626   or:                   = <sub\-cond> | <sub\-cond> ...
1627   or:                   = <sub\-cond> & <sub\-cond> ...
1629 Sub\-condition is one of following:
1631   y <pattern>           syntax of current file matching pattern?
1632                         (for edit menu only)
1633   f <pattern>           current file matching pattern?
1634   F <pattern>           other file matching pattern?
1635   d <pattern>           current directory matching pattern?
1636   D <pattern>           other directory matching pattern?
1637   t <type>              current file of type?
1638   T <type>              other file of type?
1639   x <filename>          is it executable filename?
1640   ! <sub\-cond>         negate the result of sub\-condition
1643 Pattern is a normal shell pattern or a regular expression, according
1644 to the shell patterns option. You can override the global value of
1645 the shell patterns option by writing "shell_patterns=x" on the first
1646 line of the menu file (where "x" is either 0 or 1).
1648 Type is one or more of the following characters:
1651   n     not a directory
1652   r     regular file
1653   d     directory
1654   l     link
1655   c     character device
1656   b     block device
1657   f     FIFO (pipe)
1658   s     socket
1659   x     executable file
1660   t     tagged
1663 For example 'rlf' means either regular file, link or fifo. The 't'
1664 type is a little special because it acts on the panel instead of the
1665 file. The condition '=t t' is true if there are tagged files in the
1666 current panel and false if not.
1668 If the condition starts with '=?' instead of '=' a debug trace will be
1669 shown whenever the value of the condition is calculated.
1671 The conditions are calculated from left to right. This means
1673         = f *.tar.gz | f *.tgz & t n
1675 is calculated as
1677         ( (f *.tar.gz) | (f *.tgz) ) & (t n)
1680 Here is a sample of the use of conditions:
1683 = f *.tar.gz | f *.tgz & t n
1684 L       List the contents of a compressed tar\-archive
1685         gzip \-cd %f | tar xvf \-
1688 .B Addition Conditions
1690 If the condition begins with '+' (or '+?') instead of '=' (or '=?') it
1691 is an addition condition. If the condition is true the menu entry will
1692 be included in the menu. If the condition is false the menu entry will
1693 not be included in the menu.
1695 You can combine default and addition conditions by starting condition
1696 with '+=' or '=+' (or '+=?' or '=+?' if you want debug trace). If you
1697 want to use two different conditions, one for adding and another for
1698 defaulting, you can precede a menu entry with two condition lines, one
1699 starting with '+' and another starting with '='.
1701 Comments are started with '#'. The additional comment lines must start
1702 with '#', space or tab.
1703 .\"NODE "  Options Menu"
1704 .SH "  Options Menu"
1705 The Midnight Commander has some options that may be toggled on and
1706 off in several dialogs which are accessible from this menu. Options
1707 are enabled if they have an asterisk or "x" in front of them.
1710 .\"LINK2"
1711 Configuration
1712 .\"Configuration"
1713 command pops up a dialog from which you can change most of settings of
1714 the Midnight Commander.
1717 .\"LINK2"
1718 Layout
1719 .\"Layout"
1720 command pops up a dialog from which you specify a bunch of options how mc
1721 looks like on the screen.
1724 .\"LINK2"
1725 Panel options
1726 .\"Panel options"
1727 command pops up a dialog from which you specify options of file manager panels.
1730 .\"LINK2"
1731 Confirmation
1732 .\"Confirmation"
1733 command pops up a dialog from which you specify which actions you want to
1734 confirm.
1737 .\"LINK2"
1738 Display bits
1739 .\"Display bits"
1740 command pops up a dialog from which you may select which characters is your
1741 terminal able to display.
1744 .\"LINK2"
1745 Learn keys
1746 .\"Learn keys"
1747 command pops up a dialog from which you test some keys which are not working
1748 on some terminals and you may fix them.
1751 .\"LINK2"
1752 Virtual FS
1753 .\"Virtual FS"
1754 command pops up a dialog from which you specify some VFS related options.
1757 .\"LINK2"
1758 Save setup
1759 .\"Save Setup"
1760 command saves the current settings of the Left, Right and Options
1761 menus. A small number of other settings is saved, too.
1762 .\"NODE "    Configuration"
1763 .SH "    Configuration"
1764 The options in this dialog are divided into several groups: "File
1765 operation options", "Esc key mode", "Pause after run" and "Other options".
1767 .B File operation options
1769 .I Verbose operation.
1770 This toggles whether the file Copy, Rename and Delete operations are
1771 verbose (i.e., display a dialog box for each operation). If you have a
1772 slow terminal, you may wish to disable the verbose operation. It is
1773 automatically turned off if the speed of your terminal is less than
1774 9600 bps.
1776 .I Compute totals.
1777 If this option is enabled, the Midnight Commander computes total byte
1778 sizes and total number of files prior to any Copy, Rename and Delete
1779 operations. This will provide you with a more accurate progress bar
1780 at the expense of some speed. This option has no effect, if
1781 .I Verbose  operation
1782 is disabled.
1784 .I Classic progressbar.
1785 If this option is enabled, the progressbar of Copy/Move/Delete operations
1786 is always grown form left to right. If disabled, the growing direction
1787 of progressbar follows to direction of Copy/Move/Delete operation:
1788 from left panel to right one and vice versa. Enabled by default.
1790 .I Mkdir autoname
1791 When you press F7 to create a new directory, the input line in popup dialog
1792 will be filled by name of current file or directory in active panel.
1793 Disabled by default.
1795 .B Esc key mode.
1797 By default the Midnight Commander treats the ESC key as a key prefix.
1798 Therefore, you should press Esc code twice to exit a dialog. But there is
1799 a possibility to use a single press of ESC key for that action.
1801 .I Single press.
1802 By default this option is disabled. If you'll enable it, the ESC key
1803 will act as a prefix key for set up time interval (see
1804 .I Timeout
1805 option below), and if no extra keys have arrived, then the ESC key
1806 is interpreted as a cancel key (ESC ESC).
1808 .I Timeout.
1809 This options is used to setup the time interval (in microseconds)
1810 for single press of ESC key. By default, this inrerval is one second
1811 (1000000 microseconds). Also the timeout can be set via KEYBOARD_KEY_TIMEOUT_US
1812 environment variable (also in microseconds), which has higher priority
1813 than Timeout option value.
1815 .B Pause after run
1817 After executing your commands, the Midnight Commander can pause, so
1818 that you can examine the output of the command.  There are three
1819 possible settings for this variable:
1821 .IR Never .
1822 Means that you do not want to see the output of your command.  If you
1823 are using the Linux or FreeBSD console or an xterm, you will be able to
1824 see the output of the command by typing C\-o.
1826 .IR On dumb terminals .
1827 You will get the pause message on terminals that are not capable of
1828 showing the output of the last command executed (any terminal that is
1829 not an xterm or the Linux console).
1831 .IR Always .
1832 The program will pause after executing all of your commands.
1834 .B Other options
1836 .I Use internal editor.
1837 If this option is enabled, the built\-in file editor is used to edit
1838 files. If the option is disabled, the editor specified in the
1839 .B EDITOR
1840 environment variable is used.
1841 If no editor is specified,
1842 .B vi
1843 is used.  See the section on the
1844 .\"LINK2"
1845 internal file editor\&.
1846 .\"Internal File Editor"
1848 .I Use internal viewer.
1849 If this option is enabled, the built\-in file viewer is used to view
1850 files. If the option is disabled, the pager specified in the
1851 .B PAGER
1852 environment variable is used.
1853 If no pager is specified, the
1854 .B view
1855 command is used.  See the section on the
1856 .\"LINK2"
1857 internal file viewer\&.
1858 .\"Internal File Viewer"
1860 .I Auto menus.
1861 If this option is enabled, the user menu will be invoked at startup.
1862 Useful for building menus for non\-unixers.
1864 .I Drop down menus.
1865 When this option is enabled, the pull down menus will be activated as
1866 soon as you press the F9 key. Otherwise, you will only get the menu title,
1867 and you will have to activate the menu either with the arrow keys or with
1868 the hotkeys. It is recommended if you are using hotkeys.
1870 .I Shell Patterns.
1871 By default the Select, Unselect and Filter commands will use shell\-like
1872 regular expressions. The following conversions are performed to achieve
1873 this: the '*' is replaced by '.*' (zero or more characters); the '?'
1874 is replaced by '.' (exactly one character) and '.' by the literal
1875 dot. If the option is disabled, then the regular expressions are the
1876 ones described in ed(1).
1878 .I Complete: show all.
1879 By default the Midnight Commander pops up all possible
1880 .\"LINK2"
1881 completions
1882 .\"Completion"
1883 if the completion is ambiguous only when you press
1884 .B Alt\-Tab
1885 for the second time.  For the first time, it just completes as much as
1886 possible and beeps in the case of ambiguity.  Enable this option if you
1887 want to see all possible completions even after pressing
1888 .B Alt\-Tab
1889 the first time.
1891 .I Rotating dash.
1892 If this option is enabled, the
1893 Midnight Commander shows a rotating dash in the upper right corner
1894 as a work in progress indicator.
1896 .I Cd follows links.
1897 This option, if set, causes the Midnight Commander to follow the
1898 logical chain of directories when changing current directory
1899 either in the panels, or using the cd command. This is the default
1900 behavior of bash. When unset, the Midnight Commander follows the
1901 real directory structure, so cd .. if you've entered that directory
1902 through a link will move you to the current directory's real parent
1903 and not to the directory where the link was present.
1905 .I Safe delete.
1906 If this option is enabled, deleting files and directory hotlist entries
1907 unintentionally becomes more difficult.  The default selection in the
1908 confirmation dialogs for deletion changes from "Yes" to "No".
1909 This option is disabled by default.
1911 .I Auto save setup.
1912 If this option is enabled, when you exit the Midnight Commander the
1913 configurable options of the Midnight Commander are saved in the
1914 ~/.config/mc/ini file.
1915 .\"NODE "    Layout"
1916 .SH "    Layout"
1917 The layout dialog gives you a possibility to change the general layout
1918 of screen. The options in this dialog are divided into several groups:
1919 "Panel split", "Console output" and "Other options".
1921 .B Panel split
1923 The rest of the screen area is used for the two directory panels. You
1924 can specify whether the area is split to the panels in
1925 .I Vertical
1926  or
1927 .I Horizontal
1928 direction. Panel layout can be changed using Alt\-, (Alt\-comma) shortcut.
1930 .I Equal split.
1931 By default, panels have equal sizes. Using this option you can specify
1932 an unequal split.
1934 .B Console output
1936 On the Linux or FreeBSD console you can specify how many lines are shown
1937 in the output window. This option is available if Midnight Commander runs
1938 on native console only.
1940 .B Other options
1942 .I Menu bar visible.
1943 If enabled, main menu of Midnight Commander is always visible on the top row
1944 of screen above panels. Enabled by default.
1946 .I Command prompt.
1947 If enabled, command line is avalable. Enabled by default.
1949 .I Keybar visible.
1950 If enabled, 10 lables associated with F1\-F10 keys are located at the bottom
1951 row of screen. Enabled by default.
1953 .I Hintbar visible.
1954 If enabled, the one\-line hints are visible below panels. Enabled by default.
1956 .I XTerm window title.
1957 When run in a terminal emulator for X11, Midnight Commander sets the
1958 terminal window title to the current working directory and updates it
1959 when necessary.  If your terminal emulator is broken and you see some
1960 incorrect output on startup and directory change, turn off this option.
1961 Enabled by default.
1963 .I Show free space.
1964 If enabled, free space and total space of current file system is shown
1965 at the bottom frame of panel. Enabled by default.
1966 .\"NODE "    Panel options"
1967 .SH "    Panel options"
1968 .B Main panel options
1970 .I Show mini\-status.
1971 If enabled, one line of status information about the currently selected item
1972 is shown at the bottom of the panels. Enabled by default.
1974 .I Use SI size units.
1975 If this option is enabled, Midnight Commander will use SI units (powers of 1000)
1976 when displaying any byte sizes. The suffixes (k, m ...) are shown in lowercase.
1977 If disabled (default), Midnight Commander will use binary units (powers of 1024)
1978 and the suffixes are shown in upper case (K, M ...)
1980 .I Mix all files.
1981 If this option is enabled, all files and directories are shown mixed
1982 together.  If the option is desabled (default), directories (and links to
1983 directories) are shown at the beginning of the listing, and other files below.
1985 .I Show backup files.
1986 If enabled, the Midnight Commander will show files ending with a tilde.
1987 Otherwise, they won't be shown (like GNU's ls option \-B). Enabled by default.
1989 .I Show hidden files.
1990 If enabled, the Midnight Commander will show all files that start with
1991 a dot (like ls \-a). Disabled by default.
1993 .I Fast directory reload.
1994 If this option is enabled, the Midnight Commander will use a trick to
1995 determine if the directory contents have changed.  The trick is to reload
1996 the directory only if the i\-node of the directory has changed; this means
1997 that reloads only happen when files are created or deleted.  If what
1998 changes is the i\-node for a file in the directory (file size changes,
1999 mode or owner changes, etc) the display is not updated.  In these cases,
2000 if you have the option on, you have to rescan the directory manually
2001 (with C\-r). Disabled by default.
2003 .I Mark moves down.
2004 If enabled, the selection bar will move down when you mark a file (with
2005 Insert key). Enabled by default.
2007 .I Reverse files only.
2008 Allow revert selection of files only. Enabled by default.
2009 If enabled, the reverse selection is applied to files only, not to directories.
2010 The selection of directories is untouched. If off, the reverse selection
2011 is applied to files as well to directories: all unselected items become
2012 selected, and vice versa.
2014 .I Simple swap.
2015 If both panels contain file listing, simple swap means that panels exchange
2016 its screen positions: left panel become right one, and vice versa. If this
2017 option is unchecked, file listing panels exchange its content keeping listing
2018 format and sort options. Unchecked by default.
2020 .I Auto save panels setup.
2021 If this option is enabled, when you exit the Midnight Commander the
2022 current settings of panels are saved in the ~/.cache/mc/panels.ini file.
2023 Disabled by default.
2025 .B Navigation
2027 .I Lynx\-like motion.
2028 If this option is enabled, you may use the arrows keys to automatically
2029 chdir if the current selection is a subdirectory and the shell command
2030 line is empty. By default, this setting is off.
2032 .I Page scrolling.
2033 If set (the default), panel will scroll by half the display when the
2034 cursor reaches the end or the beginning of the panel, otherwise it
2035 will just scroll a file at a time.
2037 .I Mouse page scrolling.
2038 Controls whenever scrolling with the mouse wheel is done by pages or
2039 line by line on the panels.
2041 .B File highlight
2043 You can specify whether
2044 .I permissions
2046 .I file types
2047 should be highlighted with distinctive
2048 .\"LINK2"
2049 Colors\&.
2050 .\"Colors"
2051 If the permission highlighting is enabled, the parts of the
2052 .I perm
2054 .I mode
2055 .\"LINK2"
2056 display fields
2057 .\"Listing Mode..."
2058 which apply to the user running Midnight Commander are highlighted with
2059 the color defined by the
2060 .I selected
2061 keyword.  If the file type highlighting is enabled, file names are colored
2062 according to rules described in @sysconfdir@/mc/filehighlight.ini file. See
2063 .\"LINK2"
2064 Filenames Highlight
2065 .\"Filenames Highlight"
2066 for more info.
2068 .B Quick search
2070 You can specify how the
2071 .\"LINK2"
2072 Quick search
2073 .\"Quick search"
2074 mode should works: case insensitively, case sensitively or be matched
2075 to the the panel sort order: case sensitive or not.
2076 .\"NODE "    Confirmation"
2077 .SH "    Confirmation"
2078 In this dialog you configure the confirmation options for file deletion,
2079 overwriting files, execution by pressing enter, quitting the program,
2080 directory hotlist entries deletion and history cleanup.
2081  and.
2082 .\"NODE "    Display bits"
2083 .SH "    Display bits"
2084 This is used to configure the range of visible characters on the
2085 screen.  This setting may be 7\-bits if your terminal/curses supports
2086 only seven output bits, ISO\-8859\-1 displays all the characters in the
2087 ISO\-8859\-1 map and full 8 bits is for those terminals that can display
2088 full 8 bit characters.
2089 .\"NODE "    Learn keys"
2090 .SH "    Learn keys"
2091 This dialog allows you to test and redefine functional keys, cursor
2092 arrows and some other keys to make them work properly on your terminal.
2093 They often don't, since many terminal databases are incomplete or broken.
2095 You can move around with the Tab key and with the vi moving keys ('h'
2096 left, 'j' down, 'k' up and 'l' right).  Once you press any cursor movement
2097 key and it is recognized, you can use that key as well.
2099 You can test keys just by pressing each of them.  When you press a
2100 key and it is recognized properly, OK should appear next to the name
2101 of that key.  Once a key is marked OK it starts working as usually,
2102 e.g. F1 pressed the first time will just check that the F1 key works,
2103 but after that it will show help.  The same applies to the arrow keys.
2104 The Tab key should be working always.
2106 If some keys do not work properly then you won't see OK appear after
2107 pressing one of these.  Then you may want to redefine it.  Do it by pressing
2108 the button with the name of that key (either by the mouse or by Enter
2109 or Space after selecting the button with Tab or arrows).  Then a message
2110 box will appear asking you to press that key.  Do it and wait until the
2111 message box disappears.  If you want to abort, just press Escape once
2112 and wait.
2114 When you finish with all the keys, you can Save them.  The definitions
2115 for the keys you have redefined will be written into the [terminal:TERM]
2116 section of your ~/.config/mc/ini file (where TERM is the name of your current
2117 terminal).  The definitions of the keys that were already working properly
2118 are not saved.
2119 .\"NODE "    Virtual FS"
2120 .SH "    Virtual FS"
2121 This option gives you control over the settings of the
2122 .\"LINK2"
2123 Virtual File System\&.
2124 .\"Virtual File System"
2126 The Midnight Commander keeps in memory the information related to some
2127 of the virtual file systems to speed up the access to the files in the
2128 file system (for example, directory listings fetched from FTP servers).
2130 Also, in order to access the contents of compressed files (for example,
2131 compressed tar files) the Midnight Commander needs to create temporary
2132 uncompressed files on your disk.
2134 Since both the information in memory and the temporary files on disk
2135 take up resources, you may want to tune the parameters of the cached
2136 information to decrease your resource usage or to maximize the speed of
2137 access to frequently used file systems.
2139 Because of the format of the tar archives, the
2140 .I Tar filesystem
2141 needs to read the whole file just to load the file entries.  Since most
2142 tar files are usually kept compressed (plain tar files are species in
2143 extinction), the tar file system has to uncompress the file on the disk
2144 in a temporary location and then access the uncompressed file as a
2145 regular tar file.
2147 Now, since we all love to browse files and tar files all over the disk,
2148 it's common that you will leave a tar file and then re\-enter it later.
2149 Since decompression is slow, the Midnight Commander will cache the
2150 information in memory for a limited time.  When the timeout expires, all
2151 the resources associated with the file system are released.  The default
2152 timeout is set to one minute.
2155 .\"LINK2"
2156 FTP File System
2157 .\"FTP File System"
2158 (ftpfs) allows you to browse directories on remote FTP servers.  It has
2159 several options.
2161 .I ftp anonymous password
2162 is the password used when you login as "anonymous".  Some sites require
2163 a valid e\-mail address.  On the other hand, you probably don't want to
2164 give your real e\-mail address to untrusted sites, especially if you are
2165 not using spam filtering.
2167 ftpfs keeps the directory listing it fetches from a FTP server in a cache.
2168 The cache expire time is configurable with the
2169 .I ftpfs directory cache timeout
2170 option.  A low value for this option may slow down every operation on
2171 the ftpfs because every operation would require sending a request to the
2172 FTP server.
2174 You can define an FTP proxy host for doing FTP.  Note that most modern
2175 firewalls are fully transparent at least for passive FTP (see below), so
2176 FTP proxies are considered obsolete.
2179 .I Always use ftp proxy
2180 is not set, you can use the exclamation sign to enable proxy for certain
2181 hosts.  See
2182 .\"LINK2"
2183 FTP File System
2184 .\"FTP File System"
2185 for examples.
2187 If this option is set, the program will do two things: consult the
2188 @prefix@/lib/mc/mc.no_proxy file for lines containing host names that
2189 are local (if the host name starts with a dot, it is assumed to be a
2190 domain) and to assume that any hostnames without dots in their names are
2191 directly accessible.  All other hosts will be accessed through the
2192 specified FTP proxy.
2194 You can enable using
2195 .I ~/.netrc
2196 file, which keeps login names and passwords for ftp servers.  See netrc
2197 (5) for the description of the .netrc format.
2199 .I Use passive mode
2200 enables using FTP passive mode, when the connection for data transfer is
2201 initiated by the client, not by the server.  This option is recommended
2202 and enabled by default.  If this option is turned off, the data
2203 connection is initiated by the server.  This may not work with some
2204 firewalls.
2205 .\"NODE "    Save Setup"
2206 .SH "    Save Setup"
2207 At startup the Midnight Commander will try to load initialization
2208 information from the ~/.config/mc/ini file. If this file
2209 doesn't exist, it will load the information from the system\-wide
2210 configuration file, located in @prefix@/share/mc/mc.ini. If the 
2211 system\-wide configuration file doesn't exist, MC uses the default settings.
2214 .I Save Setup
2215 command creates the ~/.config/mc/ini file by saving the
2216 current settings of the
2217 .\"LINK2"
2218 Left, Right
2219 .\"Left and Right Menus"
2221 .\"LINK2"
2222 Options
2223 .\"Options Menu"
2224 menus.
2226 If you activate the
2227 .I auto save setup
2228 option, MC will always save the current settings when exiting.
2230 There also exist settings which can't be changed from the menus. To
2231 change these settings you have to edit the setup file with your
2232 favorite editor. See the section on
2233 .\"LINK2"
2234 Special Settings
2235 .\"Special Settings"
2236 for more information.
2237 .SH ""
2238 .\"NODE "Executing operating system commands"
2239 .SH "Executing operating system commands"
2240 You may execute commands by typing them directly in the Midnight
2241 Commander's input line, or by selecting the program you want to
2242 execute with the selection bar in one of the panels and hitting Enter.
2244 If you press Enter over a file that is not executable, the Midnight
2245 Commander checks the extension of the selected file against the
2246 extensions in the
2247 .\"LINK2"
2248 Extensions File\&.
2249 .\"Extension File Edit"
2250 If a match is found then the code associated with that extension is
2251 executed. A very simple
2252 .\"LINK2"
2253 macro expansion
2254 .\"Macro Substitution"
2255 takes place before executing the command.
2256 .\"NODE "  The cd internal command"
2257 .SH "  The cd internal command"
2259 .I cd
2260 command is interpreted by the Midnight Commander, it is not passed to
2261 the command shell for execution.  Thus it may not handle all of the
2262 nice macro expansion and substitution that your shell does, although it
2263 does some of them:
2265 .I Tilde substitution.
2266 The (~) will be substituted with your home directory, if you append a
2267 username after the tilde, then it will be substituted with the login
2268 directory of the specified user.
2270 For example, ~guest is the home directory for the user guest, while
2271 ~/guest is the directory guest in your home directory.
2273 .I Previous directory.
2274 You can jump to the directory you were previously by using the special
2275 directory name '\-' like this:
2276 .B cd \-
2278 .I CDPATH directories.
2279 If the directory specified to the
2280 .B cd
2281 command is not in the current directory, then The Midnight Commander
2282 uses the value in the environment variable
2283 .B CDPATH
2284 to search for the directory in any of the named directories.
2286 For example you could set your
2287 .B CDPATH
2288 variable to ~/src:/usr/src, allowing you to change your directory to
2289 any of the directories inside the ~/src and /usr/src directories, from
2290 any place in the file system by using its relative name (for example
2291 cd linux could take you to /usr/src/linux).
2292 .\"NODE "  Macro Substitution"
2293 .SH "  Macro Substitution"
2294 When accessing a
2295 .\"LINK2"
2296 user menu\&,
2297 .\"Menu File Edit"
2298 or executing an
2299 .\"LINK2"
2300 extension dependent command\&,
2301 .\"Extension File Edit"
2302 or running a command from the command line input, a simple macro
2303 substitution takes place.
2305 The macros are:
2307 .I %i
2308 The indent of blank space, equal the cursor column position.  For edit
2309 menu only.
2311 .I %y
2312 The syntax type of current file. For edit menu only.
2314 .I %k
2315 The block file name.
2317 .I %e
2318 The error file name.
2320 .I %m
2321 The current menu name.
2323 .IR %f " and " %p
2324 The current file name.
2326 .I %x
2327 The extension of current file name.
2329 .I %b
2330 The current file name without extension.
2332 .I %d
2333 The current directory name.
2335 .I %F
2336 The current file in the unselected panel.
2338 .I %D
2339 The directory name of the unselected panel.
2341 .I %t
2342 The currently tagged files.
2344 .I %T
2345 The tagged files in the unselected panel.
2347 .IR %u " and " %U
2348 Similar to the %t and %T macros, but in addition the files are untagged.
2349 You can use this macro only once per menu file entry or extension file
2350 entry, because next time there will be no tagged files.
2352 .IR %s " and " %S
2353 The selected files: The tagged files if there are any. Otherwise the
2354 current file.
2356 .I %cd
2357 This is a special macro that is used to change the current directory
2358 to the directory specified in front of it.  This is used primarily as
2359 an interface to the
2360 .\"LINK2"
2361 Virtual File System\&.
2362 .\"Virtual File System"
2364 .I %view
2365 This macro is used to invoke the internal viewer.  This macro can be
2366 used alone, or with arguments.  If you pass any arguments to this
2367 macro, they should be enclosed in brackets.
2369 The arguments are:
2370 .I ascii
2371 to force the viewer into ascii mode;
2372 .I hex
2373 to force the viewer into hex mode;
2374 .I nroff
2375 to tell the viewer that it should interpret the bold and underline
2376 sequences of nroff;
2377 .I unformatted
2378 to tell the viewer to not interpret nroff commands for making the text
2379 bold or underlined.
2381 .I %%
2382 The % character
2384 .I %{some text}
2385 Prompt for the substitution. An input box is shown and the text inside
2386 the braces is used as a prompt. The macro is substituted by the text
2387 typed by the user. The user can press ESC or F10 to cancel. This macro
2388 doesn't work on the command line yet.
2390 .I %var{ENV:default}
2391 If environment variable
2392 .I ENV
2393 is unset, the
2394 .I default
2395 is substituted.  Otherwise, the value of
2396 .I ENV
2397 is substituted.
2398 .\"NODE "  The subshell support"
2399 .SH "  The subshell support"
2400 The subshell support is a compile time option, that works with the
2401 shells: bash, tcsh and zsh.
2403 When the subshell code is activated the Midnight Commander will
2404 spawn a concurrent copy of your shell (the one defined in the
2405 .B SHELL
2406 variable and if it is not defined, then the one in the /etc/passwd
2407 file) and run it in a pseudo terminal, instead of invoking a new shell
2408 each time you execute a command, the command will be passed to the
2409 subshell as if you had typed it.  This also allows you to change the
2410 environment variables, use shell functions and define aliases that are
2411 valid until you quit the Midnight Commander.
2413 If you are using
2414 .B bash
2415 you can specify startup
2416 commands for the subshell in your ~/.local/share/mc/bashrc file and
2417 special keyboard maps in the ~/.local/share/mc/inputrc file.
2418 .B tcsh
2419 users may specify startup commands in the ~/.local/share/mc/tcshrc file.
2421 When the subshell code is used, you can suspend applications at any
2422 time with the sequence C\-o and jump back to the Midnight Commander, if
2423 you interrupt an application, you will not be able to run other
2424 external commands until you quit the application you interrupted.
2426 An extra added feature of using the subshell is that the prompt
2427 displayed by the Midnight Commander is the same prompt that you are
2428 currently using in your shell.
2431 .\"LINK2"
2432 OPTIONS
2433 .\"OPTIONS"
2434 section has more information on how you can control the subshell code.
2435 .\"NODE "Chmod"
2436 .SH "Chmod"
2437 The Chmod window is used to change the attribute bits in a group of
2438 files and directories.  It can be invoked with the C\-x c key combination.
2440 The Chmod window has two parts \-
2441 .I Permissions
2443 .IR File .
2445 In the File section are displayed the name of the file or directory
2446 and its permissions in octal form, as well as its owner and group.
2448 In the Permissions section there is a set of check buttons which
2449 correspond to the file attribute bits.  As you change the attribute
2450 bits, you can see the octal value change in the File section.
2452 To move between the widgets (buttons and check buttons) use the
2453 .I arrow keys
2454 or the
2455 .I Tab
2456 key.  To change the state of the check buttons or to select a button
2458 .I Space.
2459 You can also use the hotkeys on the buttons to quickly activate them.
2460 Hotkeys are shown as highlighted letters on the buttons.
2462 To set the attribute bits, use the Enter key.
2464 When working with a group of files or directories, you just click on
2465 the bits you want to set or clear.  Once you have selected the bits
2466 you want to change, you select one of the action buttons (Set marked
2467 or Clear marked).
2469 Finally, to set the attributes exactly to those specified, you can use
2471 .B [Set all]
2472 button, which will act on all the tagged files.
2474 .B [Marked all]
2475 set only marked attributes to all selected files
2477 .B [Set marked]
2478 set marked bits in attributes of all selected files
2480 .B [Clean marked]
2481 clear marked bits in attributes of all selected files
2483 .B [Set]
2484 set the attributes of one file
2486 .B [Cancel]
2487 cancel the Chmod command
2488 .\"NODE "Chown"
2489 .SH "Chown"
2490 The Chown command is used to change the owner/group of a file. The hot
2491 key for this command is C\-x o.
2492 .\"NODE "Advanced Chown"
2493 .SH "Advanced Chown"
2494 The Advanced Chown command is the
2495 .\"LINK2"
2496 Chmod
2497 .\"Chmod"
2499 .\"LINK2"
2500 Chown
2501 .\"Chown"
2502 command combined into one window. You can change the permissions and
2503 owner/group of files at once.
2504 .\"NODE "File Operations"
2505 .SH "File Operations"
2506 When you copy, move or delete files the Midnight Commander shows the
2507 file operations dialog.  It shows the files currently being processed
2508 and uses up to three progress bars.  The file bar indicates the
2509 percentage of the current file that has been processed so far.  The
2510 count bar shows how many of the tagged files have been handled.  The
2511 bytes bar indicates the percentage of the total size of the tagged files
2512 that has been handled.  If the verbose option is off, the file and bytes
2513 bars are not shown.
2515 There are two buttons at the bottom of the dialog. Pressing the Skip
2516 button will skip the rest of the current file. Pressing the Abort
2517 button will abort the whole operation, the rest of the files are
2518 skipped.
2520 There are three other dialogs which you can run into during the file
2521 operations.
2523 The error dialog informs about error conditions and has three choices.
2524 Normally you select either the Skip button to skip the file or the Abort
2525 button to abort the operation altogether.  You can also select the Retry
2526 button if you fixed the problem from another terminal.
2528 The replace dialog is shown when you attempt to copy or move a file on
2529 the top of an existing file.  The dialog shows the dates and sizes of
2530 the both files.  Press the Yes button to overwrite the file, the No
2531 button to skip the file, the All button to overwrite all the files, the
2532 None button to never overwrite and the Update button to overwrite if the
2533 source file is newer than the target file.  You can abort the whole
2534 operation by pressing the Abort button.
2536 The recursive delete dialog is shown when you try to delete a directory
2537 which is not empty.  Press the Yes button to delete the directory
2538 recursively, the No button to skip the directory, the All button to
2539 delete all the directories and the None button to skip all the non\-empty
2540 directories.  You can abort the whole operation by pressing the Abort
2541 button.  If you selected the Yes or All button you will be asked for a
2542 confirmation.  Type "yes" only if you are really sure you want to do the
2543 recursive delete.
2545 If you have tagged files and perform an operation on them only the files
2546 on which the operation succeeded are untagged. Failed and skipped files
2547 are left tagged.
2548 .\"NODE "Mask Copy/Rename"
2549 .SH "Mask Copy/Rename"
2550 The copy/move operations let you translate the names of files in an
2551 easy way.  To do it, you have to specify the correct source mask and
2552 usually in the trailing part of the destination specify some wildcards.
2553 All the files matching the source mask are copied/renamed according to
2554 the target mask.  If there are tagged files, only the tagged files
2555 matching the source mask are renamed.
2557 There are other options which you can set:
2559 .B Follow links
2561 determines whether make the symlinks and hardlinks in the source
2562 directory (recursively in subdirectories) new links in the target
2563 directory or whether would you like to copy their content.
2565 .B Dive into subdirs
2567 determines the behavior when the source directory is about to be copied,
2568 but the target directory already exists.  The default action is to copy
2569 the contents of the source directory into the target directory.
2570 Enabling this option causes copying the source directory itself into the
2571 target directory.
2573 For example, you want to copy directory
2574 .I /foo
2575 containing file
2576 .I bar
2578 .IR /bla/foo ,
2579 which is an already existing directory.  Normally (when
2580 .B Dive into subdirs
2581 is not set), mc would copy file
2582 .I /foo/bar
2583 into the file
2584 .IR /bla/foo/bar .
2585 By enabling this option the
2586 .I /bla/foo/foo
2587 directory will be created, and
2588 .I /foo/bar
2589 will be copied into
2590 .IR /bla/foo/foo/bar .
2592 .B Preserve attributes
2594 determines whether to preserve the permissions, timestamps and (if you
2595 are root) the ownership of the original files.  If this option is not
2596 set, the current value of the umask will be respected.
2598 .B Use shell patterns on
2600 When the shell patterns option is on you can use the '*' and '?'
2601 wildcards in the source mask.  They work like they do in the shell.  In
2602 the target mask only the '*' and '\\<digit>' wildcards are allowed.  The
2603 first '*' wildcard in the target mask corresponds to the first wildcard
2604 group in the source mask, the second '*' corresponds to the second group
2605 and so on.  The '\\1' wildcard corresponds to the first wildcard group
2606 in the source mask, the '\\2' wildcard corresponds to the second group
2607 and so on all the way up to '\\9'.  The '\\0' wildcard is the whole
2608 filename of the source file.
2610 Two examples:
2612 If the source mask is "*.tar.gz", the destination is "/bla/*.tgz" and the
2613 file to be copied is "foo.tar.gz", the copy will be "foo.tgz" in "/bla".
2615 Suppose you want to swap basename and extension so that "file.c" would
2616 become "c.file" and so on.  The source mask for this is "*.*" and the
2617 destination is "\\2.\\1".
2619 .B Use shell patterns off
2621 When the shell patterns option is off the MC doesn't do automatic
2622 grouping anymore. You must use '\\(...\\)' expressions in the source
2623 mask to specify meaning for the wildcards in the target mask. This is
2624 more flexible but also requires more typing. Otherwise target masks
2625 are similar to the situation when the shell patterns option is on.
2627 Two examples:
2629 If the source mask is "^\\(.*\\)\\.tar\\.gz$", the destination is
2630 "/bla/*.tgz" and the file to be copied is "foo.tar.gz", the copy
2631 will be "/bla/foo.tgz".
2633 Let's suppose you want to swap basename and extension so that "file.c"
2634 will become "c.file" and so on. The source mask for this is
2635 "^\\(.*\\)\\.\\(.*\\)$" and the destination is "\\2.\\1".
2637 .B Case Conversions
2639 You can also change the case of the filenames.  If you use '\\u'
2640 or '\\l' in the target mask, the next character will be converted to
2641 uppercase or lowercase correspondingly.
2643 If you use '\\U' or '\\L' in the target mask, the next characters will
2644 be converted to uppercase or lowercase correspondingly up to the
2645 next '\\E' or next '\\U', '\\L' or the end of the file name.
2647 The '\\u' and '\\l' are stronger than '\\U' and '\\L'.
2649 For example, if the source mask is '*' (shell patterns on) or '^\\(.*\\)$'
2650 (shell patterns off) and the target mask is '\\L\\u*' the file names
2651 will be converted to have initial upper case and otherwise lower case.
2653 You can also use '\\' as a quote character. For example, '\\\\' is
2654 a backslash and '\\*' is an asterisk.
2656 .B Stable symlinks
2658 commands Midnight Commander, that it should change symlinks in the target,
2659 so that they'll point to the same location as it did before. With absolute
2660 symbolic links this does nothing, but if you have a relative one, it will
2661 recompute its value, adding necessary ../ and other directory parts and making
2662 the value as short as possible (most modern filesystems keep short symlinks
2663 inside inodes and thus don't waste much disk space).
2665 .\"NODE "Select/Unselect Files"
2666 .SH "Select/Unselect Files"
2667 The dialog of group of files and directories selection or uselection.
2669 .\"LINK2"
2670 input line
2671 .\"Input Line Keys"
2672 allow enter the regular expression of filenames that will be
2673 selected/unselected.
2675 When
2676 .I Files only
2677 checkbox is on, only files will be selected.  If
2678 .I Files only
2679 is off, as files as directories will be selected.
2680 When
2681 .I Shell Patterns
2682 checkbox is on, the regular expression is much like the filename globbing
2683 in the shell (* standing for zero or more characters and ?  standing
2684 for one character). If
2685 .I Shell Patterns
2686 is off, then the tagging of files is done with normal regular
2687 expressions (see ed (1)). When
2688 .I Case sensitive
2689 checkbox is on, the selection will be case sensitive characters.
2691 .I Case sensitive
2692 is off, the case will be ignored.
2693 .\"NODE "Diff Viewer"
2694 .SH "Internal Diff Viewer"
2695 The mcdiff is a visual diff tool. You can compare two files and edit them
2696 in\-place (diffs are updated dynamically). You can browse and view a working
2697 copy from popular version control systems (GIT, Subversion, etc).
2699 Following shortcuts are available in internal diff viewer of Midnight
2700 Commander.
2702 .B F1
2703 Invoke the built\-in hypertext help viewer.
2705 .B F2
2706 Save modified files.
2708 .B F4
2709 Edit file of the left panel in the internal editor.
2711 .B F14
2712 Edit file of the right panel in the internal editor.
2714 .B F5
2715 Merge the current hunk. Only the current hunk will be merged.
2717 .B F7
2718 Start search.
2720 .B F17
2721 Continue search.
2723 .B F10, Esc, q
2724 Exit from diff viewer.
2726 .B Alt\-s, s
2727 Toggle show of hunk status.
2729 .B Alt\-n, l
2730 Toggle show of line numbers.
2732 .B f
2733 Maximize left panel.
2735 .B \=
2736 Make panels equal in width.
2738 .B \>
2739 Reduce the size of the right panel.
2741 .B \<
2742 Reduce the size of the left panel.
2744 .B c
2745 Toggle show of trailing carriage return (CR) symbol as ^M.
2747 .B 2, 3, 4, 8
2748 Set tabulation size
2750 .B C\-u
2751 Swap contents of diff panels.
2753 .B C\-r
2754 Refresh the screen.
2756 .B C\-o
2757 Switch to the subshell and show the command screen.
2759 .B Enter, Space, n
2760 Find next diff hunk.
2762 .B Backspace, p
2763 Find previous diff hunk.
2765 .B g
2766 Go to line.
2768 .B Down
2769 Scroll one line forward.
2771 .B Up
2772 Scroll one line backward.
2774 .B PageUp
2775 Move one page up.
2777 .B PageDown
2778 Mves one page down.
2780 .B Home, A1
2781 Moves to the line beginning.
2783 .B End
2784 Moves to the line end.
2786 .B C\-Home
2787 Move to the file beginning.
2789 .B C\-End, C1
2790 Move to the file end.
2791 .\"NODE "Internal File Viewer"
2792 .SH "Internal File Viewer"
2793 The internal file viewer provides two display modes: ASCII and hex.
2794 To toggle between modes, use the F4 key.
2796 The viewer will try to use the best method provided by your system or
2797 the file type to display the information.
2798 Some character sequences, which appear most often in preformatted manual
2799 pages, are displayed bold and underlined, thus making a pretty display
2800 of your files.
2802 When in hex mode, the search function accepts text in quotes and
2803 constant numbers.  Text in quotes is matched exactly after removing
2804 the quotes.  Each number matches one byte.  You can mix quoted text
2805 with constants like this:
2808 "String" \-1 0xBB 012 "more text"
2811 Note that 012 is an octal number.  \-1 is converted to 0xFF.
2813 Here is a listing of the actions associated with each key that the
2814 Midnight Commander handles in the internal file viewer.
2816 .B F1
2817 Invoke the built\-in hypertext help viewer.
2819 .B F2
2820 Toggle the wrap mode.
2822 .B F4
2823 Toggle the hex mode.
2825 .B F5
2826 Goto line.  This will prompt you for a line number and will display
2827 that line.
2829 .B F6, /.
2830 Regular expression search.
2832 .B ?,
2833 Reverse regular expression search.
2835 .B F7
2836 Normal search / hex mode search.
2838 .B C\-s, F17, n.
2839 Start normal search if there was no previous search expression else
2840 find next match.
2842 .B C\-r.
2843 Start reverse search if there was no previous search expression else
2844 find next match.
2846 .B F8
2847 Toggle Raw/Parsed mode: This will show the file as found on disk or if
2848 a processing filter has been specified in the mc.ext file, then the
2849 output from the filter. Current mode is always the other than written
2850 on the button label, since on the button is the mode which you enter
2851 by that key.
2853 .B F9
2854 Toggle the format/unformat mode: when format mode is on the viewer
2855 will interpret some string sequences to show bold and underline with
2856 different colors. Also, on button label is the other mode than current.
2858 .B F10, Esc.
2859 Exit the internal file viewer.
2861 .B next\-page, space, C\-v.
2862 Scroll one page forward.
2864 .B prev\-page, Alt\-v, C\-b, Backspace.
2865 Scroll one page backward.
2867 .B down\-key
2868 Scroll one line forward.
2870 .B up\-key
2871 Scroll one line backward.
2873 .B C\-l
2874 Refresh the screen.
2876 .B C\-o
2877 Switch to the subshell and show the command screen.
2879 .B !
2880 Like C\-o, but run a new shell if the subshell is not running.
2882 .B "[n] m"
2883 Set the mark n.
2885 .B "[n] r"
2886 Jump to the mark n.
2888 .B C\-f
2889 Jump to the next file.
2891 .B C\-b
2892 Jump to the previous file.
2894 .B Alt\-r
2895 Toggle the ruler.
2897 .B Alt\-e
2898 to change charset of displayed text may use M\-e (Alt\-e).
2899 Recoding is made from selected codepage into system codepage. To
2900 cancel the recoding you may select "<No translation>" in charset
2901 selection dialog.
2903 It's possible to instruct the file viewer how to display a file, look
2904 at the
2905 .\"LINK2"
2906 Extension File Edit section
2907 .\"Extension File Edit"
2909 .\"NODE "Internal File Editor"
2910 .SH "Internal File Editor"
2911 The internal file editor is a full\-featured full screen editor.  It can
2912 edit files up to 64 megabytes.  It is possible to edit binary files.
2913 The internal file editor is invoked using
2914 .B F4
2915 if the
2916 .I use_internal_edit
2917 option is set in the initialization file.
2919 The features it presently supports are: block copy, move, delete, cut,
2920 paste; key for key undo; pull\-down menus; file insertion; macro
2921 commands; regular expression search and replace; shift\-arrow text highlighting
2922 (if supported by the terminal); insert\-overwrite toggle; word wrap;
2923 autoindent; tunable tab size; syntax highlighting for various file
2924 types; and an option to pipe text blocks through shell commands like
2925 indent and ispell.
2927 Sections:
2929 .\"LINK2"
2930 Options of editor in ini\-file
2931 .\"Internal File Editor / options"
2933 The editor is very easy to use and requires no tutoring. To see what
2934 keys do what, just consult the appropriate pull\-down menu. Other keys
2935 are: Shift movement keys do text highlighting.
2936 .B Ctrl\-Ins
2937 copies to the file
2938 .B mcedit.clip
2940 .B Shift\-Ins
2941 pastes from mcedit.clip.
2942 .B Shift\-Del
2943 cuts to
2944 .BR mcedit.clip ,
2946 .B Ctrl\-Del
2947 deletes highlighted text. Mouse highlighting also works, and you
2948 can override the mouse as usual by holding down the shift key
2949 while dragging the mouse to let normal terminal mouse highlighting
2950 work.
2952 To define a macro, press
2953 .B Ctrl\-R
2954 and then type out the key
2955 strokes you want to be executed. Press
2956 .B Ctrl\-R
2957 again when finished. You can then assign the macro to any key you
2958 like by pressing that key. The macro is executed when you press
2959 .B Ctrl\-A
2960 and then the assigned key. The macro is also executed if
2961 you press Meta, Ctrl, or Esc and the assigned key, provided that the
2962 key is not used for any other function. Once defined, the macro
2963 commands go into the file
2964 .B ~/.local/share/mc/mcedit/mcedit.macros
2965 You can delete a macro by deleting the
2966 appropriate line in this file.
2968 To change charset of displayed text may use M\-e (Alt\-e).
2969 Recoding is made from selected codepage into system codepage. To
2970 cancel the recoding you may select "<No translation>" in charset
2971 selection dialog.
2973 .B F19
2974 will format the currently highlighted block (plain text or
2975 .B C
2977 .B C++
2978 code or another). This is controlled by the
2979 file
2980 .B @prefix@/share/mc/edit.indent.rc
2981 which is copied to
2982 .B ~/.local/share/mc/mcedit/edit.indent.rc
2983 in your home directory the first time you use it.
2985 The editor also displays non\-us characters (160+). When editing
2986 binary files, you should set
2987 .B display bits
2988 to 7 bits in the options menu to keep the spacing clean.
2990 .\"NODE "Internal File Editor / options"
2991 .SH "Options of editor in ini\-file"
2993 Some editor options of ini\-file are described in this section.
2994 Options are placed in [Midnight\-Commander] section
2996 .I editor_wordcompletion_collect_entire_file
2997 Search autocomplete candidates in entire of file or just from
2998 begin of file to cursor position (0)
3000 .\"NODE "Screen selector"
3001 .SH "Screen selector"
3002 Midnight Commander supports running many internal modules (such as
3003 editor, viewer and diff viewer) simultaneously and switching between
3004 them without closing open files. Using several file managers at a time,
3005 however, is not currently supported.
3007 Let's call each of these modules a screen. There are three ways to
3008 switch between screens, using one of these global shortcuts:
3010 .B Alt\-}
3011 switch to the next screen;
3013 .B Alt\-{
3014 switch to the previous screen;
3016 .B Alt\-`
3017 open a dialog window with the list of currently open screens (or use the
3018 "Screen list" menu item).
3019 .\"NODE "Completion"
3020 .SH "Completion"
3021 Let the Midnight Commander type for you.
3023 Attempt to perform completion on the text before current position.  MC
3024 attempts completion treating the text as variable (if the text begins
3025 with
3026 .BR $ ),
3027 username (if the text begins with
3028 .BR ~ ),
3029 hostname (if the text begins with
3030 .BR @ )
3031 or command (if you are on the command line in the position where you
3032 might type a command, possible completions then include shell reserved
3033 words and shell built\-in commands as well) in turn.  If none of these
3034 matches, filename completion is attempted.
3036 Filename, username, variable and hostname completion works on all input
3037 lines, command completion is command line specific.  If the completion
3038 is ambiguous (there are more different possibilities), MC beeps and the
3039 following action depends on the setting of the
3040 .I Complete: show all
3041 option in the
3042 .\"LINK2"
3043 Configuration
3044 .\"Configuration"
3045 dialog.  If it is enabled, a list of all possibilities pops up next to
3046 the current position and you can select with the arrow keys and
3047 .B Enter
3048 the correct entry.  You can also type the first letters in which the
3049 possibilities differ to move to a subset of all possibilities and
3050 complete as much as possible.  If you press
3051 .B Alt\-Tab
3052 again, only the subset will be shown in the listbox, otherwise the first
3053 item which matches all the previous characters will be highlighted.  As
3054 soon as there is no ambiguity, dialog disappears, but you can hide it by
3055 canceling keys
3056 .BR Esc ,
3057 .B F10
3058 and left and right arrow keys. If
3059 .\"LINK2"
3060 Complete: show all
3061 .\"Configuration"
3062 is disabled, the dialog pops up only if you press
3063 .B Alt\-Tab
3064 for the second time, for the first time MC just beeps.
3065 .\"NODE "Virtual File System"
3066 .SH "Virtual File System"
3067 The Midnight Commander is provided with a code layer to access the file
3068 system; this code layer is known as the virtual file system switch.  The
3069 virtual file system switch allows the Midnight Commander to manipulate
3070 files not located on the Unix file system.
3072 Currently the Midnight Commander is packaged with some Virtual File
3073 Systems (VFS): the
3074 .I local
3075 file system, used for accessing the regular Unix file system; the
3076 .IR ftpfs ,
3077 used to manipulate files on remote systems with the FTP protocol; the
3078 .IR tarfs ,
3079 used to manipulate tar and compressed tar files; the
3080 .IR undelfs ,
3081 used to recover deleted files on ext2 file systems (the default file
3082 system for Linux systems),
3083 .I fish
3084 (for manipulating files over shell connections such as rsh and ssh).
3085 If the code was compiled with
3086 .I smbfs
3087 support, you can manipulate files on remote systems with the SMB (CIFS)
3088 protocol.
3090 A generic
3091 .I extfs
3092 (EXTernal virtual File System) is provided in order to easily expand
3093 VFS capabilities using scripts and external software.
3095 The VFS switch code will interpret all of the path names used and will
3096 forward them to the correct file system, the formats used for each one
3097 of the file systems is described later in their own section.
3098 .\"NODE "  FTP File System"
3099 .SH "  FTP File System"
3100 The FTP File System (ftpfs) allows you to manipulate files on remote
3101 machines.  To actually use it, you can use the
3102 .I FTP link
3103 item in the menu or directly change your current directory using the
3104 .I cd
3105 command to a path name that looks like this:
3107 .I /#ftp:[!][user[:pass]@]machine[:port][remote\-dir]
3110 .IR user ,
3111 .I port
3113 .I remote\-dir
3114 elements are optional.  If you specify the
3115 .I user
3116 element, the Midnight Commander will login to the remote machine as that
3117 user, otherwise it will use anonymous login or the login name from the
3118 .I ~/.netrc
3119 file.  The optional
3120 .I pass
3121 element is the password used for the connection.  Using the password in
3122 the VFS directory name is not recommended, because it can appear on the
3123 screen in clear text and can be saved to the directory history.
3125 To enable using FTP proxy, prepend
3126 .B !
3127 (an exclamation sign) to the hostname.
3129 Examples:
3132     /#ftp:ftp.nuclecu.unam.mx/linux/local
3133     /#ftp:tsx\-11.mit.edu/pub/linux/packages
3134     /#ftp:!behind.firewall.edu/pub
3135     /#ftp:guest@remote\-host.com:40/pub
3136     /#ftp:miguel:xxx@server/pub
3139 Please check the
3140 .\"LINK2"
3141 Virtual File System
3142 .\"Virtual FS"
3143 dialog box for ftpfs options.
3144 .\"NODE "  Tar File System"
3145 .SH "  Tar File System"
3146 The tar file system provides you with read\-only access to your tar
3147 files and compressed tar files by using the chdir command.  To change
3148 your directory to a tar file, you change your current directory to the
3149 tar file by using the following syntax:
3151 .I /filename.tar#utar/[dir\-inside\-tar]
3153 The mc.ext file already provides a shortcut for tar files, this means
3154 that usually you just point to a tar file and press return to enter
3155 into the tar file, see the
3156 .\"LINK2"
3157 Extension File Edit
3158 .\"Extension File Edit"
3159 section for details on how this is done.
3161 Examples:
3164     mc\-3.0.tar.gz#utar/mc\-3.0/vfs
3165     /ftp/GCC/gcc\-2.7.0.tar#utar
3168 The latter specifies the full path of the tar archive.
3169 .\"NODE "  FIle transfer over SHell filesystem"
3170 .SH "  FIle transfer over SHell filesystem"
3171 The fish file system is a network based file system that allows you to
3172 manipulate the files in a remote machine as if they were local. To use
3173 this, the other side has to either run fish server, or has to have
3174 bash\-compatible shell.
3176 To connect to a remote machine, you just need to chdir
3177 into a special directory which name is in the following
3178 format:
3180 .I /#sh:[user@]machine[:options]/[remote\-dir]
3183 .I user,
3184 .I options
3186 .I remote\-dir
3187 elements are optional.  If you specify the
3188 .I user
3189 element, the Midnight Commander will try to login on the remote
3190 machine as that user, otherwise it will use your login name.
3192 The available
3193 .I options
3194 are:
3196   'C' \- use compression;
3197   'r' \- use rsh instead of ssh;
3198   port \- specify the port used by remote server.
3200 If the
3201 .I remote\-dir
3202 element is present, your current directory on the remote machine will be
3203 set to this one.
3205 Examples:
3208     /#sh:onlyrsh.mx:r/linux/local
3209     /#sh:joe@want.compression.edu:C/private
3210     /#sh:joe@noncompressed.ssh.edu/private
3211     /#sh:joe@somehost.ssh.edu:2222/private
3213 .\"NODE "  Undelete File System"
3214 .SH "  Undelete File System"
3215 On Linux systems, if you asked configure to use the ext2fs undelete
3216 facilities, you will have the undelete file system available.
3217 Recovery of deleted files is only available on ext2 file systems.  The
3218 undelete file system is just an interface to the ext2fs library to
3219 retrieve all of the deleted files names on an ext2fs and provides and
3220 to extract the selected files into a regular partition.
3222 To use this file system, you have to chdir into the special file name
3223 formed by the "/#undel" prefix and the file name where the actual
3224 file system resides.
3226 For example, to recover deleted files on the second partition of the
3227 first SCSI disk on Linux, you would use the following path name:
3230     /#undel:sda2
3233 It may take a while for the undelfs to load the required information
3234 before you start browsing files there.
3235 .\"NODE "  SMB File System"
3236 .SH "  SMB File System"
3237 The smbfs allows you to manipulate files on remote machines with SMB
3238 (or CIFS) protocol.  These include Windows for Workgroups,
3239 Windows 9x/ME/XP, Windows NT, Windows 2000 and Samba.
3240 To actually use it, you may try to use the panel command "SMB link..."
3241 (accessible from the menubar) or you may directly change your current
3242 directory to it using the cd command to a path name that looks like this:
3244 .I /#smb:[user@]machine[/service][/remote\-dir]
3247 .IR user ,
3248 .I service
3250 .I remote\-dir
3251 elements are optional.
3253 .IR user ,
3254 .I domain
3256 .I password
3257 can be specified in an input dialog.
3259 Examples:
3262     /#smb:machine/Share
3263     /#smb:other_machine
3264     /#smb:guest@machine/Public/Irlex
3266 .\"NODE "  EXTernal File System"
3267 .SH "  EXTernal File System"
3268 .B extfs
3269 allows to integrate numerous features and file types into GNU Midnight
3270 Commander in an easy way, by writing scripts.
3272 Extfs filesystems can be divided into two categories:
3274 1. Stand\-alone filesystems, which are not associated with any existing
3275 file.  They represent certain system\-wide data as a directory tree.
3276 You can invoke them by typing
3277 .RI ' "cd #fsname" '
3278 where fsname is an extfs short name (see below).  Examples of such
3279 filesystems include audio (list audio tracks on the CD) or apt (list of
3280 all Debian packages in the system).
3282 For example, to list CD\-Audio tracks on your CD\-ROM drive, type
3285   cd #audio
3288 2. 'Archive' filesystems (like rpm, patchfs and more), which represent
3289 contents of a file as a directory tree.  It can consist of 'real' files
3290 compressed in an archive (urar, rpm) or virtual files, like messages
3291 in a mailbox (mailfs) or parts of a patch (patchfs).  To access such
3292 filesystems
3293 .RI ' #fsname '
3294 should be appended to the archive name.  Note that the archive itself
3295 can be on another vfs.
3297 For example, to list contents of a zip archive documents.zip type
3300   cd documents.zip#uzip
3303 In many aspects, you could treat extfs like any other directory.  For
3304 instance, you can add it to the hotlist or change to it from directory
3305 history.  An important limitation is that you cannot invoke shell
3306 commands inside extfs, just like any other non\-local VFS.
3308 Common extfs scripts included with Midnight Commander are:
3310 .B a
3311 access 'A:' DOS/Windows diskette
3312 .RI ( "cd #a" ).
3314 .B apt
3315 front end to Debian's APT package management system
3316 .RI ( "cd #apt" ).
3318 .B audio
3319 audio CD ripping and playing
3320 .RI ( "cd #audio"
3322 .IR "cd device#audio" ).
3324 .B bpp
3325 package of Bad Penguin GNU/Linux distribution
3326 .RI ( "cd file.bpp#bpp" ).
3328 .B deb
3329 package of Debian GNU/Linux distribution
3330 .RI ( "cd file.deb#deb" ).
3332 .B dpkg
3333 Debian GNU/Linux installed packages
3334 .RI ( "cd #deb" ).
3336 .B hp48
3337 view and copy files to/from a HP48 calculator
3338 .RI ( "cd #hp48" ).
3340 .B lslR
3341 browsing of lslR listings as found on many FTPs
3342 .RI ( "cd filename#lslR" ).
3344 .B mailfs
3345 mbox\-style mailbox files support
3346 .RI ( "cd mailbox#mailfs" ).
3348 .B patchfs
3349 extfs to handle unified and context diffs
3350 .RI ( "cd filename#patchfs" ).
3352 .B rpm
3353 RPM package
3354 .RI ( "cd filename#rpm" ).
3356 .B rpms
3357 RPM database management
3358 .RI ( "cd #rpms" ).
3360 .B ulha, urar, uzip, uzoo, uar, uha
3361 archivers
3362 .RI ( "cd archive#xxxx"
3363 where xxxx is one of:
3364 .IR ulha ,
3365 .IR urar ,
3366 .IR uzip ,
3367 .IR uzoo ,
3368 .IR uar ,
3369 .IR uha ).
3371 You could bind file type/extension to specified extfs as described in the
3372 .\"LINK2"
3373 Extension File Edit
3374 .\"Extension File Edit"
3375 section.  Here is an example entry for Debian packages:
3378   regex/\.deb$
3379           Open=%cd %p#deb
3381 .\"NODE "Colors"
3382 .SH "Colors"
3383 The Midnight Commander will try to detect if your terminal supports
3384 color using the terminal database and your terminal name.  Sometimes
3385 it gets confused, so you may force color mode or disable color mode
3386 using the \-c and \-b flag respectively.
3388 If the program is compiled with the Slang screen manager instead of
3389 ncurses, it will also check the variable
3390 .B COLORTERM,
3391 if it is set, it has the same effect as the \-c flag.
3393 You may specify terminals that always force color mode
3394 by adding the
3395 .I color_terminals
3396 variable to the Colors section of the initialization file.  This will
3397 prevent the Midnight Commander from trying to detect if your terminal
3398 supports color.  Example:
3401 [Colors]
3402 color_terminals=linux,xterm
3403 color_terminals=terminal\-name1,terminal\-name2...
3406 The program can be compiled with both ncurses and slang, ncurses does
3407 not provide a way to force color mode: ncurses uses just the
3408 information in the terminal database.
3410 The Midnight Commander provides a way to change the default colors.
3411 Currently the colors are configured using the environment variable
3412 .B MC_COLOR_TABLE
3413 or the Colors section in the initialization file.
3415 In the Colors section, the default color map is loaded from the
3416 .I base_color
3417 variable.  You can specify an alternate color map for a terminal by
3418 using the terminal name as the key in this section.  Example:
3421 [Colors]
3422 base_color=
3423 xterm=menu=magenta:marked=,magenta:markselect=,red
3426 The format for the color definition is:
3429   <keyword>=<fgcolor>,<bgcolor>,<attributes>:<keyword>=...
3432 The colors are optional, and the keywords are: normal, selected, disabled, marked,
3433 markselect, errors, input, inputmark, inputunchanged, commandlinemark,
3434 reverse, gauge, header, inputhistory, commandhistory. Button bar colors are:
3435 bbarhotkey, bbarbutton. Status bar color: statusbar. Menu colors are: menunormal,
3436 menusel, menuhot, menuhotsel, menuinactive. Dialog colors are: dnormal, dfocus,
3437 dhotnormal, dhotfocus, dtitle. Error dialog colors are: errdfocus, errdhotnormal,
3438 errdhotfocus, errdtitle.  Help colors are: helpnormal, helpitalic, helpbold,
3439 helplink, helpslink, helptitle.  Viewer color are: viewbold, viewunderline, viewselected.
3440 Editor colors are: editnormal, editbold, editmarked, editwhitespace, editlinestate.
3441 Popup menu colors are: pmenunormal, pmenusel, pmenutitle.
3443 .I header
3444 determines the color of panel header, the line that contains column titles
3445 and sort mode indicator.
3447 .I input
3448 determines the color of input lines used in query dialogs.
3450 .I gauge
3451 determines the color of the filled part of the progress bar (gauge),
3452 which is used to show the user the progress of file operations, such as
3453 copying.
3455 .I disabled
3456 determines the color of the widget that cannot be selected.
3458 The dialog boxes use the following colors:
3459 .I dnormal
3460 is used for the normal text,
3461 .I dfocus
3462 is the color used for the currently selected component,
3463 .I dhotnormal
3464 is the color used to differentiate the hotkey color in normal
3465 components, whereas the
3466 .I dhotfocus
3467 color is used for the highlighted color in the currently selected
3468 component.
3470 Menus use the same scheme but uses the menunormal, menusel, menuhot, menuhotsel
3471 and menuinactive tags instead.
3473 Help uses the following colors:
3474 .I helpnormal
3475 is used for normal text,
3476 .I helpitalic
3477 is used for text which is emphasized in italic in the manual page,
3478 .I helpbold
3479 is used for text which is emphasized in bold in the manual page,
3480 .I helplink
3481 is used for not selected hyperlinks and
3482 .I helpslink
3483 is used for selected hyperlink.
3485 Popup menu uses following colors:
3486 .I pmenunormal
3487 is used for non-selected menu items and as a main color of popup menu window,
3488 .I pmenusel
3489 is used for selected menu item,
3490 .I pmenutitle
3491 is used for popup menu title.
3493 The possible colors are: black, gray, red, brightred, green,
3494 brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta,
3495 cyan, brightcyan, lightgray and white. And there is a special keyword
3496 for transparent background. It is 'default'. The 'default' can only be
3497 used for background color. Another special keyword "base" means mc's main
3498 colors.  When 256 colors are available, they can be specified either as
3499 color16 to color255, or as rgb000 to rgb555 and gray0 to gray23. Example:
3502 [Colors]
3503 base_color=normal=white,default:marked=magenta,default
3506 Attributes can be any of bold, underline, reverse and blink, appended by a
3507 plus sign if more than one are desired.  The special word "none" means no
3508 attributes, without attempting to fall back to base_color.  Example:
3511 menuhotsel=yellow;black;bold+underline
3514 .\"NODE "Skins"
3515 .SH "Skins"
3516 You can change the appearance of Midnight Commander.
3517 To do this, you must specify a file that contain descriptions of colors
3518 and lines to draw boxes. Redefining of the colors is entirely compatible
3519 with the assignment of colors, as described in Section
3520 .\"LINK2"
3521 Colors\&.
3522 .\"Colors"
3524 If your skin contains any of 256\-color definitions, you should define the
3525 '256colors' key set to TRUE value in [skin] section.
3528 A skin\-file is searched on the following algorithm (to the first one found):
3531 1) command line option
3532 .B \-S \<skin\>
3534 .B \-\-skin=\<skin\>
3536 2) Environment variable
3537 .B MC_SKIN
3539 3) In config file parameter
3540 .B skin
3541 in section
3542 .B [Midnight\-Commander]
3544 4) File
3545 .B @sysconfdir@/mc/skins/default.ini
3547 5) File
3548 .B @prefix@/share/mc/skins/default.ini
3551 Command line option, environment variable and parameter in config file may
3552 contain the absolute path to the skin\-file (with the extension \.ini
3553 or without it). Search of skin\-file will occur in (to the first one found):
3556 .B ~/.local/share/mc/skins/
3559 .B @sysconfdir@/mc/skins/
3562 .B @prefix@/share/mc/skins/
3566 For getting extended info, refer to:
3568 .\"LINK2"
3569 Description of section and parameters
3570 .\"Skins sections"
3572 .\"LINK2"
3573 Color pair definitions
3574 .\"Skins colors"
3576 .\"LINK2"
3577 Draw lines
3578 .\"Skins lines"
3580 .\"LINK2"
3581 Compatibility
3582 .\"Skins oldcolors"
3585 .\"NODE "  Skins sections"
3586 .SH "  Description of section and parameters"
3588 Section
3589 .B [skin]
3590 contain metainfo for skin\-file. Parameter
3591 .I description
3592 contain short text about skin.
3595 Section
3596 .B [filehighlight]
3597 contain descriptions of color pairs for filenames highlighting.
3598 Name of parameters must be equal to names of sections into
3599 filehighlight.ini file.
3601 .\"LINK2"
3602 Filenames Highlight
3603 .\"Filenames Highlight"
3604 for getting more info.
3607 Section
3608 .B [core]
3609 describes the elements that are used everywhere.
3611 .I _default_
3612 Default color pair. Used in all other sections if they not contain
3613 color definitions
3615 .I selected
3616 cursor
3618 .I marked
3619 selected data
3621 .I markselect
3622 cursor on selected data
3624 .I gauge
3625 color of the filled part of the progress bar
3627 .I input
3628 color of input lines used in query dialogs
3630 .I inputmark
3631 color of input selected text
3633 .I inputunhanged
3634 color of input text before first modification or cursor movement
3636 .I commandlinemark
3637 color of selected text in command line
3639 .I reverse
3640 reverse color
3642 Section
3643 .B [dialog]
3644 describes the elements that are placed on dialog windows (except error dialogs).
3646 .I _default_
3647 Default color for this section. Used [core]._default_ if not specified
3649 .I dfocus
3650 Color of active element (in focus)
3652 .I dhotnormal
3653 Color of hotkeys
3655 .I dhotfocus
3656 Color of hotkeys in focused element
3659 Section
3660 .B [error]
3661 describes the elements that are placed on error dialog windows
3663 .I _default_
3664 Default color for this section. Used [core]._default_ if not specified
3666 .I errdhotnormal
3667 Color of hotkeys
3669 .I errdhotfocus
3670 Color of hotkeys in focused element
3673 Section
3674 .B [menu]
3675 describes the elements that are placed in menu. This section describes
3676 system menu (called by F9) and user\-defined menus (called by F2 in panels
3677 and by F11 in editor).
3679 .I _default_
3680 Default color for this section. Used [core]._default_ if not specified
3682 .I entry
3683 Color of menu items
3685 .I menuhot
3686 Color of menu hotkeys
3688 .I menusel
3689 Color of active menu item (in focus)
3691 .I menuhotsel
3692 Color of menu hotkeys in focused menu item
3694 .I menuinactive
3695 Color of inactive menu
3698 Section
3699 .B [help]
3700 describes the elements that are placed on help window.
3702 .I _default_
3703 Default color for this section. Used [core]._default_ if not specified
3705 .I helpitalic
3706 Color pair for element with
3707 .B italic
3708 attribute
3710 .I helpbold
3711 Color pair for element with
3712 .B bold
3713 attribute
3715 .I helplink
3716 Color of links
3718 .I helpslink
3719 Color of active link (on focus)
3722 Section
3723 .B [editor]
3724 describes the colors of elements placed in editor.
3726 .I _default_
3727 Default color for this section. Used [core]._default_ if not specified
3729 .I editbold
3730 Color pair for element with
3731 .B bold
3732 attribute
3734 .I editmarked
3735 Color of selected text
3737 .I editwhitespace
3738 Color of tabs and trailing spaces highlighting
3740 .I editlinestate
3741 Color for line state area
3744 Section
3745 .B [viewer]
3746 describes the colors of elements placed in viewer.
3748 .I viewunderline
3749 Color pair for element with
3750 .B underline
3751 attribute
3753 .\"NODE "  Skins colors"
3754 .SH "  Color pair definitions"
3755 Any parameter in skin\-file contain definition of color pair.
3757 Color pairs described as two colors and the optional attributes
3758 separated by ';'. First field sets the foreground color, second
3759 field sets background color, third field sets the attributes.
3760 Any of the fields may be omitted, in this case value will be
3761 taken from default color pair (global color pair or from default
3762 color pair of this section).
3764 Example:
3767 [core]
3768     # green on black
3769     _default_=green;black
3770     # green (default) on blue
3771     selected=;blue
3772     # yellow on black (default)
3773     # underlined yellow on black (default)
3774     marked=yellow;;underline
3778 Possible colors (names) and attributes are described in
3779 .\"LINK2"
3780 Colors\&.
3781 .\"Colors"
3782 section.
3784 .\"NODE "  Skins lines"
3785 .SH "  Draw lines"
3786 Lines sets in section
3787 .B [Lines]
3788 into skin\-file. By default single lines are used, but you may redefine
3789 to usage of any utf\-8 symbols (like to lines, for example).
3791 .I WARNING!!!
3792 When you build Midnight Commander with the Ncurses screen library
3793 usage of drawing lines is limited!
3794 Possible only drawing a single lines.
3795 For all questions and comments please contact the developers of Ncurses.
3798 Descriptions of parameters
3799 .BR [Lines] :
3801 .I lefttop
3802 left\-top line fragment.
3804 .I righttop
3805 right\-top line fragment.
3807 .I centertop
3808 down branch of horizontal line
3810 .I centerbottom
3811 up branch of horizontal line
3813 .I leftbottom
3814 left\-bottom line fragment
3816 .I rightbottom
3817 right\-bottom line fragment
3819 .I leftmiddle
3820 right branch of vertical line
3822 .I rightmiddle
3823 left branch of vertical line
3825 .I centermiddle
3826 cross of lines
3828 .I horiz
3829 horizontal line
3831 .I vert
3832 vertical line
3834 .I thinhoriz
3835 thin horizontal line
3837 .I thinvert
3838 thin vertical line
3841 .\"NODE "  Skins oldcolors"
3842 .SH "  Compatibility"
3844 Appointment of color  by skin\-files fully compatible with
3845 the appointment of the colors described in
3846 .\"LINK2"
3847 Colors\&.
3848 .\"Colors"
3849 section.
3851 In this case, reassignment of colors has priority over the skin file and is
3852 complementary.
3854 .\"NODE "Filenames Highlight"
3855 .SH "Filenames Highlight"
3856 Section [filehighlight] in current skin\-file contains key names as
3857 highlight groups and values as color pairs. Color pairs is documented
3859 .\"LINK2"
3860 Skins
3861 .\"Skins"
3862 section.
3864 Rules of filenames highlight are placed in @prefix@/share/mc/filehighlight.ini file
3865 (~/.config/mc/filehighlight.ini).
3866 Name of section in this file must be equal to parameters names in
3867 [filehighlight] section (in current skin\-file).
3869 Keys in these groups are:
3871 .I type
3872 file type. If present, all other options are ignored.
3874 .I regexp
3875 regular expression. If present, 'extensions' option is ignored.
3877 .I extensions
3878 list of extensions of files. Separated by ';' sign.
3880 .I extensions_case
3881 (make sense only with 'extensions' parameter) make 'extensions'
3882 rule case sentitive (true) or not (false).
3884 `type' key may have values:
3886 \- FILE (all files)
3887   \- FILE_EXE
3888 \- DIR (all directories)
3889   \- LINK_DIR
3890 \- LINK (all links except stale link)
3891   \- HARDLINK
3892   \- SYMLINK
3893 \- STALE_LINK
3894 \- DEVICE (all device files)
3895   \- DEVICE_BLOCK
3896   \- DEVICE_CHAR
3897 \- SPECIAL (all special files)
3898   \- SPECIAL_SOCKET
3899   \- SPECIAL_FIFO
3900   \- SPECIAL_DOOR
3904 .\"NODE "Special Settings"
3905 .SH "Special Settings"
3906 Most of the Midnight Commander settings can be changed from the
3907 menus. However, there are a small number of settings which can only be
3908 changed by editing the setup file.
3910 These variables may be set in your ~/.config/mc/ini file:
3912 .I clear_before_exec
3913 By default the Midnight Commander clears the screen before executing a
3914 command.  If you would prefer to see the output of the command at the
3915 bottom of the screen, edit your ~/.config/mc/ini file and change the value of
3916 the field clear_before_exec to 0.
3918 .I confirm_view_dir
3919 If you press F3 on a directory, normally MC enters that directory.  If
3920 this flag is set to 1, then MC will ask for confirmation before changing
3921 the directory if you have files tagged.
3923 .I ftpfs_retry_seconds
3924 This value is the number of seconds the Midnight Commander will wait
3925 before attempting to reconnect to an FTP server that has denied the
3926 login.  If the value is zero, the login will no be retried.
3928 .I max_dirt_limit
3929 Specifies how many screen updates can be skipped at most in the internal
3930 file viewer.  Normally this value is not significant, because the code
3931 automatically adjusts the number of updates to skip according to the
3932 rate of incoming keystrokes.  However, on very slow machines or
3933 terminals with a fast keyboard auto repeat, a big value can make screen
3934 updates too jumpy.
3936 It seems that setting max_dirt_limit to 10 causes the best behavior,
3937 and that is the default value.
3939 .I mouse_move_pages_viewer
3940 Controls if scrolling with the mouse is done by pages or line by line
3941 on the internal file viewer.
3943 .I only_leading_plus_minus
3944 Allow special treatment for '+', '\-', '*' in the command line (select,
3945 unselect, reverse selection) only if the command line is empty.  You
3946 don't need to quote those characters in the middle of the command line.
3947 On the other hand, you cannot use them to change selection when the
3948 command line is not empty.
3950 .I show_output_starts_shell
3951 This variable only works if you are not using the subshell support.
3952 When you use the C\-o keystroke to go back to the user screen, if this
3953 one is set, you will get a fresh shell.  Otherwise, pressing any key
3954 will bring you back to the Midnight Commander.
3956 .I timeformat_recent
3957 Change the time format used to display dates less than 6 months from
3958 now.
3959 See strftime or date man page for the format specification. If this
3960 option is absent, default timeformat is used.
3962 .I timeformat_old
3963 Change the time format used to display  dates older than 6 months from
3964 now or for dates in the future.
3965 See strftime or date man page for the format specification. If this
3966 option is absent, default timeformat is used.
3968 .I torben_fj_mode
3969 If this flag is set, then the home and end keys will work slightly
3970 different on the panels, instead of moving the selection to the first
3971 and last files in the panels, they will act as follows:
3973 The home key will: Go up to the middle line, if below it; else go to the
3974 top line unless it is already on the top line, in this case it will go
3975 to the first file in the panel.
3977 The end key has a similar behavior: Go down to the middle line, if over
3978 it; else go to the bottom line unless you already are at the bottom
3979 line, in such case it will move the selection to the last file name in
3980 the panel.
3982 .I use_file_to_guess_type
3983 If this variable is on (the default) it will spawn the file command to
3984 match the file types listed on the
3985 .\"LINK2"
3986 mc.ext file\&.
3987 .\"Extension File Edit"
3989 .I xtree_mode
3990 If this variable is on (default is off) when you browse the file system
3991 on a Tree panel, it will automatically reload the other panel with the
3992 contents of the selected directory.
3994 .I fish_directory_timeout
3995 This variable holds the lifetime of a directory cache entry in seconds. The
3996 default value is 900 seconds.
3998 .I clipboard_store
3999 This variable contains path (with options) to the external clipboard
4000 utility like 'xclip' to read text into X selection from file.
4001 For example:
4004 clipboard_store=xclip \-i
4007 .I clipboard_paste
4008 This variable contains path (with options) to the external clipboard
4009 utility like 'xclip' to print the selection to standard out.
4010 For example:
4013 clipboard_pastee=xclip \-o
4016 .I autodetect_codeset
4017 This option allows use the `enca' command to autodetect codeset of text files
4018 in internal viewer and editor. List of valid values can be obtain by the
4019 `enca \-\-list languages | cut \-d : \-f1' command. Option must be located
4020 in the [Misc] section.
4022 For example:
4025 autodetect_codeset=russian
4027 .\"NODE "Terminal databases"
4028 .SH "Terminal databases"
4029 The Midnight Commander provides a way to fix your system terminal
4030 database without requiring root privileges.  The Midnight Commander
4031 searches in the system initialization file (the mc.lib file located in
4032 the Midnight Commander library directory) and in the 
4033 ~/.config/mc/ini file for the section 
4034 "terminal:your\-terminal\-name" and then for the section
4035 "terminal:general", each line of the section contains a key symbol that
4036 you want to define, followed by an equal sign and the definition for the
4037 key.  You can use the special \\e form to represent the escape character
4038 and the ^x to represent the control\-x character.
4040 The possible key symbols are:
4043 f0 to f20     Function keys f0\-f20
4044 bs            backspace
4045 home          home key
4046 end           end key
4047 up            up arrow key
4048 down          down arrow key
4049 left          left arrow key
4050 right         right arrow key
4051 pgdn          page down key
4052 pgup          page up key
4053 insert        the insert character
4054 delete        the delete character
4055 complete      to do completion
4058 For example, to define the key insert to be the Escape + [ + O + p, you
4059 set this in the ini file:
4062 insert=\\e[Op
4066 Also now you can use
4067 .I extended learn keys.
4068 For example:
4071     ctrl\-alt\-right=\\e[[1;6C
4072     ctrl\-alt\-left=\\e[[1;6D
4076 This means that ctrl+alt+left sends a \\e[[1;6D escape sequence
4077 and therefore Midnight Commander interprets "\\e[[1;6D" as Ctrl\-Alt\-Left.
4081 .I complete
4082 key symbol represents the escape sequences used to invoke the completion
4083 process, this is invoked with Alt\-tab, but you can define other keys to do
4084 the same work (on those keyboard with tons of nice and unused keys
4085 everywhere).
4086 .SH ""
4087 .\"NODE "FILES"
4088 .SH "FILES"
4089 Full paths below may vary between installations.  They are also affected
4090 by the MC_DATADIR environment variable.  If it's set, its value is used
4091 instead of @prefix@/share/mc in the paths below.
4093 .I @prefix@/share/mc/mc.hlp
4095 The help file for the program.
4097 .I @prefix@/share/mc/mc.ext
4099 The default system\-wide extensions file.
4101 .I ~/.local/share/mc/bindings
4103 User's own extension, view configuration and edit configuration
4104 file.  They override the contents of the system wide files if present.
4106 .I @prefix@/share/mc/mc.ini
4108 The default system\-wide setup for the Midnight Commander, used only if
4109 the user doesn't have his own ~/.config/mc/ini file.
4111 .I @prefix@/share/mc/mc.lib
4113 Global settings for the Midnight Commander.  Settings in this file
4114 affect all users, whether they have ~/.config/mc/ini or not.  Currently, only
4115 .\"LINK2"
4116 terminal settings
4117 .\"Terminal databases"
4118 are loaded from mc.lib.
4120 .I ~/.config/mc/ini
4122 User's own setup. If this file is present then the setup is loaded
4123 from here instead of the system\-wide startup file.
4125 .I @prefix@/share/mc/mc.hint
4127 This file contains the hints displayed by the program.
4129 .I @prefix@/share/mc/mc.menu
4131 This file contains the default system\-wide applications menu.
4133 .I ~/.local/share/mc/menu
4135 User's own application menu. If this file is present it is used instead
4136 of the system\-wide applications menu.
4138 .I ~/.cache/mc/Tree
4140 The directory list for the directory tree and tree view features.
4142 .I ~/.local/share/mc.menu
4144 Local user\-defined menu. If this file is present, it is used instead of
4145 the home or system\-wide applications menu.
4146 .\"SKIP_SECTION"
4147 .SH "LICENSE"
4148 This program is distributed under the terms of the GNU General Public
4149 License as published by the Free Software Foundation. See the built\-in
4150 help for details on the License and the lack of warranty.
4151 .\"NODE "AVAILABILITY"
4152 .SH "AVAILABILITY"
4153 The latest version of this program can be found at
4154 ftp://ftp.gnu.org/gnu/mc/.
4155 .\"NODE "SEE ALSO"
4156 .SH "SEE ALSO"
4157 ed(1), gpm(1), terminfo(1), view(1), sh(1), bash(1),
4158 tcsh(1), zsh(1).
4161 The Midnight Commander page on the World Wide Web:
4162         http://www.midnight\-commander.org/
4164 .\"NODE "AUTHORS"
4165 .SH "AUTHORS"
4166 Authors and contributors are listed in the AUTHORS file in the source
4167 distribution.
4168 .\"NODE "BUGS"
4169 .SH "BUGS"
4170 See the file TODO in the distribution for information on what remains to
4171 be done.
4173 If you want to report a problem with the program, please send mail to
4174 this address: mc\-devel@gnome.org.
4176 Provide a detailed description of the bug, the version of the program
4177 you are running
4178 .RI ( "mc \-V"
4179 displays this information), the operating system you are running the
4180 program on.  If the program crashes, we would appreciate a stack trace.