mc.1.in 122 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191
  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 \-F, \-\-datadir\-info
  59. Display extended info about compiled\-in paths for
  60. Midnight Commander.
  61. .TP
  62. .I \-\-configure\-options
  63. Display configure options.
  64. .TP
  65. .I \-k, \-\-resetsoft
  66. Reset softkeys to their default from the termcap/terminfo
  67. database. Only useful on HP terminals when the function keys don't work.
  68. .TP
  69. .I \-K file
  70. Specify a name of keymap file in the command line.
  71. .TP
  72. .I \-\-nokeymap
  73. Don't load key bindings from any file, use default hardcoded keys.
  74. .TP
  75. .I \-l file, \-\-ftplog=file
  76. Save the ftpfs dialog with the server in file.
  77. .TP
  78. .I \-P file, \-\-printwd=file
  79. Print the last working directory to the specified file. This option is
  80. not meant to be used directly. Instead, it's used from a special shell
  81. script that automatically changes the current directory of the shell to
  82. the last directory the Midnight Commander was in. Source the file
  83. .B @prefix@/share/mc/bin/mc.sh
  84. (bash and zsh users) or
  85. .B @prefix@/share/mc/bin/mc.csh
  86. (tcsh users) respectively to define
  87. .B mc
  88. as an alias to the appropriate shell script.
  89. .TP
  90. .I \-s
  91. Set alternative mode drawing of frameworks.
  92. If the section [Lines] is not filled, the symbol for the pseudographics
  93. frame is a space, otherwise the frame characters are taken from follow params.
  94. .B You can redefine the following variables:
  95. .TP
  96. .B lefttop
  97. left\-top corner
  98. .TP
  99. .B righttop
  100. right\-top corner
  101. .TP
  102. .B centertop
  103. center\-top cross
  104. .TP
  105. .B centerbottom
  106. center\-bottom cross
  107. .TP
  108. .B leftbottom
  109. left\-bottom corner
  110. .TP
  111. .B rightbottom
  112. right\-bottom corner
  113. .TP
  114. .B leftmiddle
  115. left\-middle cross
  116. .TP
  117. .B rightmiddle
  118. right\-middle cross
  119. .TP
  120. .B centermiddle
  121. center cross
  122. .TP
  123. .B horiz
  124. default horizontal line
  125. .TP
  126. .B vert
  127. default vertical line
  128. .TP
  129. .B thinhoriz
  130. thin horizontal line
  131. .TP
  132. .B thinvert
  133. thin vertical line
  134. .TP
  135. .I \-t, \-\-termcap
  136. Used only if the code was compiled with Slang and terminfo: it makes
  137. the Midnight Commander use the value of the
  138. .B TERMCAP
  139. variable for the terminal information instead of the information on
  140. the system wide terminal database
  141. .TP
  142. .I \-u, \-\-nosubshell
  143. Disable use of the concurrent shell (only makes sense if the Midnight
  144. Commander has been built with concurrent shell support).
  145. .TP
  146. .I \-U, \-\-subshell
  147. Enable use of the concurrent shell support (only makes sense if the
  148. Midnight Commander was built with the subshell support set as an
  149. optional feature).
  150. .TP
  151. .I \-v file, \-\-view=file
  152. Start the internal viewer to view the specified file. See also
  153. .BR "mcview (1)" .
  154. .TP
  155. .I \-V, \-\-version
  156. Display the version of the program.
  157. .TP
  158. .I \-x, \-\-xterm
  159. Force xterm mode. Used when running on xterm\-capable terminals (two
  160. screen modes, and able to send mouse escape sequences).
  161. .TP
  162. .I \-X, \-\-no\-x
  163. Do not use X11 to get the state of modifiers Alt, Ctrl, Shift
  164. .TP
  165. .I \-g, \-\-oldmouse
  166. Force a "normal tracking" mouse mode. Used when running on
  167. xterm\-capable terminals (tmux/screen).
  168. .PP
  169. If specified, the first path name is the directory to show in the
  170. selected panel; the second path name is the directory to be shown in
  171. the other panel.
  172. .\"NODE "Overview"
  173. .SH "Overview"
  174. The screen of the Midnight Commander is divided into four parts.
  175. Almost all of the screen space is taken up by two directory panels.
  176. By default, the second line from the bottom of the screen is the
  177. shell command line, and the bottom line shows the function key labels.
  178. The topmost line is the
  179. .\"LINK2"
  180. menu bar line\&.
  181. .\"Menu Bar"
  182. The menu bar line may not be visible, but appears if you click the
  183. topmost line with the mouse or press the F9 key.
  184. .PP
  185. The Midnight Commander provides a view of two directories at the same
  186. time. One of the panels is the current panel (a selection bar is in
  187. the current panel). Almost all operations take place on the current
  188. panel. Some file operations like Rename and Copy by default use the
  189. directory of the unselected panel as a destination (don't worry, they
  190. always ask you for confirmation first). For more information, see the
  191. sections on the
  192. .\"LINK2"
  193. Directory Panels\&,
  194. .\"Directory Panels"
  195. the
  196. .\"LINK2"
  197. Left and Right Menus
  198. .\"Left and Right Menus"
  199. and the
  200. .\"LINK2"
  201. File Menu\&.
  202. .\"File Menu"
  203. .PP
  204. You can execute system commands from the Midnight Commander by simply
  205. typing them. Everything you type will appear on the shell command line,
  206. and when you press Enter the Midnight Commander will execute the
  207. command line you typed; read the
  208. .\"LINK2"
  209. Shell Command Line
  210. .\"Shell Command Line"
  211. and
  212. .\"LINK2"
  213. Input Line Keys
  214. .\"Input Line Keys"
  215. sections to learn more about the command line.
  216. .\"NODE "Mouse Support"
  217. .SH "Mouse Support"
  218. The Midnight Commander comes with mouse support. It is activated
  219. whenever you are running on an
  220. .B xterm(1)
  221. terminal (it even works if you take a telnet, ssh or rlogin connection to
  222. another machine from the xterm) or if you are running on a Linux
  223. console and have the
  224. .B gpm
  225. mouse server running.
  226. .PP
  227. When you left click on a file in the directory panels, that file is
  228. selected; if you click with the right button, the file is marked (or
  229. unmarked, depending on the previous state).
  230. .PP
  231. Double\-clicking on a file will try to execute the command if it is
  232. an executable program; and if the
  233. .\"LINK2"
  234. extension file
  235. .\"Extension File Edit"
  236. has a program specified for the file's extension, the specified
  237. program is executed.
  238. .PP
  239. Also, it is possible to execute the commands assigned to the function
  240. key labels by clicking on them.
  241. .PP
  242. The default auto repeat rate for the mouse buttons is 400
  243. milliseconds. This may be changed to other values by editing the
  244. .\"LINK2"
  245. \&~/.config/mc/ini
  246. .\"Save Setup"
  247. file and changing the
  248. .I mouse_repeat_rate
  249. parameter.
  250. .PP
  251. If you are running the Midnight Commander with the mouse support, you
  252. can get the default mouse behavior (cutting and pasting text) by holding
  253. down the Shift key.
  254. .SH ""
  255. .\"NODE "Keys"
  256. .SH "Keys"
  257. Some commands in the Midnight Commander involve the use of the
  258. .I Control
  259. (sometimes labeled CTRL or CTL) and the
  260. .I Meta
  261. (sometimes labeled ALT or even Compose) keys. In this manual we will
  262. use the following abbreviations:
  263. .TP
  264. .B C\-<chr>
  265. means hold the Control key while typing the character <chr>.
  266. Thus C\-f would be: hold the Control key and type f.
  267. .TP
  268. .B Alt\-<chr>
  269. means hold the Meta or Alt key down while typing <chr>.
  270. If there is no Meta or Alt key, type
  271. .IR ESC ,
  272. release it, then type the character <chr>.
  273. .TP
  274. .B S\-<chr>
  275. means hold the Shift key down while typing <chr>.
  276. .PP
  277. All input lines in the Midnight Commander use an approximation to
  278. the GNU Emacs editor's key bindings (default).
  279. .PP
  280. You may redefine key bindings. See
  281. .\"LINK2"
  282. .I redefine hotkey bindings
  283. .\"Keys_redefine"
  284. .PP
  285. for more info. All other key bindings (described in this manual) relative
  286. to default behavior.
  287. .PP
  288. There are many sections which tell about the keys. The following are
  289. the most important.
  290. .PP
  291. The
  292. .\"LINK2"
  293. File Menu
  294. .\"File Menu"
  295. section documents the keyboard shortcuts for the commands appearing in
  296. the File menu. This section includes the function keys. Most of these
  297. commands perform some action, usually on the selected file or the
  298. tagged files.
  299. .PP
  300. The
  301. .\"LINK2"
  302. Directory Panels
  303. .\"Directory Panels"
  304. section documents the keys which select a file or tag files as a
  305. target for a later action (the action is usually one from the file
  306. menu).
  307. .PP
  308. The
  309. .\"LINK2"
  310. Shell Command Line
  311. .\"Shell Command Line"
  312. section list the keys which are used for entering and editing command
  313. lines. Most of these copy file names and such from the directory
  314. panels to the command line (to avoid excessive typing) or access the
  315. command line history.
  316. .PP
  317. .\"LINK2"
  318. Input Line Keys
  319. .\"Input Line Keys"
  320. are used for editing input lines. This means both the command line and
  321. the input lines in the query dialogs.
  322. .\"NODE " Keys_redefine"
  323. .SH " Redefine hotkey bindings"
  324. Hotkey bindings may be read from external file (keymap\-file).
  325. A keymap\-file is searched on the following algorithm (to the first one found):
  326. .IP
  327. .br
  328. 1) command line option
  329. .B \-K \<keymap\>
  330. or
  331. .B \-\-keymap=\<keymap\>
  332. .br
  333. 2) Environment variable
  334. .B MC_KEYMAP
  335. .br
  336. 3) Parameter
  337. .B keymap
  338. in section
  339. .B [Midnight\-Commander]
  340. of config file.
  341. .br
  342. 4) File
  343. .B ~/.config/mc/mc.keymap
  344. .br
  345. 5) File
  346. .B @sysconfdir@/mc/mc.keymap
  347. .br
  348. 6) File
  349. .B @prefix@/share/mc/mc.keymap
  350. .PP
  351. Command line option, environment variable and parameter in config file may
  352. contain the absolute path to the keymap\-file (with the extension \.keymap
  353. or without it). Search of keymap\-file will occur in (to the first one found):
  354. .IP
  355. .br
  356. 1)
  357. .B ~/.config/mc
  358. .br
  359. 2)
  360. .B @sysconfdir@/mc/
  361. .br
  362. 3)
  363. .B @prefix@/share/mc/
  364. .\"NODE " Miscellaneous Keys"
  365. .SH " Miscellaneous Keys"
  366. Here are some keys which don't fall into any of the other categories:
  367. .TP
  368. .B Enter
  369. if there is some text in the command line (the one at the bottom of
  370. the panels), then that command is executed. If there is no text in the
  371. command line then if the selection bar is over a directory the
  372. Midnight Commander does a
  373. .B chdir(2)
  374. to the selected directory and reloads the information on the panel;
  375. if the selection is an executable file then it is executed. Finally,
  376. if the extension of the selected file name matches one of the
  377. extensions in the
  378. .\"LINK2"
  379. extensions file
  380. .\"Extension File Edit"
  381. then the corresponding command is executed.
  382. .TP
  383. .B C\-l
  384. repaint all the information in the Midnight Commander.
  385. .TP
  386. .B C\-x c
  387. run the
  388. .\"LINK2"
  389. Chmod
  390. .\"Chmod"
  391. command on a file or on the tagged files.
  392. .TP
  393. .B C\-x o
  394. run the
  395. .\"LINK2"
  396. Chown
  397. .\"Chown"
  398. command on the current file or on the tagged files.
  399. .TP
  400. .B C\-x l
  401. run the hard link command.
  402. .TP
  403. .B C\-x s
  404. run the absolute symbolic link command.
  405. .TP
  406. .B C\-x v
  407. run the relative symbolic link command. See the
  408. .\"LINK2"
  409. File Menu
  410. .\"File Menu"
  411. section for more information about symbolic links.
  412. .TP
  413. .B C\-x i
  414. set the other panel display mode to information.
  415. .TP
  416. .B C\-x q
  417. set the other panel display mode to quick view.
  418. .TP
  419. .B C\-x !
  420. execute the
  421. .\"LINK2"
  422. External panelize
  423. .\"External panelize"
  424. command.
  425. .TP
  426. .B C\-x h
  427. run the
  428. .\"LINK2"
  429. add directory to hotlist
  430. .\"Hotlist"
  431. command.
  432. .TP
  433. .B Alt\-!
  434. executes the Filtered view command, described in the
  435. .\"LINK2"
  436. view command\&.
  437. .\"Internal File Viewer"
  438. .TP
  439. .B Alt\-?
  440. executes the
  441. .\"LINK2"
  442. Find file
  443. .\"Find File"
  444. command.
  445. .TP
  446. .B Alt\-c
  447. pops up the
  448. .\"LINK2"
  449. quick cd
  450. .\"Quick cd"
  451. dialog.
  452. .TP
  453. .B C\-o
  454. when the program is being run in the Linux or FreeBSD console or under
  455. an xterm, it will show you the output of the previous command. When ran
  456. on the Linux console, the Midnight Commander uses an external program
  457. (cons.saver) to handle saving and restoring of information on the
  458. screen.
  459. .PP
  460. When the subshell support is compiled in, you can type C\-o at any time
  461. and you will be taken back to the Midnight Commander main screen, to
  462. return to your application just type C\-o. If you have an application
  463. suspended by using this trick, you won't be able to execute other
  464. programs from the Midnight Commander until you terminate the suspended
  465. application.
  466. .\"NODE " Directory Panels"
  467. .SH " Directory Panels"
  468. This section lists the keys which operate on the directory panels. If
  469. you want to know how to change the appearance of the panels take a
  470. look at the section on
  471. .\"LINK2"
  472. Left and Right Menus\&.
  473. .\"Left and Right Menus"
  474. .TP
  475. .B Tab, C\-i
  476. change the current panel. The old other panel becomes the new current
  477. panel and the old current panel becomes the new other panel. The
  478. selection bar moves from the old current panel to the new current
  479. panel.
  480. .TP
  481. .B Insert, C\-t
  482. to tag files you may use the Insert key (the kich1 terminfo sequence).
  483. To untag files, just retag a tagged file.
  484. .TP
  485. .B M\-e
  486. to change charset of panel you may use M\-e (Alt\-e).
  487. Recoding is made from selected codepage into system codepage. To
  488. cancel the recoding you may select "directory up" (..) in active panel.
  489. To cancel the charsets in all directories, select "No translation " in
  490. the dialog of encodings.
  491. .TP
  492. .B Alt\-g, Alt\-r, Alt\-j
  493. used to select the top file in a panel, the middle file and the bottom one,
  494. respectively.
  495. .TP
  496. .B Alt\-t
  497. toggle the current display listing to show the next display listing
  498. mode.
  499. With this it is possible to quickly switch to brief listing, long
  500. listing, user defined listing mode, and back to the default.
  501. .TP
  502. .B C\-\\\\ (control\-backslash)
  503. show the
  504. .\"LINK2"
  505. directory hotlist
  506. .\"Hotlist"
  507. and change to the selected directory.
  508. .TP
  509. .B + \ (plus)
  510. this is used to select (tag) a group of files. The Midnight Commander
  511. will prompt for a selection options. When
  512. .I Files only
  513. checkbox is on, only files will be selected. If
  514. .I Files only
  515. is off, as files as directories will be selected.
  516. When
  517. .I Shell Patterns
  518. checkbox is on, the regular expression is much like the filename globbing
  519. in the shell (* standing for zero or more characters and ? standing
  520. for one character). If
  521. .I Shell Patterns
  522. is off, then the tagging of files is done with normal regular
  523. expressions (see ed (1)). When
  524. .I Case sensitive
  525. checkbox is on, the selection will be case sensitive characters.
  526. If
  527. .I Case sensitive
  528. is off, the case will be ignored.
  529. .TP
  530. .B \\\\ (backslash)
  531. use the "\\" key to unselect a group of files. This is the opposite of
  532. the Plus key.
  533. .TP
  534. .B up\-key, C\-p
  535. move the selection bar to the previous entry in the panel.
  536. .TP
  537. .B down\-key, C\-n
  538. move the selection bar to the next entry in the panel.
  539. .TP
  540. .B home, a1, Alt\-<
  541. move the selection bar to the first entry in the panel.
  542. .TP
  543. .B end, c1, Alt\->
  544. move the selection bar to the last entry in the panel.
  545. .TP
  546. .B next\-page, C\-v
  547. move the selection bar one page down.
  548. .TP
  549. .B prev\-page, Alt\-v
  550. move the selection bar one page up.
  551. .TP
  552. .B Alt\-o
  553. If the currently selected file is a directory, load that directory on
  554. the other panel and moves the selection to the next file. If the
  555. currently selected file is not a directory, load the parent directory
  556. on the other panel and moves the selection to the next file.
  557. .TP
  558. .B Alt\-i
  559. make the current directory of the current panel also the current
  560. directory of the other panel. Put the other panel to the listing mode
  561. if needed. If the current panel is panelized, the other panel doesn't
  562. become panelized.
  563. .TP
  564. .B C\-PageUp, C\-PageDown
  565. only when supported by the terminal: change to ".." and to the currently
  566. selected directory respectively.
  567. .TP
  568. .B Alt\-y
  569. moves to the previous directory in the history, equivalent to clicking
  570. the
  571. .I <
  572. with the mouse.
  573. .TP
  574. .B Alt\-u
  575. moves to the next directory in the history, equivalent to clicking the
  576. .I >
  577. with the mouse.
  578. .TP
  579. .B Alt\-Shift\-h, Alt\-H
  580. displays the directory history, equivalent to depressing the 'v' with
  581. the mouse.
  582. .\"NODE " Quick search"
  583. .SH " Quick search"
  584. The Quick search mode allows to perform fast file search in file panel.
  585. Press
  586. .I C\-s
  587. or
  588. .I Alt\-s
  589. to start a filename search in the directory listing.
  590. .P
  591. When the search is active, the user input will be added to the search string
  592. instead of the command line. If the
  593. .I Show mini\-status
  594. option is enabled the search string is shown on the mini\-status
  595. line. When typing, the selection bar will move to the next file
  596. starting with the typed letters. The
  597. .I Backspace
  598. or
  599. .I DEL
  600. keys can be used to correct typing mistakes. If C\-s is pressed
  601. again, the next match is searched for.
  602. .P
  603. If quick search is started with double pressing of C\-s, the previous quick
  604. search pattern will be used for current search.
  605. .P
  606. Besides the filename characters, you can also use wildcard
  607. characters '*' and '?'.
  608. .\"NODE " Shell Command Line"
  609. .SH " Shell Command Line"
  610. This section lists keys which are useful to avoid excessive typing when
  611. entering shell commands.
  612. .TP
  613. .B Alt\-Enter
  614. copy the currently selected file name to the command line.
  615. .TP
  616. .B C\-Enter
  617. same a Alt\-Enter. May not work on remote systems and some terminals.
  618. .TP
  619. .B C\-Shift\-Enter
  620. copy the full path name of the currently selected file to the command
  621. line. May not work on remote systems and some terminals.
  622. .TP
  623. .B Alt\-Tab
  624. does the filename, command, variable, username and hostname
  625. .\"LINK2"
  626. completion
  627. .\"Completion"
  628. for you.
  629. .TP
  630. .B C\-x t, C\-x C\-t
  631. copy the tagged files (or if there are no tagged files, the selected
  632. file) of the current panel (C\-x t) or of the other panel (C\-x C\-t) to
  633. the command line.
  634. .TP
  635. .B C\-x p, C\-x C\-p
  636. the first key sequence copies the current path name to the command
  637. line, and the second one copies the unselected panel's path name to
  638. the command line.
  639. .TP
  640. .B C\-q
  641. the quote command can be used to insert characters that are otherwise
  642. interpreted by the Midnight Commander (like the '+' symbol)
  643. .TP
  644. .B Alt\-p, Alt\-n
  645. use these keys to browse through the command history. Alt\-p takes you
  646. to the last entry, Alt\-n takes you to the next one.
  647. .TP
  648. .B Alt\-h
  649. displays the history for the current input line.
  650. .\"NODE " General Movement Keys"
  651. .SH " General Movement Keys"
  652. The help viewer, the file viewer and the directory tree use common
  653. code to handle moving. Therefore they accept exactly the same
  654. keys. Each of them also accepts some keys of its own.
  655. .PP
  656. Other parts of the Midnight Commander use some of the same movement
  657. keys, so this section may be of use for those parts too.
  658. .TP
  659. .B Up, C\-p
  660. moves one line backward.
  661. .TP
  662. .B Down, C\-n
  663. moves one line forward.
  664. .TP
  665. .B Prev Page, Page Up, Alt\-v
  666. moves one page up.
  667. .TP
  668. .B Next Page, Page Down, C\-v
  669. moves one page down.
  670. .TP
  671. .B Home, A1
  672. moves to the beginning.
  673. .TP
  674. .B End, C1
  675. move to the end.
  676. .PP
  677. The help viewer and the file viewer accept the following keys in
  678. addition the to ones mentioned above:
  679. .TP
  680. .B b, C\-b, C\-h, Backspace, Delete
  681. moves one page up.
  682. .TP
  683. .B Space bar
  684. moves one page down.
  685. .TP
  686. .B u, d
  687. moves one half of a page up or down.
  688. .TP
  689. .B g, G
  690. moves to the beginning or to the end.
  691. .\"NODE " Input Line Keys"
  692. .SH " Input Line Keys"
  693. The input lines (they are used for the
  694. .\"LINK2"
  695. command line
  696. .\"Shell Command Line"
  697. and for the query dialogs in the program) accept these keys:
  698. .TP
  699. .B C\-a
  700. puts the cursor at the beginning of line.
  701. .TP
  702. .B C\-e
  703. puts the cursor at the end of the line.
  704. .TP
  705. .B C\-b, move\-left
  706. move the cursor one position left.
  707. .TP
  708. .B C\-f, move\-right
  709. move the cursor one position right.
  710. .TP
  711. .B Alt\-f
  712. moves one word forward.
  713. .TP
  714. .B Alt\-b
  715. moves one word backward.
  716. .TP
  717. .B C\-h, Backspace
  718. delete the previous character.
  719. .TP
  720. .B C\-d, Delete
  721. delete the character in the point (over the cursor).
  722. .TP
  723. .B C\-@
  724. sets the mark for cutting.
  725. .TP
  726. .B C\-w
  727. copies the text between the cursor and the mark to a kill buffer and
  728. removes the text from the input line.
  729. .TP
  730. .B Alt\-w
  731. copies the text between the cursor and the mark to a kill buffer.
  732. .TP
  733. .B C\-y
  734. yanks back the contents of the kill buffer.
  735. .TP
  736. .B C\-k
  737. kills the text from the cursor to the end of the line.
  738. .TP
  739. .B Alt\-p, Alt\-n
  740. Use these keys to browse through the command history. Alt\-p takes you
  741. to the last entry, Alt\-n takes you to the next one.
  742. .TP
  743. .B Alt\-C\-h, Alt\-Backspace
  744. delete one word backward.
  745. .TP
  746. .B Alt\-Tab
  747. does the filename, command, variable, username and hostname
  748. .\"LINK2"
  749. completion
  750. .\"Completion"
  751. for you.
  752. .SH ""
  753. .\"NODE "Menu Bar"
  754. .SH "Menu Bar"
  755. The menu bar pops up when you press F9 or click the mouse on the top
  756. row of the screen. The menu bar has five menus: "Left", "File",
  757. "Command", "Options" and "Right".
  758. .PP
  759. The
  760. .\"LINK2"
  761. Left and Right Menus
  762. .\"Left and Right Menus"
  763. allow you to modify the appearance of the left and right directory
  764. panels.
  765. .PP
  766. The
  767. .\"LINK2"
  768. File Menu
  769. .\"File Menu"
  770. lists the actions you can perform on the currently selected file or
  771. the tagged files.
  772. .PP
  773. The
  774. .\"LINK2"
  775. Command Menu
  776. .\"Command Menu"
  777. lists the actions which are more general and bear no relation to the
  778. currently selected file or the tagged files.
  779. .PP
  780. The
  781. .\"LINK2"
  782. Options Menu
  783. .\"Options Menu"
  784. lists the actions which allow you to customize the Midnight Commander.
  785. .\"NODE " Left and Right Menus"
  786. .SH " Left and Right (Above and Below) Menus"
  787. The outlook of the directory panels can be changed from the
  788. .B Left
  789. and
  790. .B Right
  791. menus (they are named
  792. .B Above
  793. and
  794. .B Below
  795. when the horizontal panel split is chosen from the
  796. .\"LINK2"
  797. Layout
  798. .\"Layout"
  799. options dialog).
  800. .\"NODE " Listing Mode..."
  801. .SH " Listing Mode..."
  802. The listing mode view is used to display a listing of files, there are
  803. four different listing modes available:
  804. .BR Full ,
  805. .BR Brief ,
  806. .B Long
  807. and
  808. .BR User .
  809. The full directory view shows the file name, the size of the file and
  810. the modification time.
  811. .PP
  812. The brief view shows only the file name and it has two columns
  813. (therefore showing twice as many files as other views). The long view
  814. is similar to the output of
  815. .B "ls \-l"
  816. command. The long view takes the whole screen width.
  817. .PP
  818. If you choose the "User" display format, then you have to specify
  819. the display format.
  820. .PP
  821. The user display format must start with a panel size specifier. This
  822. may be "half" or "full", and they specify a half screen panel and a
  823. full screen panel respectively.
  824. .PP
  825. After the panel size, you may specify the two columns mode on the
  826. panel, this is done by adding the number "2" to the user format
  827. string.
  828. .PP
  829. After this you add the name of the fields with an optional size
  830. specifier. This are the available fields you may display:
  831. .TP
  832. .B name
  833. displays the file name.
  834. .TP
  835. .B size
  836. displays the file size.
  837. .TP
  838. .B bsize
  839. is an alternative form of the
  840. .B size
  841. format. It displays the size of the files and for directories it just
  842. shows SUB\-DIR or UP\-\-DIR.
  843. .TP
  844. .B type
  845. displays a one character wide type field. This character is similar to
  846. what is displayed by ls with the \-F flag \-
  847. .B *
  848. for executable files,
  849. .B /
  850. for directories,
  851. .B @
  852. for links,
  853. .B =
  854. for sockets,
  855. .B \-
  856. for character devices,
  857. .B +
  858. for block devices,
  859. .B |
  860. for pipes,
  861. .B ~
  862. for symbolic links to directories and
  863. .B !
  864. for stale symlinks (links that point nowhere).
  865. .TP
  866. .B mark
  867. an asterisk if the file is tagged, a space if it's not.
  868. .TP
  869. .B mtime
  870. file's last modification time.
  871. .TP
  872. .B atime
  873. file's last access time.
  874. .TP
  875. .B ctime
  876. file's status change time.
  877. .TP
  878. .B perm
  879. a string representing the current permission bits of the file.
  880. .TP
  881. .B mode
  882. an octal value with the current permission bits of the file.
  883. .TP
  884. .B nlink
  885. the number of links to the file.
  886. .TP
  887. .B ngid
  888. the GID (numeric).
  889. .TP
  890. .B nuid
  891. the UID (numeric).
  892. .TP
  893. .B owner
  894. the owner of the file.
  895. .TP
  896. .B group
  897. the group of the file.
  898. .TP
  899. .B inode
  900. the inode of the file.
  901. .PP
  902. Also you can use following keywords to define the panel layout:
  903. .TP
  904. .B space
  905. a space in the display format.
  906. .TP
  907. .B |
  908. add a vertical line to the display format.
  909. .PP
  910. To force one field to a fixed size (a size specifier), you just add
  911. .B :
  912. followed by the number of characters you want the field to have. If the
  913. number is followed by the symbol
  914. .BR + ,
  915. then the size specifies the minimal field size \- if the program finds
  916. out that there is more space on the screen, it will then expand that
  917. field.
  918. .PP
  919. For example, the
  920. .B Full
  921. display corresponds to this format:
  922. .PP
  923. half type name | size | mtime
  924. .PP
  925. And the
  926. .B Long
  927. display corresponds to this format:
  928. .PP
  929. full perm space nlink space owner space group space size space mtime
  930. space name
  931. .PP
  932. This is a nice user display format:
  933. .PP
  934. half name | size:7 | type mode:3
  935. .PP
  936. Panels may also be set to the following modes:
  937. .TP
  938. .B "Info"
  939. The info view display information related to the currently
  940. selected file and if possible information about the current file
  941. system.
  942. .TP
  943. .B "Tree"
  944. The tree view is quite similar to the
  945. .\"LINK2"
  946. directory tree
  947. .\"Directory Tree"
  948. feature. See the section about it for more information.
  949. .TP
  950. .B "Quick View"
  951. In this mode, the panel will switch to a reduced
  952. .\"LINK2"
  953. viewer
  954. .\"Internal File Viewer"
  955. that displays the contents of the currently selected file, if you
  956. select the panel (with the tab key or the mouse), you will have access
  957. to the usual viewer commands.
  958. .\"NODE " Sort Order..."
  959. .SH " Sort Order..."
  960. The eight sort orders are by name, by extension, by modification time,
  961. by access time, and by inode information modification time, by size,
  962. by inode and unsorted. In the Sort order dialog box you can choose
  963. the sort order and you may also specify if you want to sort in reverse
  964. order by checking the reverse box.
  965. .PP
  966. By default directories are sorted before files but this can be changed
  967. from the
  968. .\"LINK2"
  969. Panel options
  970. .\"Panel options"
  971. menu (option
  972. .BR "Mix all files" ).
  973. .\"NODE " Filter..."
  974. .SH " Filter..."
  975. The filter command allows you to specify a shell pattern (for example
  976. .BR "*.tar.gz" )
  977. which the files must match to be shown. Regardless
  978. of the filter pattern, the directories and the links to directories
  979. are always shown in the directory panel.
  980. .\"NODE " Reread"
  981. .SH " Reread"
  982. The reread command reload the list of files in the directory. It is
  983. useful if other processes have created or removed files.
  984. .\"NODE " File Menu"
  985. .SH " File Menu"
  986. The Midnight Commander uses the F1 \- F10 keys as keyboard shortcuts
  987. for commands appearing in the file menu. The escape sequences for the
  988. function keys are terminfo capabilities kf1 trough kf10. On terminals
  989. without function key support, you can achieve the same functionality by
  990. pressing the ESC key and then a number in the range 1 through 9 and 0
  991. (corresponding to F1 to F9 and F10 respectively).
  992. .PP
  993. The File menu has the following commands (keyboard shortcuts in parentheses):
  994. .PP
  995. .B Help (F1)
  996. .PP
  997. Invokes the built\-in hypertext help viewer. Inside the
  998. .\"LINK2"
  999. help viewer\&,
  1000. .\"Contents"
  1001. you can use the Tab key to select the next link and the Enter key to
  1002. follow that link. The keys Space and Backspace are used to move
  1003. forward and backward in a help page. Press F1 again to get the full
  1004. list of accepted keys.
  1005. .PP
  1006. .B Menu (F2)
  1007. .PP
  1008. Invoke the
  1009. .\"LINK2"
  1010. user menu\&.
  1011. .\"Menu File Edit"
  1012. The user menu provides an easy way to provide users with a menu and
  1013. add extra features to the Midnight Commander.
  1014. .PP
  1015. .B View (F3, F13)
  1016. .PP
  1017. View the currently selected file. By default this invokes the
  1018. .\"LINK2"
  1019. Internal File Viewer
  1020. .\"Internal File Viewer"
  1021. but if the option "Use internal view" is off, it invokes an external
  1022. file viewer specified by the
  1023. .B VIEWER
  1024. environment variable. If
  1025. .B VIEWER
  1026. is undefined, the
  1027. .B PAGER
  1028. environment variable is tried. If
  1029. .B PAGER
  1030. is also undefined, the "view" command is invoked. If you use F13
  1031. instead, the viewer will be invoked without doing any formatting or
  1032. preprocessing to the file.
  1033. .PP
  1034. .B Filtered View (Alt\-!)
  1035. .PP
  1036. This command prompts for a command
  1037. and its arguments (the argument defaults to the currently selected
  1038. file name), the output from such command is shown in the internal file
  1039. viewer.
  1040. .PP
  1041. .B Edit (F4, F14)
  1042. .PP
  1043. Press F4 to edit the highlighted file. Press F14 (usually F14)
  1044. to start the editor with a new, empty file.
  1045. Currently they invoke the
  1046. .B vi
  1047. editor, or the editor specified in the
  1048. .B EDITOR
  1049. environment variable, or the
  1050. .\"LINK2"
  1051. Internal File Editor
  1052. .\"Internal File Editor"
  1053. if the use_internal_edit option is on.
  1054. .PP
  1055. .B Copy (F5, F15)
  1056. .PP
  1057. Press F5 to pop up an input dialog to copy the currently selected file (or
  1058. the tagged files, if there is at least one file tagged) to the
  1059. directory/filename you specify in the input dialog. The destination
  1060. defaults to the directory in the non\-selected panel. Space for destination
  1061. file may be preallocated relative to preallocate_space configure option.
  1062. During this process, you can press C\-c or ESC to abort the operation.
  1063. For details about source mask (which will be usually either * or ^\\(.*\\)$
  1064. depending on setting of Use shell patterns) and possible wildcards in the
  1065. destination see
  1066. .\"LINK2"
  1067. Mask copy/rename\&.
  1068. .\"Mask Copy/Rename"
  1069. .PP
  1070. F15 (usually F15) is similar, but defaults to the directory in the
  1071. selected panel. It always operates on the selected file, regardless of
  1072. any tagged files.
  1073. .PP
  1074. On some systems, it is possible to do the copy in the background by
  1075. clicking on the background button (or pressing Alt\-b in the dialog
  1076. box). The
  1077. .\"LINK2"
  1078. Background Jobs
  1079. .\"Background jobs"
  1080. is used to control the background process.
  1081. .PP
  1082. .B Link (C\-x l)
  1083. .PP
  1084. Create a hard link to the current file.
  1085. .PP
  1086. .B Absolute symlink (C\-x s)
  1087. .PP
  1088. Create a absolute symbolic link to the current file.
  1089. .PP
  1090. .B Relative symLink (C\-x v)
  1091. .PP
  1092. Create a relative symbolic link to the current file.
  1093. .PP
  1094. To those of you who don't know what links are: creating a link to a file
  1095. is a bit like copying the file, but both the source filename and the destination
  1096. filename represent the same file image. For example, if you edit one of these
  1097. files, all changes you make will appear in both files. Some people call
  1098. links aliases or shortcuts.
  1099. .PP
  1100. A hard link appears as a real file. After making it, there is no way of
  1101. telling which one is the original and which is the link. If you delete
  1102. either one of them the other one is still intact. It is very difficult
  1103. to notice that the files represent the same image. Use hard links when
  1104. you don't even want to know.
  1105. .PP
  1106. A symbolic link is a reference to the name of the original file. If
  1107. the original file is deleted the symbolic link is useless. It is quite
  1108. easy to notice that the files represent the same image. The Midnight
  1109. Commander shows an "@"\-sign in front of the file name if it is a
  1110. symbolic link to somewhere (except to directory, where it shows a tilde (~)).
  1111. The original file which the link points to is shown on mini\-status line if the
  1112. .I "Show mini\-status"
  1113. option is enabled. Use symbolic links when you want to avoid the
  1114. confusion that can be caused by hard links.
  1115. .PP
  1116. When you press "C\-x s" Midnight Commander will automatically fill in the
  1117. complete path+filename of the original file and suggest a name for the link.
  1118. You can change either one.
  1119. .PP
  1120. Sometimes you may want to change the absolute path of the original into
  1121. a relative path. An absolute path starts from the root directory:
  1122. .PP
  1123. .I /home/frodo/mc/mc -> /home/frodo/new/mc
  1124. .PP
  1125. A relative link describes the original file's location starting from the
  1126. location of the link itself:
  1127. .PP
  1128. .I /home/frodo/mc/mc -> ../new/mc
  1129. .PP
  1130. You can force Midnight Commander to suggest a relative path by pressing
  1131. "C\-x v" instead of "C\-x s".
  1132. .PP
  1133. .B Rename/Move (F6, F16)
  1134. .PP
  1135. Press F6 to pop up an input dialog to copy the currently selected file (or
  1136. the tagged files, if there is at least one file tagged) to the
  1137. directory/filename you specify in the input dialog. The destination
  1138. defaults to the directory in the non\-selected panel. For more details
  1139. look at Copy (F5) operation above, most of the things are quite similar.
  1140. .PP
  1141. F16 (usually F16) is similar, but defaults to the directory in the
  1142. selected panel. It always operates on the selected file, regardless of
  1143. any tagged files.
  1144. .PP
  1145. On some systems, it is possible to do the copy in the background by
  1146. clicking on the background button (or pressing Alt\-b in the dialog
  1147. box). The
  1148. .\"LINK2"
  1149. Background Jobs
  1150. .\"Background jobs"
  1151. is used to control the background process.
  1152. .PP
  1153. .B Mkdir (F7)
  1154. .PP
  1155. Pop up an input dialog and creates the directory specified.
  1156. .PP
  1157. .B Delete (F8)
  1158. .PP
  1159. Delete the currently selected file or the tagged files in the
  1160. currently selected panel. During the process, you can press C\-c or
  1161. ESC to abort the operation.
  1162. .PP
  1163. .B Quick cd (Alt\-c)
  1164. Use the
  1165. .\"LINK2"
  1166. quick cd
  1167. .\"Quick cd"
  1168. command if you have full command line and want to cd somewhere.
  1169. .PP
  1170. .B Select group (+)
  1171. .PP
  1172. This is used to select (tag) a group of files. The Midnight Commander
  1173. will prompt for a selection options. When
  1174. .I Files only
  1175. checkbox is on, only files will be selected. If
  1176. .I Files only
  1177. is off, as files as directories will be selected.
  1178. When
  1179. .I Shell Patterns
  1180. checkbox is on, the regular expression is much like the filename globbing
  1181. in the shell (* standing for zero or more characters and ? standing
  1182. for one character). If
  1183. .I Shell Patterns
  1184. is off, then the tagging of files is done with normal regular
  1185. expressions (see ed (1)). When
  1186. .I Case sensitive
  1187. checkbox is on, the selection will be case sensitive characters.
  1188. If
  1189. .I Case sensitive
  1190. is off, the case will be ignored.
  1191. .PP
  1192. .B Unselect group (\\\\)
  1193. .PP
  1194. Used to unselect a group of files. This is the opposite of the
  1195. .I "Select group"
  1196. command.
  1197. .PP
  1198. .B Quit (F10, Shift\-F10)
  1199. .PP
  1200. Terminate the Midnight Commander. Shift\-F10 is used when you want to
  1201. quit and you are using the shell wrapper. Shift\-F10 will not take you
  1202. to the last directory you visited with the Midnight Commander, instead
  1203. it will stay at the directory where you started the Midnight Commander.
  1204. .\"NODE " Quick cd"
  1205. .SH " Quick cd"
  1206. This command is useful if you have a full command line and want to
  1207. .\"LINK2"
  1208. cd
  1209. .\"The cd internal command"
  1210. somewhere without having to yank and paste the command line. This command
  1211. pops up a small dialog, where you enter everything you would enter after
  1212. .B cd
  1213. on the command line and then you press enter. This features all the things
  1214. that are already in the
  1215. .\"LINK2"
  1216. internal cd command\&.
  1217. .\"The cd internal command"
  1218. .\"NODE " Command Menu"
  1219. .SH " Command Menu"
  1220. The
  1221. .\"LINK2"
  1222. Directory tree
  1223. .\"Directory Tree"
  1224. command shows a tree figure of the directories.
  1225. .PP
  1226. The
  1227. .\"LINK2"
  1228. "Find file"
  1229. .\"Find File"
  1230. command allows you to search for a specific file.
  1231. .PP
  1232. The "Swap panels" command swaps the contents of the two directory panels.
  1233. .PP
  1234. The "Switch panels on/off" command shows the output of the last shell command.
  1235. This works only on xterm and on Linux and FreeBSD console.
  1236. .PP
  1237. The "Compare directories" command compares the directory
  1238. panels with each other. You can then use the Copy (F5) command to make
  1239. the panels identical. There are three compare methods. The quick method
  1240. compares only file size and file date. The thorough method makes a
  1241. full byte\-by\-byte compare. The thorough method is not available if the
  1242. machine does not support the mmap(2) system call. The size\-only
  1243. compare method just compares the file sizes and does not check the
  1244. contents or the date times, it just checks the file size.
  1245. .PP
  1246. The
  1247. .\"LINK2"
  1248. "External panelize"
  1249. .\"External panelize"
  1250. allows you to execute an external program, and make the output of that
  1251. program the contents of the current panel.
  1252. .PP
  1253. The "Command history" command shows a list of typed commands. The
  1254. selected command is copied to the command line. The command history
  1255. can also be accessed by typing Alt\-p or Alt\-n.
  1256. .PP
  1257. The
  1258. .\"LINK2"
  1259. "Directory hotlist"
  1260. .\"Hotlist"
  1261. command makes changing of the current directory to often used directories
  1262. faster.
  1263. .PP
  1264. The
  1265. .\"LINK2"
  1266. "Screen list"
  1267. .\"Screen selector"
  1268. command shows a dialog window with the list of currently running
  1269. internal editors, viewers and other MC modules that support this mode.
  1270. .PP
  1271. The
  1272. .\"LINK2"
  1273. "Edit extension file"
  1274. .\"Extension File Edit"
  1275. command allows you to specify programs to executed when you try to
  1276. execute, view, edit and do a bunch of other thing on files
  1277. with certain extensions (filename endings).
  1278. .PP
  1279. The
  1280. .\"LINK2"
  1281. "Edit menu file"
  1282. .\"Menu File Edit"
  1283. command may be used for editing the user menu (which appears by
  1284. pressing F2).
  1285. .\"NODE " Directory Tree"
  1286. .SH " Directory Tree"
  1287. The Directory Tree command shows a tree figure of the directories. You
  1288. can select a directory from the figure and the Midnight Commander will
  1289. change to that directory.
  1290. .PP
  1291. There are two ways to invoke the tree. The real directory tree command
  1292. is available from Commands menu. The other way is to select tree view
  1293. from the Left or Right menu.
  1294. .PP
  1295. To get rid of long delays the Midnight Commander creates the tree
  1296. figure by scanning only a small subset of all the directories. If the
  1297. directory which you want to see is missing, move to its parent
  1298. directory and press C\-r (or F2).
  1299. .PP
  1300. You can use the following keys:
  1301. .PP
  1302. .\"LINK2"
  1303. General movement keys
  1304. .\"General Movement Keys"
  1305. are accepted.
  1306. .PP
  1307. .B Enter.
  1308. In the directory tree, exits the directory tree and changes to this
  1309. directory in the current panel. In the tree view, changes to this
  1310. directory in the other panel and stays in tree view mode in the
  1311. current panel.
  1312. .PP
  1313. .B C\-r, F2 (Rescan).
  1314. Rescan this directory. Use this when the tree figure is out of date:
  1315. it is missing subdirectories or shows some subdirectories which don't
  1316. exist any more.
  1317. .PP
  1318. .B F3 (Forget).
  1319. Delete this directory from the tree figure. Use this to remove clutter
  1320. from the figure. If you want the directory back to the tree figure
  1321. press F2 in its parent directory.
  1322. .PP
  1323. .B F4 (Static/Dynamic).
  1324. Toggle between the dynamic navigation mode (default) and the static
  1325. navigation mode.
  1326. .PP
  1327. In the static navigation mode you can use the Up and Down keys to
  1328. select a directory. All known directories are shown.
  1329. .PP
  1330. In the dynamic navigation mode you can use the Up and Down keys to
  1331. select a sibling directory, the Left key to move to the parent
  1332. directory, and the Right key to move to a child directory. Only the
  1333. parent, sibling and children directories are shown, others are left
  1334. out. The tree figure changes dynamically as you traverse.
  1335. .PP
  1336. .B F5 (Copy).
  1337. Copy the directory.
  1338. .PP
  1339. .B F6 (RenMov).
  1340. Move the directory.
  1341. .PP
  1342. .B F7 (Mkdir).
  1343. Make a new directory below this directory.
  1344. .PP
  1345. .B F8 (Delete).
  1346. Delete this directory from the file system.
  1347. .PP
  1348. .B C\-s, Alt\-s.
  1349. Search the next directory matching the search string. If there is
  1350. no such directory these keys will move one line down.
  1351. .PP
  1352. .B C\-h, Backspace.
  1353. Delete the last character of the search string.
  1354. .PP
  1355. .B Any other character.
  1356. Add the character to the search string and move to the next directory
  1357. which starts with these characters. In the tree view you must first
  1358. activate the search mode by pressing C\-s. The search string is shown
  1359. in the mini status line.
  1360. .PP
  1361. The following actions are available only in the directory tree. They
  1362. aren't supported in the tree view.
  1363. .PP
  1364. .B F1 (Help).
  1365. Invoke the help viewer and show this section.
  1366. .PP
  1367. .B Esc, F10.
  1368. Exit the directory tree. Do not change the directory.
  1369. .PP
  1370. The mouse is supported. A double\-click behaves like Enter. See
  1371. also the section on
  1372. .\"LINK2"
  1373. mouse support\&.
  1374. .\"Mouse Support"
  1375. .\"NODE " Find File"
  1376. .SH " Find File"
  1377. The Find File feature first asks for the start directory for the
  1378. search and the filename to be searched for. By pressing the Tree
  1379. button you can select the start directory from the
  1380. .\"LINK2"
  1381. directory tree
  1382. .\"Directory Tree"
  1383. figure.
  1384. .PP
  1385. Option \"Whole words\" allows select only those files containing matches that
  1386. form whole words. Like grep \-w.
  1387. .PP
  1388. You can start the search by pressing the OK button.
  1389. During the search you can stop from the Stop button and continue from
  1390. the Start button.
  1391. .PP
  1392. You can browse the filelist with the up and down arrow keys. The Chdir
  1393. button will change to the directory of the currently selected
  1394. file. The Again button will ask for the parameters for a new
  1395. search. The Quit button quits the search operation. The Panelize
  1396. button will place the found files to the current directory panel so
  1397. that you can do additional operations on them (view, copy, move,
  1398. delete and so on). After panelizing you can press C\-r to return to the
  1399. normal file listing.
  1400. .PP
  1401. The 'Enable ignore directories' checkbox and input field below it
  1402. allow to set up the list of directories that should be skip during the search
  1403. files (for example, you may want to avoid searches on a CD\-ROM or on a NFS
  1404. directory that is mounted across a slow link). List components must be separated
  1405. with a colon, here is an example:
  1406. .PP
  1407. .nf
  1408. /cdrom:/nfs/wuarchive:/afs
  1409. .fi
  1410. .PP
  1411. Relative paths are supported also. The following example shows how to skip special
  1412. directories of version control systems:
  1413. .nf
  1414. /cdrom:/nfs/wuarchive:/afs:.svn:.git:CVS
  1415. .fi
  1416. .PP
  1417. Attention: input field can contain a dot (.), this means the current absolute path.
  1418. .PP
  1419. You may consider using the
  1420. .\"LINK2"
  1421. External panelize
  1422. .\"External panelize"
  1423. command for some operations. Find file command is for simple queries
  1424. only, while using External panelize you can do as mysterious searches
  1425. as you would like.
  1426. .\"NODE " External panelize"
  1427. .SH " External panelize"
  1428. The External panelize allows you to execute an external program, and
  1429. make the output of that program the contents of the current panel.
  1430. .PP
  1431. For example, if you want to manipulate in one of the panels all the
  1432. symbolic links in the current directory, you can use external
  1433. panelization to run the following command:
  1434. .PP
  1435. .nf
  1436. find . \-type l \-print
  1437. .fi
  1438. .PP
  1439. Upon command completion, the directory contents of the panel will no
  1440. longer be the directory listing of the current directory, but all the
  1441. files that are symbolic links.
  1442. .PP
  1443. If you want to panelize all of the files that have been downloaded
  1444. from your FTP server, you can use this awk command to extract the file
  1445. name from the transfer log files:
  1446. .PP
  1447. .nf
  1448. awk '$9 ~! /incoming/ { print $9 }' < /var/log/xferlog
  1449. .fi
  1450. .PP
  1451. You may want to save often used panelize commands under a descriptive name,
  1452. so that you can recall them quickly. You do this by typing the command on
  1453. the input line and pressing Add new button. Then you enter a name under
  1454. which you want the command to be saved. Next time, you just choose that
  1455. command from the list and do not have to type it again.
  1456. .\"NODE " Hotlist"
  1457. .SH " Hotlist"
  1458. The Directory hotlist command shows the labels of the directories
  1459. in the directory hotlist. The Midnight Commander will change to the
  1460. directory corresponding to the selected label. From the hotlist dialog,
  1461. you can remove already created label/directory pairs and add new ones.
  1462. To add new directories quickly, you can use the Add to hotlist command
  1463. (C\-x h), which adds the current directory into the directory hotlist,
  1464. asking just for the label for the directory.
  1465. .PP
  1466. This makes cd to often used directories faster. You may consider using the
  1467. CDPATH variable as described in
  1468. .\"LINK2"
  1469. internal cd command
  1470. .\"The cd internal command"
  1471. description.
  1472. .\"NODE " Extension File Edit"
  1473. .SH " Extension File Edit"
  1474. This will invoke your editor on the file
  1475. .IR ~/.config/mc/mc.ext .
  1476. The format of this file following:
  1477. .PP
  1478. All lines starting with # or empty lines are thrown away.
  1479. .PP
  1480. Lines starting in the first column should have following format:
  1481. .PP
  1482. .IR keyword/expr ,
  1483. i.e. everything after the slash until new line is
  1484. .IR expr .
  1485. .PP
  1486. .I keyword
  1487. can be:
  1488. .TP
  1489. .I shell
  1490. \-
  1491. .I expr
  1492. is an extension (no wildcards). File matches it its name ends
  1493. with
  1494. .IR expr .
  1495. Example:
  1496. .I shell/.tar
  1497. matches
  1498. .IR *.tar .
  1499. .TP
  1500. .I regex
  1501. \-
  1502. .I expr
  1503. is a regular expression. File matches if its name matches the regular
  1504. expression.
  1505. .TP
  1506. .I directory
  1507. \-
  1508. .I expr
  1509. is a regular expression. File matches if it is a directory and its name
  1510. matches the regular expression.
  1511. .TP
  1512. .I type
  1513. \-
  1514. .I expr
  1515. is a regular expression. File matches if the output of
  1516. .I file %f
  1517. without the initial "filename:" part matches regular expression
  1518. .IR expr .
  1519. .TP
  1520. .I default
  1521. \- matches any file.
  1522. .I expr
  1523. is ignored.
  1524. .TP
  1525. .I include
  1526. \- denotes a common section.
  1527. .I expr
  1528. is the name of the section.
  1529. .PP
  1530. Other lines should start with a space or tab and should be of the format:
  1531. .I keyword=command
  1532. (with no spaces around =), where
  1533. .I keyword
  1534. should be:
  1535. .I Open
  1536. (invoked on Enter or double click),
  1537. .I View
  1538. (F3),
  1539. .I Edit
  1540. (F4) or
  1541. .I Include
  1542. (to add rules from the common section).
  1543. .I command
  1544. is any one\-line shell command, with the simple
  1545. .\"LINK2"
  1546. macro substitution\&.
  1547. .\"Macro Substitution"
  1548. .PP
  1549. Rules are matched from top to bottom, thus the order is important. If
  1550. the appropriate action is missing, search continues as if this rule
  1551. didn't match (i.e. if a file matches the first and second entry and View
  1552. action is missing in the first one, then on pressing F3 the View action
  1553. from the second entry will be used).
  1554. .I default
  1555. should match all the actions.
  1556. .\"NODE " Background jobs"
  1557. .SH " Background Jobs"
  1558. This lets you control the state of any background Midnight Commander
  1559. process (only copy and move files operations can be done in the
  1560. background). You can stop, restart and kill a background job from
  1561. here.
  1562. .\"NODE " Menu File Edit"
  1563. .SH " Menu File Edit"
  1564. The user menu is a menu of useful actions that can be customized by
  1565. the user. When you access the user menu, the
  1566. file .mc.menu from the current directory is used if it exists,
  1567. but only if it is owned by user or root and is not world\-writable.
  1568. If no such file found, ~/.config/mc/menu is tried in the same way,
  1569. and otherwise mc uses the default system\-wide menu
  1570. @prefix@/share/mc/mc.menu.
  1571. .PP
  1572. The format of the menu file is very simple. Lines that start with
  1573. anything but space or tab are considered entries for the menu (in
  1574. order to be able to use it like a hot key, the first character should
  1575. be a letter). All the lines that start with a space or a tab are the
  1576. commands that will be executed when the entry is selected.
  1577. .PP
  1578. When an option is selected all the command lines of the option are
  1579. copied to a temporary file in the temporary directory (usually
  1580. /usr/tmp) and then that file is executed. This allows the user to put
  1581. normal shell constructs in the menus. Also simple macro substitution
  1582. takes place before executing the menu code. For more information, see
  1583. .\"LINK2"
  1584. macro substitution\&.
  1585. .\"Macro Substitution"
  1586. .PP
  1587. Here is a sample mc.menu file:
  1588. .PP
  1589. .nf
  1590. A Dump the currently selected file
  1591. od \-c %f
  1592. B Edit a bug report and send it to root
  1593. I=`mktemp ${MC_TMPDIR:\-/tmp}/mail.XXXXXX` || exit 1
  1594. vi $I
  1595. mail \-s "Midnight Commander bug" root < $I
  1596. rm \-f $I
  1597. M Read mail
  1598. emacs \-f rmail
  1599. N Read Usenet news
  1600. emacs \-f gnus
  1601. H Call the info hypertext browser
  1602. info
  1603. J Copy current directory to other panel recursively
  1604. tar cf \- . | (cd %D && tar xvpf \-)
  1605. K Make a release of the current subdirectory
  1606. echo \-n "Name of distribution file: "
  1607. read tar
  1608. ln \-s %d `dirname %d`/$tar
  1609. cd ..
  1610. tar cvhf ${tar}.tar $tar
  1611. = f *.tar.gz | f *.tgz & t n
  1612. X Extract the contents of a compressed tar file
  1613. tar xzvf %f
  1614. .fi
  1615. .PP
  1616. .B Default Conditions
  1617. .PP
  1618. Each menu entry may be preceded by a condition. The condition must
  1619. start from the first column with a '=' character. If the condition is
  1620. true, the menu entry will be the default entry.
  1621. .PP
  1622. .nf
  1623. Condition syntax: = <sub\-cond>
  1624. or: = <sub\-cond> | <sub\-cond> ...
  1625. or: = <sub\-cond> & <sub\-cond> ...
  1626. Sub\-condition is one of following:
  1627. y <pattern> syntax of current file matching pattern?
  1628. (for edit menu only)
  1629. f <pattern> current file matching pattern?
  1630. F <pattern> other file matching pattern?
  1631. d <pattern> current directory matching pattern?
  1632. D <pattern> other directory matching pattern?
  1633. t <type> current file of type?
  1634. T <type> other file of type?
  1635. x <filename> is it executable filename?
  1636. ! <sub\-cond> negate the result of sub\-condition
  1637. .fi
  1638. .PP
  1639. Pattern is a normal shell pattern or a regular expression, according
  1640. to the shell patterns option. You can override the global value of
  1641. the shell patterns option by writing "shell_patterns=x" on the first
  1642. line of the menu file (where "x" is either 0 or 1).
  1643. .PP
  1644. Type is one or more of the following characters:
  1645. .PP
  1646. .nf
  1647. n not a directory
  1648. r regular file
  1649. d directory
  1650. l link
  1651. c character device
  1652. b block device
  1653. f FIFO (pipe)
  1654. s socket
  1655. x executable file
  1656. t tagged
  1657. .fi
  1658. .PP
  1659. For example 'rlf' means either regular file, link or fifo. The 't'
  1660. type is a little special because it acts on the panel instead of the
  1661. file. The condition '=t t' is true if there are tagged files in the
  1662. current panel and false if not.
  1663. .PP
  1664. If the condition starts with '=?' instead of '=' a debug trace will be
  1665. shown whenever the value of the condition is calculated.
  1666. .PP
  1667. The conditions are calculated from left to right. This means
  1668. .nf
  1669. = f *.tar.gz | f *.tgz & t n
  1670. .fi
  1671. is calculated as
  1672. .nf
  1673. ( (f *.tar.gz) | (f *.tgz) ) & (t n)
  1674. .fi
  1675. .PP
  1676. Here is a sample of the use of conditions:
  1677. .PP
  1678. .nf
  1679. = f *.tar.gz | f *.tgz & t n
  1680. L List the contents of a compressed tar\-archive
  1681. gzip \-cd %f | tar xvf \-
  1682. .fi
  1683. .PP
  1684. .B Addition Conditions
  1685. .PP
  1686. If the condition begins with '+' (or '+?') instead of '=' (or '=?') it
  1687. is an addition condition. If the condition is true the menu entry will
  1688. be included in the menu. If the condition is false the menu entry will
  1689. not be included in the menu.
  1690. .PP
  1691. You can combine default and addition conditions by starting condition
  1692. with '+=' or '=+' (or '+=?' or '=+?' if you want debug trace). If you
  1693. want to use two different conditions, one for adding and another for
  1694. defaulting, you can precede a menu entry with two condition lines, one
  1695. starting with '+' and another starting with '='.
  1696. .PP
  1697. Comments are started with '#'. The additional comment lines must start
  1698. with '#', space or tab.
  1699. .\"NODE " Options Menu"
  1700. .SH " Options Menu"
  1701. The Midnight Commander has some options that may be toggled on and
  1702. off in several dialogs which are accessible from this menu. Options
  1703. are enabled if they have an asterisk or "x" in front of them.
  1704. .PP
  1705. The
  1706. .\"LINK2"
  1707. Configuration
  1708. .\"Configuration"
  1709. command pops up a dialog from which you can change most of settings of
  1710. the Midnight Commander.
  1711. .PP
  1712. The
  1713. .\"LINK2"
  1714. Layout
  1715. .\"Layout"
  1716. command pops up a dialog from which you specify a bunch of options how mc
  1717. looks like on the screen.
  1718. .PP
  1719. The
  1720. .\"LINK2"
  1721. Panel options
  1722. .\"Panel options"
  1723. command pops up a dialog from which you specify options of file manager panels.
  1724. .PP
  1725. The
  1726. .\"LINK2"
  1727. Confirmation
  1728. .\"Confirmation"
  1729. command pops up a dialog from which you specify which actions you want to
  1730. confirm.
  1731. .PP
  1732. The
  1733. .\"LINK2"
  1734. Display bits
  1735. .\"Display bits"
  1736. command pops up a dialog from which you may select which characters is your
  1737. terminal able to display.
  1738. .PP
  1739. The
  1740. .\"LINK2"
  1741. Learn keys
  1742. .\"Learn keys"
  1743. command pops up a dialog from which you test some keys which are not working
  1744. on some terminals and you may fix them.
  1745. .PP
  1746. The
  1747. .\"LINK2"
  1748. Virtual FS
  1749. .\"Virtual FS"
  1750. command pops up a dialog from which you specify some VFS related options.
  1751. .PP
  1752. The
  1753. .\"LINK2"
  1754. Save setup
  1755. .\"Save Setup"
  1756. command saves the current settings of the Left, Right and Options
  1757. menus. A small number of other settings is saved, too.
  1758. .\"NODE " Configuration"
  1759. .SH " Configuration"
  1760. The options in this dialog are divided into several groups: "File
  1761. operation options", "Esc key mode", "Pause after run" and "Other options".
  1762. .PP
  1763. .B File operation options
  1764. .PP
  1765. .I Verbose operation.
  1766. This toggles whether the file Copy, Rename and Delete operations are
  1767. verbose (i.e., display a dialog box for each operation). If you have a
  1768. slow terminal, you may wish to disable the verbose operation. It is
  1769. automatically turned off if the speed of your terminal is less than
  1770. 9600 bps.
  1771. .PP
  1772. .I Compute totals.
  1773. If this option is enabled, the Midnight Commander computes total byte
  1774. sizes and total number of files prior to any Copy, Rename and Delete
  1775. operations. This will provide you with a more accurate progress bar
  1776. at the expense of some speed. This option has no effect, if
  1777. .I Verbose operation
  1778. is disabled.
  1779. .PP
  1780. .I Classic progressbar.
  1781. If this option is enabled, the progressbar of Copy/Move/Delete operations
  1782. is always grown form left to right. If disabled, the growing direction
  1783. of progressbar follows to direction of Copy/Move/Delete operation:
  1784. from left panel to right one and vice versa. Enabled by default.
  1785. .PP
  1786. .I Mkdir autoname
  1787. When you press F7 to create a new directory, the input line in popup dialog
  1788. will be filled by name of current file or directory in active panel.
  1789. Disabled by default.
  1790. .PP
  1791. .I Preallocate space
  1792. Preallocate space for whole target file, if possible, before copy operation.
  1793. Disabled by default.
  1794. .PP
  1795. .B Esc key mode.
  1796. .PP
  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.
  1800. .PP
  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).
  1807. .PP
  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.
  1814. .PP
  1815. .B Pause after run
  1816. .PP
  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:
  1820. .PP
  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.
  1825. .PP
  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).
  1830. .PP
  1831. .IR Always .
  1832. The program will pause after executing all of your commands.
  1833. .PP
  1834. .B Other options
  1835. .PP
  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"
  1847. .PP
  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"
  1859. .PP
  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.
  1863. .PP
  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.
  1869. .PP
  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).
  1877. .PP
  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.
  1890. .PP
  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.
  1895. .PP
  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.
  1904. .PP
  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.
  1910. .PP
  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".
  1920. .PP
  1921. .B Panel split
  1922. .PP
  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.
  1929. .PP
  1930. .I Equal split.
  1931. By default, panels have equal sizes. Using this option you can specify
  1932. an unequal split.
  1933. .PP
  1934. .B Console output
  1935. .PP
  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.
  1939. .PP
  1940. .B Other options
  1941. .PP
  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.
  1945. .PP
  1946. .I Command prompt.
  1947. If enabled, command line is avalable. Enabled by default.
  1948. .PP
  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.
  1952. .PP
  1953. .I Hintbar visible.
  1954. If enabled, the one\-line hints are visible below panels. Enabled by default.
  1955. .PP
  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.
  1962. .PP
  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
  1969. .PP
  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.
  1973. .PP
  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 ...)
  1979. .PP
  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.
  1984. .PP
  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.
  1988. .PP
  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.
  1992. .PP
  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.
  2002. .PP
  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.
  2006. .PP
  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.
  2013. .PP
  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.
  2019. .PP
  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 ~/.config/mc/panels.ini file.
  2023. Disabled by default.
  2024. .PP
  2025. .B Navigation
  2026. .PP
  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.
  2031. .PP
  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.
  2036. .PP
  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.
  2040. .PP
  2041. .B File highlight
  2042. .PP
  2043. You can specify whether
  2044. .I permissions
  2045. and
  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
  2053. and
  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.
  2067. .PP
  2068. .B Quick search
  2069. .PP
  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.
  2094. .PP
  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.
  2098. .PP
  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.
  2105. .PP
  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.
  2113. .PP
  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"
  2125. .PP
  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).
  2129. .PP
  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.
  2133. .PP
  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.
  2138. .PP
  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.
  2146. .PP
  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.
  2153. .PP
  2154. The
  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.
  2160. .PP
  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.
  2166. .PP
  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.
  2173. .PP
  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.
  2177. .PP
  2178. If
  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.
  2186. .PP
  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.
  2193. .PP
  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.
  2198. .PP
  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.
  2212. .PP
  2213. The
  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"
  2220. and
  2221. .\"LINK2"
  2222. Options
  2223. .\"Options Menu"
  2224. menus.
  2225. .PP
  2226. If you activate the
  2227. .I auto save setup
  2228. option, MC will always save the current settings when exiting.
  2229. .PP
  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.
  2243. .PP
  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"
  2258. The
  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:
  2264. .PP
  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.
  2269. .PP
  2270. For example, ~guest is the home directory for the user guest, while
  2271. ~/guest is the directory guest in your home directory.
  2272. .PP
  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 \-
  2277. .PP
  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.
  2285. .PP
  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.
  2304. .PP
  2305. The macros are:
  2306. .TP
  2307. .I %i
  2308. The indent of blank space, equal the cursor column position. For edit
  2309. menu only.
  2310. .TP
  2311. .I %y
  2312. The syntax type of current file. For edit menu only.
  2313. .TP
  2314. .I %k
  2315. The block file name.
  2316. .TP
  2317. .I %e
  2318. The error file name.
  2319. .TP
  2320. .I %m
  2321. The current menu name.
  2322. .TP
  2323. .IR %f " and " %p
  2324. The current file name.
  2325. .TP
  2326. .I %x
  2327. The extension of current file name.
  2328. .TP
  2329. .I %b
  2330. The current file name without extension.
  2331. .TP
  2332. .I %d
  2333. The current directory name.
  2334. .TP
  2335. .I %F
  2336. The current file in the unselected panel.
  2337. .TP
  2338. .I %D
  2339. The directory name of the unselected panel.
  2340. .TP
  2341. .I %t
  2342. The currently tagged files.
  2343. .TP
  2344. .I %T
  2345. The tagged files in the unselected panel.
  2346. .TP
  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.
  2351. .TP
  2352. .IR %s " and " %S
  2353. The selected files: The tagged files if there are any. Otherwise the
  2354. current file.
  2355. .TP
  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"
  2363. .TP
  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.
  2368. .IP
  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.
  2380. .TP
  2381. .I %%
  2382. The % character
  2383. .TP
  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.
  2389. .TP
  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.
  2402. .PP
  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.
  2412. .PP
  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.
  2420. .PP
  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.
  2425. .PP
  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.
  2429. .PP
  2430. The
  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.
  2439. .PP
  2440. The Chmod window has two parts \-
  2441. .I Permissions
  2442. and
  2443. .IR File .
  2444. .PP
  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.
  2447. .PP
  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.
  2451. .PP
  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
  2457. use
  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.
  2461. .PP
  2462. To set the attribute bits, use the Enter key.
  2463. .PP
  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).
  2468. .PP
  2469. Finally, to set the attributes exactly to those specified, you can use
  2470. the
  2471. .B [Set all]
  2472. button, which will act on all the tagged files.
  2473. .PP
  2474. .B [Marked all]
  2475. set only marked attributes to all selected files
  2476. .PP
  2477. .B [Set marked]
  2478. set marked bits in attributes of all selected files
  2479. .PP
  2480. .B [Clean marked]
  2481. clear marked bits in attributes of all selected files
  2482. .PP
  2483. .B [Set]
  2484. set the attributes of one file
  2485. .PP
  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"
  2498. and
  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.
  2514. .PP
  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.
  2519. .PP
  2520. There are three other dialogs which you can run into during the file
  2521. operations.
  2522. .PP
  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.
  2527. .PP
  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.
  2535. .PP
  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.
  2544. .PP
  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.
  2556. .PP
  2557. There are other options which you can set:
  2558. .PP
  2559. .B Follow links
  2560. .PP
  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.
  2564. .PP
  2565. .B Dive into subdirs
  2566. .PP
  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.
  2572. .PP
  2573. For example, you want to copy directory
  2574. .I /foo
  2575. containing file
  2576. .I bar
  2577. to
  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 .
  2591. .PP
  2592. .B Preserve attributes
  2593. .PP
  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.
  2597. .PP
  2598. .B Use shell patterns on
  2599. .PP
  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.
  2609. .PP
  2610. Two examples:
  2611. .PP
  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".
  2614. .PP
  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".
  2618. .PP
  2619. .B Use shell patterns off
  2620. .PP
  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.
  2626. .PP
  2627. Two examples:
  2628. .PP
  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".
  2632. .PP
  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".
  2636. .PP
  2637. .B Case Conversions
  2638. .PP
  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.
  2642. .PP
  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.
  2646. .PP
  2647. The '\\u' and '\\l' are stronger than '\\U' and '\\L'.
  2648. .PP
  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.
  2652. .PP
  2653. You can also use '\\' as a quote character. For example, '\\\\' is
  2654. a backslash and '\\*' is an asterisk.
  2655. .PP
  2656. .B Stable symlinks
  2657. .PP
  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).
  2664. .\"NODE "Select/Unselect Files"
  2665. .SH "Select/Unselect Files"
  2666. The dialog of group of files and directories selection or uselection.
  2667. The
  2668. .\"LINK2"
  2669. input line
  2670. .\"Input Line Keys"
  2671. allow enter the regular expression of filenames that will be
  2672. selected/unselected.
  2673. .PP
  2674. When
  2675. .I Files only
  2676. checkbox is on, only files will be selected. If
  2677. .I Files only
  2678. is off, as files as directories will be selected.
  2679. When
  2680. .I Shell Patterns
  2681. checkbox is on, the regular expression is much like the filename globbing
  2682. in the shell (* standing for zero or more characters and ? standing
  2683. for one character). If
  2684. .I Shell Patterns
  2685. is off, then the tagging of files is done with normal regular
  2686. expressions (see ed (1)). When
  2687. .I Case sensitive
  2688. checkbox is on, the selection will be case sensitive characters.
  2689. If
  2690. .I Case sensitive
  2691. is off, the case will be ignored.
  2692. .\"NODE "Diff Viewer"
  2693. .SH "Internal Diff Viewer"
  2694. The mcdiff is a visual diff tool. You can compare two files and edit them
  2695. in\-place (diffs are updated dynamically). You can browse and view a working
  2696. copy from popular version control systems (GIT, Subversion, etc).
  2697. .PP
  2698. Following shortcuts are available in internal diff viewer of Midnight
  2699. Commander.
  2700. .PP
  2701. .B F1
  2702. Invoke the built\-in hypertext help viewer.
  2703. .PP
  2704. .B F2
  2705. Save modified files.
  2706. .PP
  2707. .B F4
  2708. Edit file of the left panel in the internal editor.
  2709. .PP
  2710. .B F14
  2711. Edit file of the right panel in the internal editor.
  2712. .PP
  2713. .B F5
  2714. Merge the current hunk. Only the current hunk will be merged.
  2715. .PP
  2716. .B F7
  2717. Start search.
  2718. .PP
  2719. .B F17
  2720. Continue search.
  2721. .PP
  2722. .B F10, Esc, q
  2723. Exit from diff viewer.
  2724. .PP
  2725. .B Alt\-s, s
  2726. Toggle show of hunk status.
  2727. .PP
  2728. .B Alt\-n, l
  2729. Toggle show of line numbers.
  2730. .PP
  2731. .B f
  2732. Maximize left panel.
  2733. .PP
  2734. .B \=
  2735. Make panels equal in width.
  2736. .PP
  2737. .B \>
  2738. Reduce the size of the right panel.
  2739. .PP
  2740. .B \<
  2741. Reduce the size of the left panel.
  2742. .PP
  2743. .B c
  2744. Toggle show of trailing carriage return (CR) symbol as ^M.
  2745. .PP
  2746. .B 2, 3, 4, 8
  2747. Set tabulation size
  2748. .PP
  2749. .B C\-u
  2750. Swap contents of diff panels.
  2751. .PP
  2752. .B C\-r
  2753. Refresh the screen.
  2754. .PP
  2755. .B C\-o
  2756. Switch to the subshell and show the command screen.
  2757. .PP
  2758. .B Enter, Space, n
  2759. Find next diff hunk.
  2760. .PP
  2761. .B Backspace, p
  2762. Find previous diff hunk.
  2763. .PP
  2764. .B g
  2765. Go to line.
  2766. .PP
  2767. .B Down
  2768. Scroll one line forward.
  2769. .PP
  2770. .B Up
  2771. Scroll one line backward.
  2772. .PP
  2773. .B PageUp
  2774. Move one page up.
  2775. .PP
  2776. .B PageDown
  2777. Mves one page down.
  2778. .PP
  2779. .B Home, A1
  2780. Moves to the line beginning.
  2781. .PP
  2782. .B End
  2783. Moves to the line end.
  2784. .PP
  2785. .B C\-Home
  2786. Move to the file beginning.
  2787. .PP
  2788. .B C\-End, C1
  2789. Move to the file end.
  2790. .\"NODE "Internal File Viewer"
  2791. .SH "Internal File Viewer"
  2792. The internal file viewer provides two display modes: ASCII and hex.
  2793. To toggle between modes, use the F4 key.
  2794. .PP
  2795. The viewer will try to use the best method provided by your system or
  2796. the file type to display the information.
  2797. Some character sequences, which appear most often in preformatted manual
  2798. pages, are displayed bold and underlined, thus making a pretty display
  2799. of your files.
  2800. .PP
  2801. When in hex mode, the search function accepts text in quotes and
  2802. constant numbers. Text in quotes is matched exactly after removing
  2803. the quotes. Each number matches one byte. You can mix quoted text
  2804. with constants like this:
  2805. .PP
  2806. .nf
  2807. "String" \-1 0xBB 012 "more text"
  2808. .fi
  2809. .PP
  2810. Note that 012 is an octal number. \-1 is converted to 0xFF.
  2811. .PP
  2812. Here is a listing of the actions associated with each key that the
  2813. Midnight Commander handles in the internal file viewer.
  2814. .PP
  2815. .B F1
  2816. Invoke the built\-in hypertext help viewer.
  2817. .PP
  2818. .B F2
  2819. Toggle the wrap mode.
  2820. .PP
  2821. .B F4
  2822. Toggle the hex mode.
  2823. .PP
  2824. .B F5
  2825. Goto line. This will prompt you for a line number and will display
  2826. that line.
  2827. .PP
  2828. .B F6, /.
  2829. Regular expression search.
  2830. .PP
  2831. .B ?,
  2832. Reverse regular expression search.
  2833. .PP
  2834. .B F7
  2835. Normal search / hex mode search.
  2836. .PP
  2837. .B C\-s, F17, n.
  2838. Start normal search if there was no previous search expression else
  2839. find next match.
  2840. .PP
  2841. .B C\-r.
  2842. Start reverse search if there was no previous search expression else
  2843. find next match.
  2844. .PP
  2845. .B F8
  2846. Toggle Raw/Parsed mode: This will show the file as found on disk or if
  2847. a processing filter has been specified in the mc.ext file, then the
  2848. output from the filter. Current mode is always the other than written
  2849. on the button label, since on the button is the mode which you enter
  2850. by that key.
  2851. .PP
  2852. .B F9
  2853. Toggle the format/unformat mode: when format mode is on the viewer
  2854. will interpret some string sequences to show bold and underline with
  2855. different colors. Also, on button label is the other mode than current.
  2856. .PP
  2857. .B F10, Esc.
  2858. Exit the internal file viewer.
  2859. .PP
  2860. .B next\-page, space, C\-v.
  2861. Scroll one page forward.
  2862. .PP
  2863. .B prev\-page, Alt\-v, C\-b, Backspace.
  2864. Scroll one page backward.
  2865. .PP
  2866. .B down\-key
  2867. Scroll one line forward.
  2868. .PP
  2869. .B up\-key
  2870. Scroll one line backward.
  2871. .PP
  2872. .B C\-l
  2873. Refresh the screen.
  2874. .PP
  2875. .B C\-o
  2876. Switch to the subshell and show the command screen.
  2877. .PP
  2878. .B "[n] m"
  2879. Set the mark n.
  2880. .PP
  2881. .B "[n] r"
  2882. Jump to the mark n.
  2883. .PP
  2884. .B C\-f
  2885. Jump to the next file.
  2886. .PP
  2887. .B C\-b
  2888. Jump to the previous file.
  2889. .PP
  2890. .B Alt\-r
  2891. Toggle the ruler.
  2892. .PP
  2893. .B Alt\-e
  2894. to change charset of displayed text may use M\-e (Alt\-e).
  2895. Recoding is made from selected codepage into system codepage. To
  2896. cancel the recoding you may select "<No translation>" in charset
  2897. selection dialog.
  2898. .PP
  2899. It's possible to instruct the file viewer how to display a file, look
  2900. at the
  2901. .\"LINK2"
  2902. Extension File Edit section
  2903. .\"Extension File Edit"
  2904. .\"NODE "Internal File Editor"
  2905. .SH "Internal File Editor"
  2906. The internal file editor is a full\-featured full screen editor. It can
  2907. edit files up to 64 megabytes. It is possible to edit binary files.
  2908. The internal file editor is invoked using
  2909. .B F4
  2910. if the
  2911. .I use_internal_edit
  2912. option is set in the initialization file.
  2913. .PP
  2914. The features it presently supports are: block copy, move, delete, cut,
  2915. paste; key for key undo; pull\-down menus; file insertion; macro
  2916. commands; regular expression search and replace; shift\-arrow text highlighting
  2917. (if supported by the terminal); insert\-overwrite toggle; word wrap;
  2918. autoindent; tunable tab size; syntax highlighting for various file
  2919. types; and an option to pipe text blocks through shell commands like
  2920. indent and ispell.
  2921. .PP
  2922. Sections:
  2923. .IP
  2924. .\"LINK2"
  2925. Options of editor in ini\-file
  2926. .\"Internal File Editor / options"
  2927. .PP
  2928. The editor is very easy to use and requires no tutoring. To see what
  2929. keys do what, just consult the appropriate pull\-down menu. Other keys
  2930. are: Shift movement keys do text highlighting.
  2931. .B Ctrl\-Ins
  2932. copies to the file
  2933. .B mcedit.clip
  2934. and
  2935. .B Shift\-Ins
  2936. pastes from mcedit.clip.
  2937. .B Shift\-Del
  2938. cuts to
  2939. .BR mcedit.clip ,
  2940. and
  2941. .B Ctrl\-Del
  2942. deletes highlighted text. Mouse highlighting also works, and you
  2943. can override the mouse as usual by holding down the shift key
  2944. while dragging the mouse to let normal terminal mouse highlighting
  2945. work.
  2946. .PP
  2947. To define a macro, press
  2948. .B Ctrl\-R
  2949. and then type out the key
  2950. strokes you want to be executed. Press
  2951. .B Ctrl\-R
  2952. again when finished. You can then assign the macro to any key you
  2953. like by pressing that key. The macro is executed when you press
  2954. .B Ctrl\-A
  2955. and then the assigned key. The macro is also executed if
  2956. you press Meta, Ctrl, or Esc and the assigned key, provided that the
  2957. key is not used for any other function. Once defined, the macro
  2958. commands go into the file
  2959. .B ~/.local/share/mc/mcedit/mcedit.macros
  2960. You can delete a macro by deleting the
  2961. appropriate line in this file.
  2962. .PP
  2963. To change charset of displayed text may use M\-e (Alt\-e).
  2964. Recoding is made from selected codepage into system codepage. To
  2965. cancel the recoding you may select "<No translation>" in charset
  2966. selection dialog.
  2967. .PP
  2968. .B F19
  2969. will format the currently highlighted block (plain text or
  2970. .B C
  2971. or
  2972. .B C++
  2973. code or another). This is controlled by the
  2974. file
  2975. .B @prefix@/share/mc/edit.indent.rc
  2976. which is copied to
  2977. .B ~/.local/share/mc/mcedit/edit.indent.rc
  2978. in your home directory the first time you use it.
  2979. .PP
  2980. The editor also displays non\-us characters (160+). When editing
  2981. binary files, you should set
  2982. .B display bits
  2983. to 7 bits in the options menu to keep the spacing clean.
  2984. .\"NODE "Internal File Editor / options"
  2985. .SH "Options of editor in ini\-file"
  2986. Some editor options of ini\-file are described in this section.
  2987. Options are placed in [Midnight\-Commander] section
  2988. .TP
  2989. .I editor_wordcompletion_collect_entire_file
  2990. Search autocomplete candidates in entire of file or just from
  2991. begin of file to cursor position (0)
  2992. .\"NODE "Screen selector"
  2993. .SH "Screen selector"
  2994. Midnight Commander supports running many internal modules (such as
  2995. editor, viewer and diff viewer) simultaneously and switching between
  2996. them without closing open files. Using several file managers at a time,
  2997. however, is not currently supported.
  2998. .PP
  2999. Let's call each of these modules a screen. There are three ways to
  3000. switch between screens, using one of these global shortcuts:
  3001. .TP
  3002. .B Alt\-}
  3003. switch to the next screen;
  3004. .TP
  3005. .B Alt\-{
  3006. switch to the previous screen;
  3007. .TP
  3008. .B Alt\-`
  3009. open a dialog window with the list of currently open screens (or use the
  3010. "Screen list" menu item).
  3011. .\"NODE "Completion"
  3012. .SH "Completion"
  3013. Let the Midnight Commander type for you.
  3014. .PP
  3015. Attempt to perform completion on the text before current position. MC
  3016. attempts completion treating the text as variable (if the text begins
  3017. with
  3018. .BR $ ),
  3019. username (if the text begins with
  3020. .BR ~ ),
  3021. hostname (if the text begins with
  3022. .BR @ )
  3023. or command (if you are on the command line in the position where you
  3024. might type a command, possible completions then include shell reserved
  3025. words and shell built\-in commands as well) in turn. If none of these
  3026. matches, filename completion is attempted.
  3027. .PP
  3028. Filename, username, variable and hostname completion works on all input
  3029. lines, command completion is command line specific. If the completion
  3030. is ambiguous (there are more different possibilities), MC beeps and the
  3031. following action depends on the setting of the
  3032. .I Complete: show all
  3033. option in the
  3034. .\"LINK2"
  3035. Configuration
  3036. .\"Configuration"
  3037. dialog. If it is enabled, a list of all possibilities pops up next to
  3038. the current position and you can select with the arrow keys and
  3039. .B Enter
  3040. the correct entry. You can also type the first letters in which the
  3041. possibilities differ to move to a subset of all possibilities and
  3042. complete as much as possible. If you press
  3043. .B Alt\-Tab
  3044. again, only the subset will be shown in the listbox, otherwise the first
  3045. item which matches all the previous characters will be highlighted. As
  3046. soon as there is no ambiguity, dialog disappears, but you can hide it by
  3047. canceling keys
  3048. .BR Esc ,
  3049. .B F10
  3050. and left and right arrow keys. If
  3051. .\"LINK2"
  3052. Complete: show all
  3053. .\"Configuration"
  3054. is disabled, the dialog pops up only if you press
  3055. .B Alt\-Tab
  3056. for the second time, for the first time MC just beeps.
  3057. .\"NODE "Virtual File System"
  3058. .SH "Virtual File System"
  3059. The Midnight Commander is provided with a code layer to access the file
  3060. system; this code layer is known as the virtual file system switch. The
  3061. virtual file system switch allows the Midnight Commander to manipulate
  3062. files not located on the Unix file system.
  3063. .PP
  3064. Currently the Midnight Commander is packaged with some Virtual File
  3065. Systems (VFS): the
  3066. .I local
  3067. file system, used for accessing the regular Unix file system; the
  3068. .IR ftpfs ,
  3069. used to manipulate files on remote systems with the FTP protocol; the
  3070. .IR tarfs ,
  3071. used to manipulate tar and compressed tar files; the
  3072. .IR undelfs ,
  3073. used to recover deleted files on ext2 file systems (the default file
  3074. system for Linux systems),
  3075. .I fish
  3076. (for manipulating files over shell connections such as rsh and ssh).
  3077. If the code was compiled with
  3078. .I smbfs
  3079. support, you can manipulate files on remote systems with the SMB (CIFS)
  3080. protocol.
  3081. .PP
  3082. A generic
  3083. .I extfs
  3084. (EXTernal virtual File System) is provided in order to easily expand
  3085. VFS capabilities using scripts and external software.
  3086. .PP
  3087. The VFS switch code will interpret all of the path names used and will
  3088. forward them to the correct file system, the formats used for each one
  3089. of the file systems is described later in their own section.
  3090. .\"NODE " FTP File System"
  3091. .SH " FTP File System"
  3092. The FTP File System (ftpfs) allows you to manipulate files on remote
  3093. machines. To actually use it, you can use the
  3094. .I FTP link
  3095. item in the menu or directly change your current directory using the
  3096. .I cd
  3097. command to a path name that looks like this:
  3098. .PP
  3099. .I ftp://[!][user[:pass]@]machine[:port][remote\-dir]
  3100. .PP
  3101. The
  3102. .IR user ,
  3103. .I port
  3104. and
  3105. .I remote\-dir
  3106. elements are optional. If you specify the
  3107. .I user
  3108. element, the Midnight Commander will login to the remote machine as that
  3109. user, otherwise it will use anonymous login or the login name from the
  3110. .I ~/.netrc
  3111. file. The optional
  3112. .I pass
  3113. element is the password used for the connection. Using the password in
  3114. the VFS directory name is not recommended, because it can appear on the
  3115. screen in clear text and can be saved to the directory history.
  3116. .PP
  3117. To enable using FTP proxy, prepend
  3118. .B !
  3119. (an exclamation sign) to the hostname.
  3120. .PP
  3121. Examples:
  3122. .PP
  3123. .nf
  3124. ftp://ftp.nuclecu.unam.mx/linux/local
  3125. ftp://tsx\-11.mit.edu/pub/linux/packages
  3126. ftp://!behind.firewall.edu/pub
  3127. ftp://guest@remote\-host.com:40/pub
  3128. ftp://miguel:xxx@server/pub
  3129. .fi
  3130. .PP
  3131. Please check the
  3132. .\"LINK2"
  3133. Virtual File System
  3134. .\"Virtual FS"
  3135. dialog box for ftpfs options.
  3136. .\"NODE " Tar File System"
  3137. .SH " Tar File System"
  3138. The tar file system provides you with read\-only access to your tar
  3139. files and compressed tar files by using the chdir command. To change
  3140. your directory to a tar file, you change your current directory to the
  3141. tar file by using the following syntax:
  3142. .PP
  3143. .I /filename.tar/utar://[dir\-inside\-tar]
  3144. .PP
  3145. The mc.ext file already provides a shortcut for tar files, this means
  3146. that usually you just point to a tar file and press return to enter
  3147. into the tar file, see the
  3148. .\"LINK2"
  3149. Extension File Edit
  3150. .\"Extension File Edit"
  3151. section for details on how this is done.
  3152. .PP
  3153. Examples:
  3154. .PP
  3155. .nf
  3156. mc\-3.0.tar.gz/utar://mc\-3.0/vfs
  3157. /ftp/GCC/gcc\-2.7.0.tar/utar://
  3158. .fi
  3159. .PP
  3160. The latter specifies the full path of the tar archive.
  3161. .\"NODE " FIle transfer over SHell filesystem"
  3162. .SH " FIle transfer over SHell filesystem"
  3163. The fish file system is a network based file system that allows you to
  3164. manipulate the files in a remote machine as if they were local. To use
  3165. this, the other side has to either run fish server, or has to have
  3166. bash\-compatible shell.
  3167. .PP
  3168. To connect to a remote machine, you just need to chdir
  3169. into a special directory which name is in the following
  3170. format:
  3171. .PP
  3172. .I sh://[user@]machine[:options]/[remote\-dir]
  3173. .PP
  3174. The
  3175. .I user,
  3176. .I options
  3177. and
  3178. .I remote\-dir
  3179. elements are optional. If you specify the
  3180. .I user
  3181. element, the Midnight Commander will try to login on the remote
  3182. machine as that user, otherwise it will use your login name.
  3183. .PP
  3184. The available
  3185. .I options
  3186. are:
  3187. .nf
  3188. 'C' \- use compression;
  3189. 'r' \- use rsh instead of ssh;
  3190. port \- specify the port used by remote server.
  3191. .fi
  3192. If the
  3193. .I remote\-dir
  3194. element is present, your current directory on the remote machine will be
  3195. set to this one.
  3196. .PP
  3197. Examples:
  3198. .PP
  3199. .nf
  3200. sh://onlyrsh.mx:r/linux/local
  3201. sh://joe@want.compression.edu:C/private
  3202. sh://joe@noncompressed.ssh.edu/private
  3203. sh://joe@somehost.ssh.edu:2222/private
  3204. .fi
  3205. .\"NODE " Undelete File System"
  3206. .SH " Undelete File System"
  3207. On Linux systems, if you asked configure to use the ext2fs undelete
  3208. facilities, you will have the undelete file system available.
  3209. Recovery of deleted files is only available on ext2 file systems. The
  3210. undelete file system is just an interface to the ext2fs library to
  3211. retrieve all of the deleted files names on an ext2fs and provides and
  3212. to extract the selected files into a regular partition.
  3213. .PP
  3214. To use this file system, you have to chdir into the special file name
  3215. formed by the "undel://" prefix and the file name where the actual
  3216. file system resides.
  3217. .PP
  3218. For example, to recover deleted files on the second partition of the
  3219. first SCSI disk on Linux, you would use the following path name:
  3220. .PP
  3221. .nf
  3222. undel://sda2
  3223. .fi
  3224. .PP
  3225. It may take a while for the undelfs to load the required information
  3226. before you start browsing files there.
  3227. .\"NODE " SMB File System"
  3228. .SH " SMB File System"
  3229. The smbfs allows you to manipulate files on remote machines with SMB
  3230. (or CIFS) protocol. These include Windows for Workgroups,
  3231. Windows 9x/ME/XP, Windows NT, Windows 2000 and Samba.
  3232. To actually use it, you may try to use the panel command "SMB link..."
  3233. (accessible from the menubar) or you may directly change your current
  3234. directory to it using the cd command to a path name that looks like this:
  3235. .PP
  3236. .I smb://[user@]machine[/service][/remote\-dir]
  3237. .PP
  3238. The
  3239. .IR user ,
  3240. .I service
  3241. and
  3242. .I remote\-dir
  3243. elements are optional.
  3244. The
  3245. .IR user ,
  3246. .I domain
  3247. and
  3248. .I password
  3249. can be specified in an input dialog.
  3250. .PP
  3251. Examples:
  3252. .PP
  3253. .nf
  3254. smb://machine/Share
  3255. smb://other_machine
  3256. smb://guest@machine/Public/Irlex
  3257. .fi
  3258. .\"NODE " EXTernal File System"
  3259. .SH " EXTernal File System"
  3260. .B extfs
  3261. allows to integrate numerous features and file types into GNU Midnight
  3262. Commander in an easy way, by writing scripts.
  3263. .PP
  3264. Extfs filesystems can be divided into two categories:
  3265. .PP
  3266. 1. Stand\-alone filesystems, which are not associated with any existing
  3267. file. They represent certain system\-wide data as a directory tree.
  3268. You can invoke them by typing
  3269. .RI ' "cd fsname://" '
  3270. where fsname is an extfs short name (see below). Examples of such
  3271. filesystems include audio (list audio tracks on the CD) or apt (list of
  3272. all Debian packages in the system).
  3273. .PP
  3274. For example, to list CD\-Audio tracks on your CD\-ROM drive, type
  3275. .PP
  3276. .nf
  3277. cd audio://
  3278. .fi
  3279. .PP
  3280. 2. 'Archive' filesystems (like rpm, patchfs and more), which represent
  3281. contents of a file as a directory tree. It can consist of 'real' files
  3282. compressed in an archive (urar, rpm) or virtual files, like messages
  3283. in a mailbox (mailfs) or parts of a patch (patchfs). To access such
  3284. filesystems
  3285. .RI ' fsname:// '
  3286. should be appended to the archive name. Note that the archive itself
  3287. can be on another vfs.
  3288. .PP
  3289. For example, to list contents of a zip archive documents.zip type
  3290. .PP
  3291. .nf
  3292. cd documents.zip/uzip://
  3293. .fi
  3294. .PP
  3295. In many aspects, you could treat extfs like any other directory. For
  3296. instance, you can add it to the hotlist or change to it from directory
  3297. history. An important limitation is that you cannot invoke shell
  3298. commands inside extfs, just like any other non\-local VFS.
  3299. .PP
  3300. Common extfs scripts included with Midnight Commander are:
  3301. .TP
  3302. .B a
  3303. access 'A:' DOS/Windows diskette
  3304. .RI ( "cd a://" ).
  3305. .TP
  3306. .B apt
  3307. front end to Debian's APT package management system
  3308. .RI ( "cd apt://" ).
  3309. .TP
  3310. .B audio
  3311. audio CD ripping and playing
  3312. .RI ( "cd audio://"
  3313. or
  3314. .IR "cd device/audio://" ).
  3315. .TP
  3316. .B bpp
  3317. package of Bad Penguin GNU/Linux distribution
  3318. .RI ( "cd file.bpp/bpp://" ).
  3319. .TP
  3320. .B deb
  3321. package of Debian GNU/Linux distribution
  3322. .RI ( "cd file.deb/deb://" ).
  3323. .TP
  3324. .B dpkg
  3325. Debian GNU/Linux installed packages
  3326. .RI ( "cd deb://" ).
  3327. .TP
  3328. .B hp48
  3329. view and copy files to/from a HP48 calculator
  3330. .RI ( "cd hp48://" ).
  3331. .TP
  3332. .B lslR
  3333. browsing of lslR listings as found on many FTPs
  3334. .RI ( "cd filename/lslR://" ).
  3335. .TP
  3336. .B mailfs
  3337. mbox\-style mailbox files support
  3338. .RI ( "cd mailbox/mailfs://" ).
  3339. .TP
  3340. .B patchfs
  3341. extfs to handle unified and context diffs
  3342. .RI ( "cd filename/patchfs://" ).
  3343. .TP
  3344. .B rpm
  3345. RPM package
  3346. .RI ( "cd filename/rpm://" ).
  3347. .TP
  3348. .B rpms
  3349. RPM database management
  3350. .RI ( "cd rpms://" ).
  3351. .TP
  3352. .B ulha, urar, uzip, uzoo, uar, uha
  3353. archivers
  3354. .RI ( "cd archive/xxxx://"
  3355. where xxxx is one of:
  3356. .IR ulha ,
  3357. .IR urar ,
  3358. .IR uzip ,
  3359. .IR uzoo ,
  3360. .IR uar ,
  3361. .IR uha ).
  3362. .PP
  3363. You could bind file type/extension to specified extfs as described in the
  3364. .\"LINK2"
  3365. Extension File Edit
  3366. .\"Extension File Edit"
  3367. section. Here is an example entry for Debian packages:
  3368. .PP
  3369. .nf
  3370. regex/\.deb$
  3371. Open=%cd %p/deb://
  3372. .fi
  3373. .\"NODE "Colors"
  3374. .SH "Colors"
  3375. The Midnight Commander will try to detect if your terminal supports
  3376. color using the terminal database and your terminal name. Sometimes
  3377. it gets confused, so you may force color mode or disable color mode
  3378. using the \-c and \-b flag respectively.
  3379. .PP
  3380. If the program is compiled with the Slang screen manager instead of
  3381. ncurses, it will also check the variable
  3382. .B COLORTERM,
  3383. if it is set, it has the same effect as the \-c flag.
  3384. .PP
  3385. You may specify terminals that always force color mode
  3386. by adding the
  3387. .I color_terminals
  3388. variable to the Colors section of the initialization file. This will
  3389. prevent the Midnight Commander from trying to detect if your terminal
  3390. supports color. Example:
  3391. .PP
  3392. .nf
  3393. [Colors]
  3394. color_terminals=linux,xterm
  3395. color_terminals=terminal\-name1,terminal\-name2...
  3396. .fi
  3397. .PP
  3398. The program can be compiled with both ncurses and slang, ncurses does
  3399. not provide a way to force color mode: ncurses uses just the
  3400. information in the terminal database.
  3401. .PP
  3402. The Midnight Commander provides a way to change the default colors.
  3403. Currently the colors are configured using the environment variable
  3404. .B MC_COLOR_TABLE
  3405. or the Colors section in the initialization file.
  3406. .PP
  3407. In the Colors section, the default color map is loaded from the
  3408. .I base_color
  3409. variable. You can specify an alternate color map for a terminal by
  3410. using the terminal name as the key in this section. Example:
  3411. .PP
  3412. .nf
  3413. [Colors]
  3414. base_color=
  3415. xterm=menu=magenta:marked=,magenta:markselect=,red
  3416. .fi
  3417. .PP
  3418. The format for the color definition is:
  3419. .PP
  3420. .nf
  3421. <keyword>=<fgcolor>,<bgcolor>,<attributes>:<keyword>=...
  3422. .fi
  3423. .PP
  3424. The colors are optional, and the keywords are: normal, selected, disabled, marked,
  3425. markselect, errors, input, inputmark, inputunchanged, commandlinemark,
  3426. reverse, gauge, header, inputhistory, commandhistory. Button bar colors are:
  3427. bbarhotkey, bbarbutton. Status bar color: statusbar. Menu colors are: menunormal,
  3428. menusel, menuhot, menuhotsel, menuinactive. Dialog colors are: dnormal, dfocus,
  3429. dhotnormal, dhotfocus, dtitle. Error dialog colors are: errdfocus, errdhotnormal,
  3430. errdhotfocus, errdtitle. Help colors are: helpnormal, helpitalic, helpbold,
  3431. helplink, helpslink, helptitle. Viewer color are: viewbold, viewunderline, viewselected.
  3432. Editor colors are: editnormal, editbold, editmarked, editwhitespace, editlinestate.
  3433. Popup menu colors are: pmenunormal, pmenusel, pmenutitle.
  3434. .PP
  3435. .I header
  3436. determines the color of panel header, the line that contains column titles
  3437. and sort mode indicator.
  3438. .PP
  3439. .I input
  3440. determines the color of input lines used in query dialogs.
  3441. .PP
  3442. .I gauge
  3443. determines the color of the filled part of the progress bar (gauge),
  3444. which is used to show the user the progress of file operations, such as
  3445. copying.
  3446. .PP
  3447. .I disabled
  3448. determines the color of the widget that cannot be selected.
  3449. .PP
  3450. The dialog boxes use the following colors:
  3451. .I dnormal
  3452. is used for the normal text,
  3453. .I dfocus
  3454. is the color used for the currently selected component,
  3455. .I dhotnormal
  3456. is the color used to differentiate the hotkey color in normal
  3457. components, whereas the
  3458. .I dhotfocus
  3459. color is used for the highlighted color in the currently selected
  3460. component.
  3461. .PP
  3462. Menus use the same scheme but uses the menunormal, menusel, menuhot, menuhotsel
  3463. and menuinactive tags instead.
  3464. .PP
  3465. Help uses the following colors:
  3466. .I helpnormal
  3467. is used for normal text,
  3468. .I helpitalic
  3469. is used for text which is emphasized in italic in the manual page,
  3470. .I helpbold
  3471. is used for text which is emphasized in bold in the manual page,
  3472. .I helplink
  3473. is used for not selected hyperlinks and
  3474. .I helpslink
  3475. is used for selected hyperlink.
  3476. .PP
  3477. Popup menu uses following colors:
  3478. .I pmenunormal
  3479. is used for non-selected menu items and as a main color of popup menu window,
  3480. .I pmenusel
  3481. is used for selected menu item,
  3482. .I pmenutitle
  3483. is used for popup menu title.
  3484. .PP
  3485. The possible colors are: black, gray, red, brightred, green,
  3486. brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta,
  3487. cyan, brightcyan, lightgray and white. And there is a special keyword
  3488. for transparent background. It is 'default'. The 'default' can only be
  3489. used for background color. Another special keyword "base" means mc's main
  3490. colors. When 256 colors are available, they can be specified either as
  3491. color16 to color255, or as rgb000 to rgb555 and gray0 to gray23. Example:
  3492. .PP
  3493. .nf
  3494. [Colors]
  3495. base_color=normal=white,default:marked=magenta,default
  3496. .fi
  3497. .PP
  3498. Attributes can be any of bold, underline, reverse and blink, appended by a
  3499. plus sign if more than one are desired. The special word "none" means no
  3500. attributes, without attempting to fall back to base_color. Example:
  3501. .PP
  3502. .nf
  3503. menuhotsel=yellow;black;bold+underline
  3504. .fi
  3505. .\"NODE "Skins"
  3506. .SH "Skins"
  3507. You can change the appearance of Midnight Commander.
  3508. To do this, you must specify a file that contain descriptions of colors
  3509. and lines to draw boxes. Redefining of the colors is entirely compatible
  3510. with the assignment of colors, as described in Section
  3511. .\"LINK2"
  3512. Colors\&.
  3513. .\"Colors"
  3514. .PP
  3515. If your skin contains any of 256\-color definitions, you should define
  3516. the '256colors' key set to TRUE value in [skin] section.
  3517. .PP
  3518. A skin\-file is searched on the following algorithm (to the first one found):
  3519. .IP
  3520. .br
  3521. 1) command line option
  3522. .B \-S \<skin\>
  3523. or
  3524. .B \-\-skin=\<skin\>
  3525. .br
  3526. 2) Environment variable
  3527. .B MC_SKIN
  3528. .br
  3529. 3) Parameter
  3530. .B skin
  3531. in section
  3532. .B [Midnight\-Commander]
  3533. in config file.
  3534. .br
  3535. 4) File
  3536. .B @sysconfdir@/mc/skins/default.ini
  3537. .br
  3538. 5) File
  3539. .B @prefix@/share/mc/skins/default.ini
  3540. .PP
  3541. Command line option, environment variable and parameter in config file may
  3542. contain the absolute path to the skin\-file (with the extension \.ini
  3543. or without it). Search of skin\-file will occur in (to the first one found):
  3544. .IP
  3545. 1)
  3546. .B ~/.local/share/mc/skins/
  3547. .br
  3548. 2)
  3549. .B @sysconfdir@/mc/skins/
  3550. .br
  3551. 3)
  3552. .B @prefix@/share/mc/skins/
  3553. .br
  3554. .PP
  3555. For getting extended info, refer to:
  3556. .IP
  3557. .\"LINK2"
  3558. Description of section and parameters
  3559. .\"Skins sections"
  3560. .br
  3561. .\"LINK2"
  3562. Color pair definitions
  3563. .\"Skins colors"
  3564. .br
  3565. .\"LINK2"
  3566. Draw lines
  3567. .\"Skins lines"
  3568. .br
  3569. .\"LINK2"
  3570. Compatibility
  3571. .\"Skins oldcolors"
  3572. .br
  3573. .\"NODE " Skins sections"
  3574. .SH " Description of section and parameters"
  3575. Section
  3576. .B [skin]
  3577. contain metainfo for skin\-file. Parameter
  3578. .I description
  3579. contain short text about skin.
  3580. .PP
  3581. Section
  3582. .B [filehighlight]
  3583. contain descriptions of color pairs for filenames highlighting.
  3584. Name of parameters must be equal to names of sections into
  3585. filehighlight.ini file.
  3586. See
  3587. .\"LINK2"
  3588. Filenames Highlight
  3589. .\"Filenames Highlight"
  3590. for getting more info.
  3591. .PP
  3592. Section
  3593. .B [core]
  3594. describes the elements that are used everywhere.
  3595. .TP
  3596. .I _default_
  3597. Default color pair. Used in all other sections if they not contain
  3598. color definitions
  3599. .TP
  3600. .I selected
  3601. cursor
  3602. .TP
  3603. .I marked
  3604. selected data
  3605. .TP
  3606. .I markselect
  3607. cursor on selected data
  3608. .TP
  3609. .I gauge
  3610. color of the filled part of the progress bar
  3611. .TP
  3612. .I input
  3613. color of input lines used in query dialogs
  3614. .TP
  3615. .I inputmark
  3616. color of input selected text
  3617. .TP
  3618. .I inputunhanged
  3619. color of input text before first modification or cursor movement
  3620. .TP
  3621. .I commandlinemark
  3622. color of selected text in command line
  3623. .TP
  3624. .I reverse
  3625. reverse color
  3626. .PP
  3627. Section
  3628. .B [dialog]
  3629. describes the elements that are placed on dialog windows (except error dialogs).
  3630. .TP
  3631. .I _default_
  3632. Default color for this section. Used [core]._default_ if not specified
  3633. .TP
  3634. .I dfocus
  3635. Color of active element (in focus)
  3636. .TP
  3637. .I dhotnormal
  3638. Color of hotkeys
  3639. .TP
  3640. .I dhotfocus
  3641. Color of hotkeys in focused element
  3642. .PP
  3643. Section
  3644. .B [error]
  3645. describes the elements that are placed on error dialog windows
  3646. .TP
  3647. .I _default_
  3648. Default color for this section. Used [core]._default_ if not specified
  3649. .TP
  3650. .I errdhotnormal
  3651. Color of hotkeys
  3652. .TP
  3653. .I errdhotfocus
  3654. Color of hotkeys in focused element
  3655. .PP
  3656. Section
  3657. .B [menu]
  3658. describes the elements that are placed in menu. This section describes
  3659. system menu (called by F9) and user\-defined menus (called by F2 in panels
  3660. and by F11 in editor).
  3661. .TP
  3662. .I _default_
  3663. Default color for this section. Used [core]._default_ if not specified
  3664. .TP
  3665. .I entry
  3666. Color of menu items
  3667. .TP
  3668. .I menuhot
  3669. Color of menu hotkeys
  3670. .TP
  3671. .I menusel
  3672. Color of active menu item (in focus)
  3673. .TP
  3674. .I menuhotsel
  3675. Color of menu hotkeys in focused menu item
  3676. .TP
  3677. .I menuinactive
  3678. Color of inactive menu
  3679. .PP
  3680. Section
  3681. .B [help]
  3682. describes the elements that are placed on help window.
  3683. .TP
  3684. .I _default_
  3685. Default color for this section. Used [core]._default_ if not specified
  3686. .TP
  3687. .I helpitalic
  3688. Color pair for element with
  3689. .B italic
  3690. attribute
  3691. .TP
  3692. .I helpbold
  3693. Color pair for element with
  3694. .B bold
  3695. attribute
  3696. .TP
  3697. .I helplink
  3698. Color of links
  3699. .TP
  3700. .I helpslink
  3701. Color of active link (on focus)
  3702. .PP
  3703. Section
  3704. .B [editor]
  3705. describes the colors of elements placed in editor.
  3706. .TP
  3707. .I _default_
  3708. Default color for this section. Used [core]._default_ if not specified
  3709. .TP
  3710. .I editbold
  3711. Color pair for element with
  3712. .B bold
  3713. attribute
  3714. .TP
  3715. .I editmarked
  3716. Color of selected text
  3717. .TP
  3718. .I editwhitespace
  3719. Color of tabs and trailing spaces highlighting
  3720. .TP
  3721. .I editlinestate
  3722. Color for line state area
  3723. .PP
  3724. Section
  3725. .B [viewer]
  3726. describes the colors of elements placed in viewer.
  3727. .TP
  3728. .I viewunderline
  3729. Color pair for element with
  3730. .B underline
  3731. attribute
  3732. .\"NODE " Skins colors"
  3733. .SH " Color pair definitions"
  3734. Any parameter in skin\-file contain definition of color pair.
  3735. .PP
  3736. Color pairs described as two colors and the optional attributes
  3737. separated by ';'. First field sets the foreground color, second
  3738. field sets background color, third field sets the attributes.
  3739. Any of the fields may be omitted, in this case value will be
  3740. taken from default color pair (global color pair or from default
  3741. color pair of this section).
  3742. .PP
  3743. Example:
  3744. .br
  3745. .nf
  3746. [core]
  3747. # green on black
  3748. _default_=green;black
  3749. # green (default) on blue
  3750. selected=;blue
  3751. # yellow on black (default)
  3752. # underlined yellow on black (default)
  3753. marked=yellow;;underline
  3754. .fi
  3755. .PP
  3756. Possible colors (names) and attributes are described in
  3757. .\"LINK2"
  3758. Colors\&.
  3759. .\"Colors"
  3760. section.
  3761. .\"NODE " Skins lines"
  3762. .SH " Draw lines"
  3763. Lines sets in section
  3764. .B [Lines]
  3765. into skin\-file. By default single lines are used, but you may redefine
  3766. to usage of any utf\-8 symbols (like to lines, for example).
  3767. .PP
  3768. .I WARNING!!!
  3769. When you build Midnight Commander with the Ncurses screen library
  3770. usage of drawing lines is limited!
  3771. Possible only drawing a single lines.
  3772. For all questions and comments please contact the developers of Ncurses.
  3773. .PP
  3774. Descriptions of parameters
  3775. .BR [Lines] :
  3776. .TP
  3777. .I lefttop
  3778. left\-top line fragment.
  3779. .TP
  3780. .I righttop
  3781. right\-top line fragment.
  3782. .TP
  3783. .I centertop
  3784. down branch of horizontal line
  3785. .TP
  3786. .I centerbottom
  3787. up branch of horizontal line
  3788. .TP
  3789. .I leftbottom
  3790. left\-bottom line fragment
  3791. .TP
  3792. .I rightbottom
  3793. right\-bottom line fragment
  3794. .TP
  3795. .I leftmiddle
  3796. right branch of vertical line
  3797. .TP
  3798. .I rightmiddle
  3799. left branch of vertical line
  3800. .TP
  3801. .I centermiddle
  3802. cross of lines
  3803. .TP
  3804. .I horiz
  3805. horizontal line
  3806. .TP
  3807. .I vert
  3808. vertical line
  3809. .TP
  3810. .I thinhoriz
  3811. thin horizontal line
  3812. .TP
  3813. .I thinvert
  3814. thin vertical line
  3815. .\"NODE " Skins oldcolors"
  3816. .SH " Compatibility"
  3817. Appointment of color by skin\-files fully compatible with
  3818. the appointment of the colors described in
  3819. .\"LINK2"
  3820. Colors\&.
  3821. .\"Colors"
  3822. section.
  3823. .PP
  3824. In this case, reassignment of colors has priority over the skin file and is
  3825. complementary.
  3826. .\"NODE "Filenames Highlight"
  3827. .SH "Filenames Highlight"
  3828. Section [filehighlight] in current skin\-file contains key names as
  3829. highlight groups and values as color pairs. Color pairs is documented
  3830. in
  3831. .\"LINK2"
  3832. Skins
  3833. .\"Skins"
  3834. section.
  3835. .PP
  3836. Rules of filenames highlight are placed in @prefix@/share/mc/filehighlight.ini file
  3837. (~/.config/mc/filehighlight.ini).
  3838. Name of section in this file must be equal to parameters names in
  3839. [filehighlight] section (in current skin\-file).
  3840. .PP
  3841. Keys in these groups are:
  3842. .TP
  3843. .I type
  3844. file type. If present, all other options are ignored.
  3845. .TP
  3846. .I regexp
  3847. regular expression. If present, 'extensions' option is ignored.
  3848. .TP
  3849. .I extensions
  3850. list of extensions of files. Separated by ';' sign.
  3851. .TP
  3852. .I extensions_case
  3853. (make sense only with 'extensions' parameter) make 'extensions'
  3854. rule case sentitive (true) or not (false).
  3855. .PP
  3856. `type' key may have values:
  3857. .nf
  3858. \- FILE (all files)
  3859. \- FILE_EXE
  3860. \- DIR (all directories)
  3861. \- LINK_DIR
  3862. \- LINK (all links except stale link)
  3863. \- HARDLINK
  3864. \- SYMLINK
  3865. \- STALE_LINK
  3866. \- DEVICE (all device files)
  3867. \- DEVICE_BLOCK
  3868. \- DEVICE_CHAR
  3869. \- SPECIAL (all special files)
  3870. \- SPECIAL_SOCKET
  3871. \- SPECIAL_FIFO
  3872. \- SPECIAL_DOOR
  3873. .fi
  3874. .PP
  3875. .\"NODE "Special Settings"
  3876. .SH "Special Settings"
  3877. Most of the Midnight Commander settings can be changed from the
  3878. menus. However, there are a small number of settings which can only be
  3879. changed by editing the setup file.
  3880. .PP
  3881. These variables may be set in your ~/.config/mc/ini file:
  3882. .TP
  3883. .I clear_before_exec
  3884. By default the Midnight Commander clears the screen before executing a
  3885. command. If you would prefer to see the output of the command at the
  3886. bottom of the screen, edit your ~/.config/mc/ini file and change the value of
  3887. the field clear_before_exec to 0.
  3888. .TP
  3889. .I confirm_view_dir
  3890. If you press F3 on a directory, normally MC enters that directory. If
  3891. this flag is set to 1, then MC will ask for confirmation before changing
  3892. the directory if you have files tagged.
  3893. .TP
  3894. .I ftpfs_retry_seconds
  3895. This value is the number of seconds the Midnight Commander will wait
  3896. before attempting to reconnect to an FTP server that has denied the
  3897. login. If the value is zero, the login will no be retried.
  3898. .TP
  3899. .I max_dirt_limit
  3900. Specifies how many screen updates can be skipped at most in the internal
  3901. file viewer. Normally this value is not significant, because the code
  3902. automatically adjusts the number of updates to skip according to the
  3903. rate of incoming keystrokes. However, on very slow machines or
  3904. terminals with a fast keyboard auto repeat, a big value can make screen
  3905. updates too jumpy.
  3906. .IP
  3907. It seems that setting max_dirt_limit to 10 causes the best behavior,
  3908. and that is the default value.
  3909. .TP
  3910. .I mouse_move_pages_viewer
  3911. Controls if scrolling with the mouse is done by pages or line by line
  3912. on the internal file viewer.
  3913. .TP
  3914. .I only_leading_plus_minus
  3915. Allow special treatment for '+', '\-', '*' in the command line (select,
  3916. unselect, reverse selection) only if the command line is empty. You
  3917. don't need to quote those characters in the middle of the command line.
  3918. On the other hand, you cannot use them to change selection when the
  3919. command line is not empty.
  3920. .TP
  3921. .I show_output_starts_shell
  3922. This variable only works if you are not using the subshell support.
  3923. When you use the C\-o keystroke to go back to the user screen, if this
  3924. one is set, you will get a fresh shell. Otherwise, pressing any key
  3925. will bring you back to the Midnight Commander.
  3926. .TP
  3927. .I timeformat_recent
  3928. Change the time format used to display dates less than 6 months from
  3929. now.
  3930. See strftime or date man page for the format specification. If this
  3931. option is absent, default timeformat is used.
  3932. .TP
  3933. .I timeformat_old
  3934. Change the time format used to display dates older than 6 months from
  3935. now or for dates in the future.
  3936. See strftime or date man page for the format specification. If this
  3937. option is absent, default timeformat is used.
  3938. .TP
  3939. .I torben_fj_mode
  3940. If this flag is set, then the home and end keys will work slightly
  3941. different on the panels, instead of moving the selection to the first
  3942. and last files in the panels, they will act as follows:
  3943. .IP
  3944. The home key will: Go up to the middle line, if below it; else go to the
  3945. top line unless it is already on the top line, in this case it will go
  3946. to the first file in the panel.
  3947. .IP
  3948. The end key has a similar behavior: Go down to the middle line, if over
  3949. it; else go to the bottom line unless you already are at the bottom
  3950. line, in such case it will move the selection to the last file name in
  3951. the panel.
  3952. .TP
  3953. .I use_file_to_guess_type
  3954. If this variable is on (the default) it will spawn the file command to
  3955. match the file types listed on the
  3956. .\"LINK2"
  3957. mc.ext file\&.
  3958. .\"Extension File Edit"
  3959. .TP
  3960. .I xtree_mode
  3961. If this variable is on (default is off) when you browse the file system
  3962. on a Tree panel, it will automatically reload the other panel with the
  3963. contents of the selected directory.
  3964. .TP
  3965. .I fish_directory_timeout
  3966. This variable holds the lifetime of a directory cache entry in seconds. The
  3967. default value is 900 seconds.
  3968. .TP
  3969. .I clipboard_store
  3970. This variable contains path (with options) to the external clipboard
  3971. utility like 'xclip' to read text into X selection from file.
  3972. For example:
  3973. .PP
  3974. .nf
  3975. clipboard_store=xclip \-i
  3976. .fi
  3977. .TP
  3978. .I clipboard_paste
  3979. This variable contains path (with options) to the external clipboard
  3980. utility like 'xclip' to print the selection to standard out.
  3981. For example:
  3982. .PP
  3983. .nf
  3984. clipboard_pastee=xclip \-o
  3985. .fi
  3986. .TP
  3987. .I autodetect_codeset
  3988. This option allows use the `enca' command to autodetect codeset of text files
  3989. in internal viewer and editor. List of valid values can be obtain by the
  3990. `enca \-\-list languages | cut \-d : \-f1' command. Option must be located
  3991. in the [Misc] section.
  3992. .PP
  3993. For example:
  3994. .PP
  3995. .nf
  3996. autodetect_codeset=russian
  3997. .fi
  3998. .\"NODE "Terminal databases"
  3999. .SH "Terminal databases"
  4000. The Midnight Commander provides a way to fix your system terminal
  4001. database without requiring root privileges. The Midnight Commander
  4002. searches in the system initialization file (the mc.lib file located in
  4003. the Midnight Commander library directory) and in the
  4004. ~/.config/mc/ini file for the section
  4005. "terminal:your\-terminal\-name" and then for the section
  4006. "terminal:general", each line of the section contains a key symbol that
  4007. you want to define, followed by an equal sign and the definition for the
  4008. key. You can use the special \\e form to represent the escape character
  4009. and the ^x to represent the control\-x character.
  4010. .PP
  4011. The possible key symbols are:
  4012. .PP
  4013. .nf
  4014. f0 to f20 Function keys f0\-f20
  4015. bs backspace
  4016. home home key
  4017. end end key
  4018. up up arrow key
  4019. down down arrow key
  4020. left left arrow key
  4021. right right arrow key
  4022. pgdn page down key
  4023. pgup page up key
  4024. insert the insert character
  4025. delete the delete character
  4026. complete to do completion
  4027. .fi
  4028. .PP
  4029. For example, to define the key insert to be the Escape + [ + O + p, you
  4030. set this in the ini file:
  4031. .PP
  4032. .nf
  4033. insert=\\e[Op
  4034. .fi
  4035. .PP
  4036. Also now you can use
  4037. .I extended learn keys.
  4038. For example:
  4039. .nf
  4040. ctrl\-alt\-right=\\e[[1;6C
  4041. ctrl\-alt\-left=\\e[[1;6D
  4042. .fi
  4043. .PP
  4044. This means that ctrl+alt+left sends a \\e[[1;6D escape sequence
  4045. and therefore Midnight Commander interprets "\\e[[1;6D" as Ctrl\-Alt\-Left.
  4046. .PP
  4047. The
  4048. .I complete
  4049. key symbol represents the escape sequences used to invoke the completion
  4050. process, this is invoked with Alt\-tab, but you can define other keys to do
  4051. the same work (on those keyboard with tons of nice and unused keys
  4052. everywhere).
  4053. .SH ""
  4054. .\"NODE "FILES"
  4055. .SH "FILES"
  4056. Full paths below may vary between installations. They are also affected
  4057. by the MC_DATADIR environment variable. If it's set, its value is used
  4058. instead of @prefix@/share/mc in the paths below.
  4059. .PP
  4060. .I @prefix@/share/mc/mc.hlp
  4061. .IP
  4062. The help file for the program.
  4063. .PP
  4064. .I @prefix@/share/mc/mc.ext
  4065. .IP
  4066. The default system\-wide extensions file.
  4067. .PP
  4068. .I ~/.config/mc/mc.ext
  4069. .IP
  4070. User's own extension, view configuration and edit configuration
  4071. file. They override the contents of the system wide files if present.
  4072. .PP
  4073. .I @prefix@/share/mc/mc.ini
  4074. .IP
  4075. The default system\-wide setup for the Midnight Commander, used only if
  4076. the user doesn't have his own ~/.config/mc/ini file.
  4077. .PP
  4078. .I @prefix@/share/mc/mc.lib
  4079. .IP
  4080. Global settings for the Midnight Commander. Settings in this file
  4081. affect all users, whether they have ~/.config/mc/ini or not. Currently, only
  4082. .\"LINK2"
  4083. terminal settings
  4084. .\"Terminal databases"
  4085. are loaded from mc.lib.
  4086. .PP
  4087. .I ~/.config/mc/ini
  4088. .IP
  4089. User's own setup. If this file is present then the setup is loaded
  4090. from here instead of the system\-wide startup file.
  4091. .PP
  4092. .I @prefix@/share/mc/mc.hint
  4093. .IP
  4094. This file contains the hints displayed by the program.
  4095. .PP
  4096. .I @prefix@/share/mc/mc.menu
  4097. .IP
  4098. This file contains the default system\-wide applications menu.
  4099. .PP
  4100. .I ~/.config/mc/menu
  4101. .IP
  4102. User's own application menu. If this file is present it is used instead
  4103. of the system\-wide applications menu.
  4104. .PP
  4105. .I ~/.cache/mc/Tree
  4106. .IP
  4107. The directory list for the directory tree and tree view features.
  4108. .PP
  4109. .I ~/.local/share/mc.menu
  4110. .IP
  4111. Local user\-defined menu. If this file is present, it is used instead of
  4112. the home or system\-wide applications menu.
  4113. .\"SKIP_SECTION"
  4114. .SH "LICENSE"
  4115. This program is distributed under the terms of the GNU General Public
  4116. License as published by the Free Software Foundation. See the built\-in
  4117. help for details on the License and the lack of warranty.
  4118. .\"NODE "AVAILABILITY"
  4119. .SH "AVAILABILITY"
  4120. The latest version of this program can be found at
  4121. ftp://ftp.gnu.org/gnu/mc/.
  4122. .\"NODE "SEE ALSO"
  4123. .SH "SEE ALSO"
  4124. ed(1), gpm(1), terminfo(1), view(1), sh(1), bash(1),
  4125. tcsh(1), zsh(1).
  4126. .PP
  4127. .nf
  4128. The Midnight Commander page on the World Wide Web:
  4129. http://www.midnight\-commander.org/
  4130. .fi
  4131. .\"NODE "AUTHORS"
  4132. .SH "AUTHORS"
  4133. Authors and contributors are listed in the AUTHORS file in the source
  4134. distribution.
  4135. .\"NODE "BUGS"
  4136. .SH "BUGS"
  4137. See the file TODO in the distribution for information on what remains to
  4138. be done.
  4139. .PP
  4140. If you want to report a problem with the program, please send mail to
  4141. this address: mc\-devel@gnome.org.
  4142. .PP
  4143. Provide a detailed description of the bug, the version of the program
  4144. you are running
  4145. .RI ( "mc \-V"
  4146. displays this information), the operating system you are running the
  4147. program on. If the program crashes, we would appreciate a stack trace.