mc.1.in 125 KB

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