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