sk-dired-ref.tex 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. % Reference Card for Dired
  2. % Copyright (C) 2000-2012 Free Software Foundation, Inc.
  3. % Author: Evgeny Roubinchtein <eroubinc@u.washington.edu>
  4. % Czech translation: Pavel Janík <Pavel@Janik.cz>, March 2001
  5. % Slovak translation: Miroslav Vasko <vasko@debian.cz>, March 2001
  6. % This file is part of GNU Emacs.
  7. % GNU Emacs is free software: you can redistribute it and/or modify
  8. % it under the terms of the GNU General Public License as published by
  9. % the Free Software Foundation, either version 3 of the License, or
  10. % (at your option) any later version.
  11. % GNU Emacs is distributed in the hope that it will be useful,
  12. % but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. % GNU General Public License for more details.
  15. % You should have received a copy of the GNU General Public License
  16. % along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  17. % See dired-ref.tex.
  18. % Process the file with `csplain' from the `CSTeX' distribution (included
  19. % e.g. in the TeX Live CD).
  20. %**start of header
  21. % Slovak hyphenation rules applied
  22. \shyph
  23. % This file can be printed with 1, 2, or 3 columns per page.
  24. % Specify how many you want here.
  25. \newcount\columnsperpage
  26. \columnsperpage=2
  27. % PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for
  28. % a landscape layout.
  29. \input pdflayout.sty
  30. \pdflayout=(0)
  31. \def\versionemacs{24} % version of Emacs this is for
  32. \def\year{2012} % latest copyright year
  33. % Nothing else needs to be changed.
  34. \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
  35. \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
  36. Permissions on back.}}
  37. \def\copyrightnotice{
  38. \vskip 1ex plus 2 fill\begingroup\small
  39. \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
  40. \centerline{For GNU Emacs version \versionemacs}
  41. \centerline{Originally written May 2000 by Evgeny Roubinchtein,}
  42. \centerline{using refcard layout designed by Stephen Gildea.}
  43. \centerline{Translated by Miroslav Va¹ko.}
  44. Permission is granted to make and distribute copies of
  45. this card provided the copyright notice and this permission notice
  46. are preserved on all copies.
  47. For copies of the GNU Emacs manual, see:
  48. {\tt http://www.gnu.org/software/emacs/\#Manuals}
  49. \endgroup}
  50. % make \bye not \outer so that the \def\bye in the \else clause below
  51. % can be scanned without complaint.
  52. \def\bye{\par\vfill\supereject\end}
  53. \newdimen\intercolumnskip %horizontal space between columns
  54. \newbox\columna %boxes to hold columns already built
  55. \newbox\columnb
  56. \def\ncolumns{\the\columnsperpage}
  57. \message{[\ncolumns\space
  58. column\if 1\ncolumns\else s\fi\space per page]}
  59. \def\scaledmag#1{ scaled \magstep #1}
  60. % This multi-way format was designed by Stephen Gildea October 1986.
  61. % Note that the 1-column format is fontfamily-independent.
  62. \if 1\ncolumns %one-column format uses normal size
  63. \hsize 4in
  64. \vsize 10in
  65. \voffset -.7in
  66. \font\titlefont=\fontname\tenbf \scaledmag3
  67. \font\headingfont=\fontname\tenbf \scaledmag2
  68. \font\smallfont=\fontname\sevenrm
  69. \font\smallsy=\fontname\sevensy
  70. \footline{\hss\folio}
  71. \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
  72. \else %2 or 3 columns uses prereduced size
  73. \hsize 3.4in
  74. \vsize 9.2in
  75. \hoffset -.75in
  76. \voffset -.745in
  77. \font\titlefont=csbx10 \scaledmag2
  78. \font\headingfont=csbx10 \scaledmag1
  79. \font\smallfont=csr6
  80. \font\smallsy=cmsy6
  81. \font\eightrm=csr8
  82. \font\eightbf=csbx8
  83. \font\eightit=csti8
  84. \font\eighttt=cstt8
  85. \font\eightmi=csmi8
  86. \font\eightsy=cmsy8
  87. \textfont0=\eightrm
  88. \textfont1=\eightmi
  89. \textfont2=\eightsy
  90. \def\rm{\eightrm}
  91. \def\bf{\eightbf}
  92. \def\it{\eightit}
  93. \def\tt{\eighttt}
  94. \normalbaselineskip=.8\normalbaselineskip
  95. \normallineskip=.8\normallineskip
  96. \normallineskiplimit=.8\normallineskiplimit
  97. \normalbaselines\rm %make definitions take effect
  98. \if 2\ncolumns
  99. \let\maxcolumn=b
  100. \footline{\hss\rm\folio\hss}
  101. \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
  102. \else \if 3\ncolumns
  103. \let\maxcolumn=c
  104. \nopagenumbers
  105. \else
  106. \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
  107. \errmessage{Illegal number of columns per page}
  108. \fi\fi
  109. \intercolumnskip=.46in
  110. \def\abc{a}
  111. \output={% %see The TeXbook page 257
  112. % This next line is useful when designing the layout.
  113. %\immediate\write16{Column \folio\abc\space starts with \firstmark}
  114. \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
  115. \else\if a\abc
  116. \global\setbox\columna\columnbox \global\def\abc{b}
  117. %% in case we never use \columnb (two-column mode)
  118. \global\setbox\columnb\hbox to -\intercolumnskip{}
  119. \else
  120. \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
  121. \def\multicolumnformat{\shipout\vbox{\makeheadline
  122. \hbox{\box\columna\hskip\intercolumnskip
  123. \box\columnb\hskip\intercolumnskip\columnbox}
  124. \makefootline}\advancepageno}
  125. \def\columnbox{\leftline{\pagebody}}
  126. \def\bye{\par\vfill\supereject
  127. \if a\abc \else\null\vfill\eject\fi
  128. \if a\abc \else\null\vfill\eject\fi
  129. \end}
  130. \fi
  131. % we won't be using math mode much, so redefine some of the characters
  132. % we might want to talk about
  133. \catcode`\^=12
  134. \catcode`\_=12
  135. \chardef\\=`\\
  136. \chardef\{=`\{
  137. \chardef\}=`\}
  138. \hyphenation{mini-buf-fer}
  139. \hyphenation{de-le-tion}
  140. \parindent 0pt
  141. \parskip 1ex plus .5ex minus .5ex
  142. \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
  143. % newcolumn - force a new column. Use sparingly, probably only for
  144. % the first column of a page, which should have a title anyway.
  145. \outer\def\newcolumn{\vfill\eject}
  146. % title - page title. Argument is title text.
  147. \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
  148. % section - new major section. Argument is section name.
  149. \outer\def\section#1{\par\filbreak
  150. \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
  151. \vskip 2ex plus 1ex minus 1.5ex}
  152. \newdimen\keyindent
  153. % beginindentedkeys...endindentedkeys - key definitions will be
  154. % indented, but running text, typically used as headings to group
  155. % definitions, will not.
  156. \def\beginindentedkeys{\keyindent=1em}
  157. \def\endindentedkeys{\keyindent=0em}
  158. \endindentedkeys
  159. % paralign - begin paragraph containing an alignment.
  160. % If an \halign is entered while in vertical mode, a parskip is never
  161. % inserted. Using \paralign instead of \halign solves this problem.
  162. \def\paralign{\vskip\parskip\halign}
  163. % \<...> - surrounds a variable name in a code example
  164. \def\<#1>{{\it #1\/}}
  165. % kbd - argument is characters typed literally. Like the Texinfo command.
  166. \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows
  167. % beginexample...endexample - surrounds literal text, such a code example.
  168. % typeset in a typewriter font with line breaks preserved
  169. \def\beginexample{\par\leavevmode\begingroup
  170. \obeylines\obeyspaces\parskip0pt\tt}
  171. {\obeyspaces\global\let =\ }
  172. \def\endexample{\endgroup}
  173. % key - definition of a key.
  174. % \key{description of key}{key-name}
  175. % prints the description left-justified, and the key-name in a \kbd
  176. % form near the right margin.
  177. \def\key#1#2{\leavevmode\hbox to \hsize{\vtop
  178. {\hsize=.75\hsize\rightskip=1em
  179. \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
  180. \newbox\metaxbox
  181. \setbox\metaxbox\hbox{\kbd{M-x }}
  182. \newdimen\metaxwidth
  183. \metaxwidth=\wd\metaxbox
  184. % metax - definition of a M-x command.
  185. % \metax{description of command}{M-x command-name}
  186. % Tries to justify the beginning of the command name at the same place
  187. % as \key starts the key name. (The "M-x " sticks out to the left.)
  188. \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
  189. {\hskip\keyindent\relax#1\hfil}%
  190. \hskip -\metaxwidth minus 1fil
  191. \kbd{#2}\hfil}}
  192. % threecol - like "key" but with two key names.
  193. % for example, one for doing the action backward, and one for forward.
  194. \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad
  195. &\kbd{#3}\hfil\quad\cr}
  196. % I cannot figure out how to make all dired-x
  197. % commands fit on a page in two-column format
  198. \def\dx{{\bf (DX)}}
  199. \nopagenumbers
  200. %**end of header
  201. \title{Referenèná karta pre Dired}
  202. \centerline{(urèené pre Dired v GNU Emacse \versionemacs)}
  203. \centerline{Príkazy oznaèené \dx{} vy¾adujú dired-x}
  204. % trim this down to fit everything on one page
  205. % \section{General}
  206. % In dired, you can edit a list of the files in a directory (and optionally
  207. % its subdirectories in the `ls -lR' format).
  208. % Editing a directory means that you can visit, rename, copy, compress,
  209. % load, byte-compile files. You can change files' attributes, run shell
  210. % commands on files, or insert subdirectories into the edit buffer. You can
  211. % "flag" files for deletion or "mark" files for later commands, either one
  212. % file at a time or by all files matching certain criteria (e.g., files that
  213. % match a certain regexp).
  214. % You move throughout the buffer using the usual cursor motion commands.
  215. % Letters no longer insert themselves, but execute commands instead. The
  216. % digits (0-9) are prefix arguments.
  217. % Most commands operate either on all marked files or on the current file if
  218. % no files are marked. Use a numeric prefix argument to operate on the next
  219. % ARG files (or previous ARG if ARG $<$ 0). Use the prefix argument `1' to
  220. % operate on the current file only. Prefix arguments override marks. Commands
  221. % which run a sub-process on a group of files will display a list of files
  222. % for which the sub-process failed. Typing y will try to tell
  223. % you what went wrong.
  224. % When editing several directories in one buffer, each directory acts as a
  225. % page, so C-x [ and C-x ] can be used to move between directories.
  226. \section{Spustenie a ukonèenie Dired}
  227. \key{spustenie dired}{C-x d}
  228. \key{spustenie dired v adresári s aktuálnym súborom}{C-x C-j \dx}
  229. \key{ukonèenie dired}{q}
  230. \section{Príkazy pre presuny}
  231. \key{spä» na predchádzajúci riadok}{p}
  232. \key{vpred na nasledujúci riadok}{n}
  233. \key{hore na predchádzajúci adresár}{<}
  234. \key{dole na nasledujúci adresár}{>}
  235. \key{na ïal¹í oznaèený súbor}{M-\}}
  236. \key{na predchádzajúci oznaèený súbor}{M-\{}
  237. \key{spä» na predchádzajúci podadresár}{M-C-p}
  238. \key{vpred na ïal¹í podadresár}{M-C-n}
  239. \key{na nadradený adresár}{^}
  240. \key{choï na prvý podadresár}{M-C-d}
  241. \section{Príkazy pomocou my¹i}
  242. \metax{otvor súbor}{Mouse_Button_2}
  243. \metax{zobraz menu}{Control-Mouse_Button_3}
  244. \section{Okam¾ité akcie nad súbormi}
  245. \key{otvor aktuálny súbor}{f}
  246. \key{otvor aktuálny súbor iba pre èítanie}{v}
  247. \key{otvor aktuálny súbor v inom okne}{o}
  248. %%\key{otvor aktuálny súbor v inom rámci}{w}
  249. %%\key{zobraz aktuálny súbor}{C-u o}
  250. \key{vytvor nový podadresár}{+}
  251. \key{porovnaj súbor pod kurzorom s oznaèeným}{=}
  252. \section{Oznaèovanie a odznaèovanie súborov}
  253. \key{oznaè súbor alebo podadresár pre ïal¹ie príkazy}{m}
  254. \key{odznaè súbor alebo súbory podadresáre}{u}
  255. \key{zru¹ oznaèenie v¹etkých súborov v bufferi}{M-delete}
  256. \key{oznaè súbory so zadanou príponou}{* .}
  257. \key{oznaè v¹etky adresáre}{* /}
  258. \key{oznaè v¹etky symbolické odkazy}{* @}
  259. \key{oznaè v¹etky spustiteµné súbory}{* *}
  260. \key{invertuj oznaèenie}{* t}
  261. \key{oznaè v¹etky súbory v aktuálnom podadresári}{* s}
  262. \key{oznaè súbory vyhovujíce regulárnemu výrazu}{* \%}
  263. \key{zmeò znaèku na iné písmeno}{* c}
  264. \key{oznaè súbory, pre ktoré elispový výraz vrací t}{* ( \dx}
  265. \section{Modifikácia Dired bufferu}
  266. \key{vlo¾ do tohto bufferu podadresár}{i}
  267. \key{odstráò oznaèené súbory z bufferu}{k}
  268. \key{odstráò z bufferu výpis podadresára}{C-u k}
  269. \key{znovu naèítaj adresár (znaèky sa zachovajú)}{g}
  270. \key{prepni triedenie adresára podµa mena/dátumu}{s}
  271. \key{uprav voµby príkazu ls}{C-u s}
  272. \key{obnov znaèky, skryté riadky a~pod.}{C-_}
  273. \key{skry v¹etky podadresáre}{M-\$}
  274. \key{skry alebo odkry v¹etky podadresáre}{\$}
  275. \section{Príkazy nad oznaèenými súbormi}
  276. \key{kopíruj súbor(y)}{C}
  277. \key{premenuj súbor alebo presuò súbory}{R}
  278. \key{zmeò vlastníka súboru(ov)}{O}
  279. \key{zmeò skupinu súboru(ov)}{G}
  280. \key{zmeò prístupové práva súboru(ov)}{M}
  281. \key{vytlaè súbor(y)}{P}
  282. \key{zmeò názov súboru(ov) na malé písmená}{\% l}
  283. \key{zmeò názov súboru(ov) na veµké písmená}{\% u}
  284. \key{zma¾ oznaèené súbory}{D}
  285. %%\key{vykonaj uuencode alebo uudecode súboru(ov)}{U}
  286. \key{skomprimuj alebo dekomprimuj súbor(y)}{Z}
  287. \key{spusti info na súbore}{I \dx}
  288. \key{vytvor symbolický(é) odkaz(y)}{S}
  289. \key{vytvor relatívne symbolické odkazy}{Y}
  290. \key{vytvor pevný odkaz}{H}
  291. \key{prehµadaj súbory -- hµadaj regulárny výraz}{A}
  292. \key{nahraï regulárne výrazy}{Q}
  293. \key{prelo¾ súbory (byte-compile)}{B}
  294. \key{naèítaj súbory (load-file)}{L}
  295. \key{spusti príkaz nad súborom(mi)}{!}
  296. \section{Oznaèenie súborov pre zmazanie}
  297. \leftline{\bf Odznaèujúce príkazy ma¾ú znaèku pre zmazanie}
  298. \key{oznaè súbor pre zmazanie}{d}
  299. %%\key{odstráò znaèku pre zmazanie}{delete}
  300. \key{oznaè v¹etky zálohy (súbory konèiace na \~{})}{\~{}}
  301. \key{oznaè v¹etky zálohy (auto-save)}{\#}
  302. \key{oznaè rôzne doèasné súbory}{\% \&}
  303. \key{oznaè èíslované zálohy (konèiace na .\~{}1\~{} a~pod.)}{.}
  304. \key{vyma¾ súbory oznaèené na zmazanie}{x}
  305. \key{oznaè súbory vyhovujúce regulárnemu výrazu}{\% d}
  306. \section{Príkazy s regulárnymi výrazmi}
  307. \key{oznaè súbory vyhovujúce regulárnemu výrazu}{\% m}
  308. \key{skopíruj oznaèené súbory obsahujúce regexp}{\% C}
  309. \key{premenuj oznaèené súbory vyhovujúce regexp}{\% R}
  310. \key{pevný odkaz}{\% H}
  311. \key{symbolický odkaz}{\% S}
  312. \key{symbolický odkaz s relatívnou cestou}{\% Y}
  313. \key{oznaè pre zmazanie}{\% d}
  314. \section{Dired a Find}
  315. \metax{otvor v dired súbory vyhovujúce vzorke}{M-x find-name-dired}
  316. \metax{otvor v dired súbory obsahujúce vzorku}{M-x find-grep-dired}
  317. \metax{otvor v dired súbory podµa výstupu \kbd{find}}{M-x find-dired}
  318. \section{Nápoveda}
  319. \key{zobraz nápovedu}{h}
  320. \key{prehµad príkazov dired}{?}
  321. \copyrightnotice
  322. \bye
  323. % Local variables:
  324. % compile-command: "csplain sk-dired-ref"
  325. % End: