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