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