mc.1.in 122 KB

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