Update copyright year to 2015
[emacs.git] / etc / refcards / cs-dired-ref.tex
blob29a9b09ce5787bc5673f3d6fb6912df62127d278
1 % Reference Card for Dired
3 % Copyright (C) 2000-2015 Free Software Foundation, Inc.
5 % Author: Evgeny Roubinchtein <eroubinc@u.washington.edu>
6 % Czech translation: Pavel Janík <Pavel@Janik.cz>, March 2001
8 % This file is part of GNU Emacs.
10 % GNU Emacs is free software: you can redistribute it and/or modify
11 % it under the terms of the GNU General Public License as published by
12 % the Free Software Foundation, either version 3 of the License, or
13 % (at your option) any later version.
15 % GNU Emacs is distributed in the hope that it will be useful,
16 % but WITHOUT ANY WARRANTY; without even the implied warranty of
17 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 % GNU General Public License for more details.
20 % You should have received a copy of the GNU General Public License
21 % along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24 % See dired-ref.tex.
26 % Process the file with `csplain' from the `CSTeX' distribution (included
27 % e.g. in the TeX Live CD).
29 %**start of header
31 % Czech hyphenation rules applied
32 \chyph
34 % This file can be printed with 1, 2, or 3 columns per page.
35 % Specify how many you want here.
36 \newcount\columnsperpage
37 \columnsperpage=2
39 % PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for
40 % a landscape layout.
41 \input pdflayout.sty
42 \pdflayout=(0)
44 \input emacsver.tex
46 % Nothing else needs to be changed.
48 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
49 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
50 Permissions on back.}}
52 \def\copyrightnotice{
53 \vskip 1ex plus 2 fill\begingroup\small
54 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
55 \centerline{For GNU Emacs version \versionemacs}
56 \centerline{Originally written May 2000 by Evgeny Roubinchtein,}
57 \centerline{using refcard layout designed by Stephen Gildea.}
58 \centerline{Translated by Pavel Janík.}
60 Permission is granted to make and distribute copies of
61 this card provided the copyright notice and this permission notice
62 are preserved on all copies.
64 For copies of the GNU Emacs manual, see:
66 {\tt http://www.gnu.org/software/emacs/\#Manuals}
67 \endgroup}
69 % make \bye not \outer so that the \def\bye in the \else clause below
70 % can be scanned without complaint.
71 \def\bye{\par\vfill\supereject\end}
73 \newdimen\intercolumnskip %horizontal space between columns
74 \newbox\columna %boxes to hold columns already built
75 \newbox\columnb
77 \def\ncolumns{\the\columnsperpage}
79 \message{[\ncolumns\space
80 column\if 1\ncolumns\else s\fi\space per page]}
82 \def\scaledmag#1{ scaled \magstep #1}
84 % This multi-way format was designed by Stephen Gildea October 1986.
85 % Note that the 1-column format is fontfamily-independent.
86 \if 1\ncolumns %one-column format uses normal size
87 \hsize 4in
88 \vsize 10in
89 \voffset -.7in
90 \font\titlefont=\fontname\tenbf \scaledmag3
91 \font\headingfont=\fontname\tenbf \scaledmag2
92 \font\smallfont=\fontname\sevenrm
93 \font\smallsy=\fontname\sevensy
95 \footline{\hss\folio}
96 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
97 \else %2 or 3 columns uses prereduced size
98 \hsize 3.4in
99 \vsize 9.2in
100 \hoffset -.75in
101 \voffset -.745in
102 \font\titlefont=csbx10 \scaledmag2
103 \font\headingfont=csbx10 \scaledmag1
104 \font\smallfont=csr6
105 \font\smallsy=cmsy6
106 \font\eightrm=csr8
107 \font\eightbf=csbx8
108 \font\eightit=csti8
109 \font\eighttt=cstt8
110 \font\eightmi=csmi8
111 \font\eightsy=cmsy8
112 \textfont0=\eightrm
113 \textfont1=\eightmi
114 \textfont2=\eightsy
115 \def\rm{\eightrm}
116 \def\bf{\eightbf}
117 \def\it{\eightit}
118 \def\tt{\eighttt}
119 \normalbaselineskip=.8\normalbaselineskip
120 \normallineskip=.8\normallineskip
121 \normallineskiplimit=.8\normallineskiplimit
122 \normalbaselines\rm %make definitions take effect
124 \if 2\ncolumns
125 \let\maxcolumn=b
126 \footline{\hss\rm\folio\hss}
127 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
128 \else \if 3\ncolumns
129 \let\maxcolumn=c
130 \nopagenumbers
131 \else
132 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
133 \errmessage{Illegal number of columns per page}
134 \fi\fi
136 \intercolumnskip=.46in
137 \def\abc{a}
138 \output={% %see The TeXbook page 257
139 % This next line is useful when designing the layout.
140 %\immediate\write16{Column \folio\abc\space starts with \firstmark}
141 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
142 \else\if a\abc
143 \global\setbox\columna\columnbox \global\def\abc{b}
144 %% in case we never use \columnb (two-column mode)
145 \global\setbox\columnb\hbox to -\intercolumnskip{}
146 \else
147 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
148 \def\multicolumnformat{\shipout\vbox{\makeheadline
149 \hbox{\box\columna\hskip\intercolumnskip
150 \box\columnb\hskip\intercolumnskip\columnbox}
151 \makefootline}\advancepageno}
152 \def\columnbox{\leftline{\pagebody}}
154 \def\bye{\par\vfill\supereject
155 \if a\abc \else\null\vfill\eject\fi
156 \if a\abc \else\null\vfill\eject\fi
157 \end}
160 % we won't be using math mode much, so redefine some of the characters
161 % we might want to talk about
162 \catcode`\^=12
163 \catcode`\_=12
165 \chardef\\=`\\
166 \chardef\{=`\{
167 \chardef\}=`\}
169 \hyphenation{mini-buf-fer}
170 \hyphenation{de-le-tion}
172 \parindent 0pt
173 \parskip 1ex plus .5ex minus .5ex
175 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
177 % newcolumn - force a new column. Use sparingly, probably only for
178 % the first column of a page, which should have a title anyway.
179 \outer\def\newcolumn{\vfill\eject}
181 % title - page title. Argument is title text.
182 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
184 % section - new major section. Argument is section name.
185 \outer\def\section#1{\par\filbreak
186 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
187 \vskip 2ex plus 1ex minus 1.5ex}
189 \newdimen\keyindent
191 % beginindentedkeys...endindentedkeys - key definitions will be
192 % indented, but running text, typically used as headings to group
193 % definitions, will not.
194 \def\beginindentedkeys{\keyindent=1em}
195 \def\endindentedkeys{\keyindent=0em}
196 \endindentedkeys
198 % paralign - begin paragraph containing an alignment.
199 % If an \halign is entered while in vertical mode, a parskip is never
200 % inserted. Using \paralign instead of \halign solves this problem.
201 \def\paralign{\vskip\parskip\halign}
203 % \<...> - surrounds a variable name in a code example
204 \def\<#1>{{\it #1\/}}
206 % kbd - argument is characters typed literally. Like the Texinfo command.
207 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows
209 % beginexample...endexample - surrounds literal text, such a code example.
210 % typeset in a typewriter font with line breaks preserved
211 \def\beginexample{\par\leavevmode\begingroup
212 \obeylines\obeyspaces\parskip0pt\tt}
213 {\obeyspaces\global\let =\ }
214 \def\endexample{\endgroup}
216 % key - definition of a key.
217 % \key{description of key}{key-name}
218 % prints the description left-justified, and the key-name in a \kbd
219 % form near the right margin.
220 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop
221 {\hsize=.75\hsize\rightskip=1em
222 \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
224 \newbox\metaxbox
225 \setbox\metaxbox\hbox{\kbd{M-x }}
226 \newdimen\metaxwidth
227 \metaxwidth=\wd\metaxbox
229 % metax - definition of a M-x command.
230 % \metax{description of command}{M-x command-name}
231 % Tries to justify the beginning of the command name at the same place
232 % as \key starts the key name. (The "M-x " sticks out to the left.)
233 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
234 {\hskip\keyindent\relax#1\hfil}%
235 \hskip -\metaxwidth minus 1fil
236 \kbd{#2}\hfil}}
238 % threecol - like "key" but with two key names.
239 % for example, one for doing the action backward, and one for forward.
240 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad
241 &\kbd{#3}\hfil\quad\cr}
243 % I cannot figure out how to make all dired-x
244 % commands fit on a page in two-column format
245 \def\dx{{\bf (DX)}}
247 %**end of header
250 \title{Referenční karta pro Dired}
252 \centerline{(určeno pro Dired v GNU Emacsu \versionemacs)}
253 \centerline{Příkazy označené \dx{} vyžadují dired-x}
255 % trim this down to fit everything on one page
256 % \section{General}
257 % In dired, you can edit a list of the files in a directory (and optionally
258 % its subdirectories in the `ls -lR' format).
260 % Editing a directory means that you can visit, rename, copy, compress,
261 % load, byte-compile files. You can change files' attributes, run shell
262 % commands on files, or insert subdirectories into the edit buffer. You can
263 % "flag" files for deletion or "mark" files for later commands, either one
264 % file at a time or by all files matching certain criteria (e.g., files that
265 % match a certain regexp).
267 % You move throughout the buffer using the usual cursor motion commands.
268 % Letters no longer insert themselves, but execute commands instead. The
269 % digits (0-9) are prefix arguments.
271 % Most commands operate either on all marked files or on the current file if
272 % no files are marked. Use a numeric prefix argument to operate on the next
273 % ARG files (or previous ARG if ARG $<$ 0). Use the prefix argument `1' to
274 % operate on the current file only. Prefix arguments override marks. Commands
275 % which run a sub-process on a group of files will display a list of files
276 % for which the sub-process failed. Typing y will try to tell
277 % you what went wrong.
279 % When editing several directories in one buffer, each directory acts as a
280 % page, so C-x [ and C-x ] can be used to move between directories.
282 \section{Spuštění a ukončení Dired}
284 \key{spuštění dired}{C-x d}
285 \key{spuštění dired v adresáři s aktuálním souborem}{C-x C-j \dx}
286 \key{ukončení dired}{q}
288 \section{Příkazy pro přesuny}
290 \key{zpět na předchozí řádku}{p}
291 \key{vpřed na následující řádku}{n}
292 \key{nahoru na předchozí adresář}{<}
293 \key{dolů na následující adresář}{>}
294 \key{na další označený soubor}{M-\}}
295 \key{na předchozí označený soubor}{M-\{}
296 \key{zpět na předchozí podadresář}{M-C-p}
297 \key{vpřed na další podadresář}{M-C-n}
298 \key{na nadřazený adresář}{^}
299 \key{jdi na první podadresář}{M-C-d}
301 \section{Příkazy pomocí myši}
302 \metax{otevři soubor}{Mouse_Button_2}
303 \metax{zobraz menu}{Control-Mouse_Button_3}
305 \section{Okamžité akce nad soubory}
307 \key{otevři aktuální soubor}{f}
308 \key{otevři aktuální soubor pouze pro čtení}{v}
309 \key{otevři aktuální soubor v jiném okně}{o}
310 %%\key{otevři aktuální soubor v jiném rámci}{w}
311 %%\key{zobraz aktuální soubor}{C-u o}
312 \key{vytvoř nový podadresář}{+}
313 \key{porovnej soubor pod kurzorem s označeným}{=}
315 \section{Značení a odznačení souborů}
317 \key{označ soubor nebo podadresář pro další příkazy}{m}
318 \key{odznač soubor nebo soubory podadresáře}{u}
319 \key{zruš označení všech souborů v bufferu}{M-delete}
320 \key{označ soubory se zadanou příponou}{* .}
321 \key{označ všechny adresáře}{* /}
322 \key{označ všechny symbolické odkazy}{* @}
323 \key{označ všechny spustitelné soubory}{* *}
324 \key{invertuj označení}{* t}
325 \key{označ všechny soubory v aktuálním podadresáři}{* s}
326 \key{označ soubory vyhovující regulárnímu výrazu}{* \%}
327 \key{změň značku na jiné písmeno}{* c}
328 \key{označ soubory, pro které elispový výraz vrací t}{* ( \dx}
330 \section{Modifikace Dired bufferu}
332 \key{vlož do tohoto bufferu podadresář}{i}
333 \key{odstraň označené soubory z bufferu}{k}
334 \key{odstraň z bufferu výpis podadresáře}{C-u k}
335 \key{znovu načti adresáře (značky se zachovají)}{g}
336 \key{přepni třídění adresáře podle jména/data}{s}
337 \key{uprav volby příkazu ls}{C-u s}
338 \key{obnov značky, skryté řádky apod.}{C-_}
339 \key{skryj všechny podadresáře}{M-\$}
340 \key{skryj nebo odkryj všechny podadresáře}{\$}
342 \section{Příkazy nad označenými soubory}
344 \key{kopíruj soubor(y)}{C}
345 \key{přejmenuj soubor nebo přesuň soubory}{R}
346 \key{změň vlastníka souboru(ů)}{O}
347 \key{změň skupinu souboru(ů)}{G}
348 \key{změň přístupová práva souboru(ů)}{M}
349 \key{vytiskni soubor(y)}{P}
350 \key{změň název souboru(ů) na malá písmena}{\% l}
351 \key{změň název souboru(ů) na velká písmena}{\% u}
352 \key{smaž označené soubory}{D}
353 %%\key{proveď uuencode nebo uudecode souboru(ů)}{U}
354 \key{zkomprimuj nebo dekomprimuj soubor(y)}{Z}
355 \key{spusť info na soubor}{I \dx}
356 \key{vytvoř symbolický(é) odkaz(y)}{S}
357 \key{vytvoř relativní symbolické odkazy}{Y}
358 \key{vytvoř pevný odkaz}{H}
359 \key{prohledej soubory na regulární výraz}{A}
360 \key{nahraď regulární výrazy}{Q}
361 \key{přelož soubory (byte-compile)}{B}
362 \key{načti soubory (load-file)}{L}
363 \key{spusť příkaz na soubor(y)}{!}
365 \section{Označení souborů pro smazání}
366 \leftline{\bf Odznačující příkazy mažou značku pro smazání}
367 \key{označ soubor pro smazání}{d}
368 %%\key{odstraň značku pro smazání}{delete}
369 \key{označ všechny zálohy (soubory končící na \~{})}{\~{}}
370 \key{označ všechny zálohy (auto-save)}{\#}
371 \key{označ různé dočasné soubory}{\% \&}
372 \key{označ číslované zálohy (končící na .\~{}1\~{} apod.)}{.}
373 \key{proveď výmaz souborů označených ke smazání}{x}
374 \key{označ soubory vyhovující regulárnímu výrazu}{\% d}
376 \section{Příkazy s regulárními výrazy}
378 \key{označ soubory vyhovující regulárnímu výrazu}{\% m}
379 \key{kopíruj označené soubory obsahující regexp}{\% C}
380 \key{přejmenuj označené soubory vyhovující regexp}{\% R}
381 \key{pevný odkaz}{\% H}
382 \key{symbolický odkaz}{\% S}
383 \key{symbolický odkaz s relativní cestou}{\% Y}
384 \key{označ pro smazání}{\% d}
386 \section{Dired a Find}
387 \metax{otevři v dired soubory vyhovující vzorku}{M-x find-name-dired}
388 \metax{otevři v dired soubory obsahující vzorek}{M-x find-grep-dired}
389 \metax{otevři v dired soubory podle výstupu \kbd{find}}{M-x find-dired}
391 \section{Nápověda}
393 \key{zobraz nápovědu}{h}
394 \key{přehled příkazů dired}{?}
396 \copyrightnotice
398 \bye