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