Switch to recommended form of GPLv3 permissions notice.
[bpt/emacs.git] / etc / refcards / sk-dired-ref.tex
1 % Reference Card for Dired
2 % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005,
3 % 2006, 2007, 2008 Free Software Foundation, Inc.
4
5 % Slovak hyphenation rules applied
6 \shyph
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 of the License, or
13 % (at your option) 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. If not, see <http://www.gnu.org/licenses/>.
22
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
26
27 \newcount\columnsperpage
28
29 \columnsperpage=2
30
31 % PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for
32 % a landscape layout.
33
34 \input pdflayout.sty
35 \pdflayout=(0)
36
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.
41
42 % This is a bit of a dirty hack on the GNU Emacs reference card
43 % to produce a Dired reference card instead.
44
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.
49
50 % Translated to Czech by Pavel Janík <Pavel@Janik.cz> in March 2001
51 % Translated to Slovak by Miroslav Vasko <vasko@debian.cz> in March 2001
52
53 % Process the file with `csplain' from the `CSTeX' distribution (included
54 % e.g. in the TeX Live CD).
55
56 \def\versionnumber{0.1}
57 \def\versionemacs{22}
58 \def\year{2008}
59 \def\version{May 2006\ v\versionnumber}
60
61 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
62 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
63 Permissions on back. v\versionnumber}}
64
65 \def\copyrightnotice{
66 \vskip 1ex plus 2 fill\begingroup\small
67 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
68 \centerline{designed by Stephen Gildea, \version}
69 \centerline{for GNU Emacs version \versionemacs{} on Unix systems}
70 \centerline{Updated for Dired in May 2000 by Evgeny Roubinchtein}
71
72 Permission is granted to make and distribute copies of
73 this card provided the copyright notice and this permission notice
74 are preserved on all copies.
75
76 For copies of the GNU Emacs manual, write to the Free Software
77 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
78 MA 02110-1301, USA.
79
80 \endgroup}
81
82 % make \bye not \outer so that the \def\bye in the \else clause below
83 % can be scanned without complaint.
84 \def\bye{\par\vfill\supereject\end}
85
86 \newdimen\intercolumnskip %horizontal space between columns
87 \newbox\columna %boxes to hold columns already built
88 \newbox\columnb
89
90 \def\ncolumns{\the\columnsperpage}
91
92 \message{[\ncolumns\space
93 column\if 1\ncolumns\else s\fi\space per page]}
94
95 \def\scaledmag#1{ scaled \magstep #1}
96
97 % This multi-way format was designed by Stephen Gildea October 1986.
98 % Note that the 1-column format is fontfamily-independent.
99 \if 1\ncolumns %one-column format uses normal size
100 \hsize 4in
101 \vsize 10in
102 \voffset -.7in
103 \font\titlefont=\fontname\tenbf \scaledmag3
104 \font\headingfont=\fontname\tenbf \scaledmag2
105 \font\smallfont=\fontname\sevenrm
106 \font\smallsy=\fontname\sevensy
107
108 \footline{\hss\folio}
109 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
110 \else %2 or 3 columns uses prereduced size
111 \hsize 3.4in
112 \vsize 9.2in
113 \hoffset -.75in
114 \voffset -.745in
115 \font\titlefont=csbx10 \scaledmag2
116 \font\headingfont=csbx10 \scaledmag1
117 \font\smallfont=csr6
118 \font\smallsy=cmsy6
119 \font\eightrm=csr8
120 \font\eightbf=csbx8
121 \font\eightit=csti8
122 \font\eighttt=cstt8
123 \font\eightmi=csmi8
124 \font\eightsy=cmsy8
125 \textfont0=\eightrm
126 \textfont1=\eightmi
127 \textfont2=\eightsy
128 \def\rm{\eightrm}
129 \def\bf{\eightbf}
130 \def\it{\eightit}
131 \def\tt{\eighttt}
132 \normalbaselineskip=.8\normalbaselineskip
133 \normallineskip=.8\normallineskip
134 \normallineskiplimit=.8\normallineskiplimit
135 \normalbaselines\rm %make definitions take effect
136
137 \if 2\ncolumns
138 \let\maxcolumn=b
139 \footline{\hss\rm\folio\hss}
140 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
141 \else \if 3\ncolumns
142 \let\maxcolumn=c
143 \nopagenumbers
144 \else
145 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
146 \errmessage{Illegal number of columns per page}
147 \fi\fi
148
149 \intercolumnskip=.46in
150 \def\abc{a}
151 \output={% %see The TeXbook page 257
152 % This next line is useful when designing the layout.
153 %\immediate\write16{Column \folio\abc\space starts with \firstmark}
154 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
155 \else\if a\abc
156 \global\setbox\columna\columnbox \global\def\abc{b}
157 %% in case we never use \columnb (two-column mode)
158 \global\setbox\columnb\hbox to -\intercolumnskip{}
159 \else
160 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
161 \def\multicolumnformat{\shipout\vbox{\makeheadline
162 \hbox{\box\columna\hskip\intercolumnskip
163 \box\columnb\hskip\intercolumnskip\columnbox}
164 \makefootline}\advancepageno}
165 \def\columnbox{\leftline{\pagebody}}
166
167 \def\bye{\par\vfill\supereject
168 \if a\abc \else\null\vfill\eject\fi
169 \if a\abc \else\null\vfill\eject\fi
170 \end}
171 \fi
172
173 % we won't be using math mode much, so redefine some of the characters
174 % we might want to talk about
175 \catcode`\^=12
176 \catcode`\_=12
177
178 \chardef\\=`\\
179 \chardef\{=`\{
180 \chardef\}=`\}
181
182 \hyphenation{mini-buf-fer}
183 \hyphenation{de-le-tion}
184
185 \parindent 0pt
186 \parskip 1ex plus .5ex minus .5ex
187
188 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
189
190 % newcolumn - force a new column. Use sparingly, probably only for
191 % the first column of a page, which should have a title anyway.
192 \outer\def\newcolumn{\vfill\eject}
193
194 % title - page title. Argument is title text.
195 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
196
197 % section - new major section. Argument is section name.
198 \outer\def\section#1{\par\filbreak
199 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
200 \vskip 2ex plus 1ex minus 1.5ex}
201
202 \newdimen\keyindent
203
204 % beginindentedkeys...endindentedkeys - key definitions will be
205 % indented, but running text, typically used as headings to group
206 % definitions, will not.
207 \def\beginindentedkeys{\keyindent=1em}
208 \def\endindentedkeys{\keyindent=0em}
209 \endindentedkeys
210
211 % paralign - begin paragraph containing an alignment.
212 % If an \halign is entered while in vertical mode, a parskip is never
213 % inserted. Using \paralign instead of \halign solves this problem.
214 \def\paralign{\vskip\parskip\halign}
215
216 % \<...> - surrounds a variable name in a code example
217 \def\<#1>{{\it #1\/}}
218
219 % kbd - argument is characters typed literally. Like the Texinfo command.
220 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows
221
222 % beginexample...endexample - surrounds literal text, such a code example.
223 % typeset in a typewriter font with line breaks preserved
224 \def\beginexample{\par\leavevmode\begingroup
225 \obeylines\obeyspaces\parskip0pt\tt}
226 {\obeyspaces\global\let =\ }
227 \def\endexample{\endgroup}
228
229 % key - definition of a key.
230 % \key{description of key}{key-name}
231 % prints the description left-justified, and the key-name in a \kbd
232 % form near the right margin.
233 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop
234 {\hsize=.75\hsize\rightskip=1em
235 \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
236
237 \newbox\metaxbox
238 \setbox\metaxbox\hbox{\kbd{M-x }}
239 \newdimen\metaxwidth
240 \metaxwidth=\wd\metaxbox
241
242 % metax - definition of a M-x command.
243 % \metax{description of command}{M-x command-name}
244 % Tries to justify the beginning of the command name at the same place
245 % as \key starts the key name. (The "M-x " sticks out to the left.)
246 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
247 {\hskip\keyindent\relax#1\hfil}%
248 \hskip -\metaxwidth minus 1fil
249 \kbd{#2}\hfil}}
250
251 % threecol - like "key" but with two key names.
252 % for example, one for doing the action backward, and one for forward.
253 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad
254 &\kbd{#3}\hfil\quad\cr}
255
256 % I cannot figure out how to make all dired-x
257 % commands fit on a page in two-column format
258 \def\dx{{\bf (DX)}}
259
260 \nopagenumbers
261
262 %**end of header
263 \f
264
265 \title{Referenèná karta pre Dired}
266
267 \centerline{(urèené pre Dired v GNU Emacse \versionemacs.x)}
268 \centerline{Príkazy oznaèené \dx{} vy¾adujú dired-x}
269
270 % trim this down to fit everything on one page
271 % \section{General}
272 % In dired, you can edit a list of the files in a directory (and optionally
273 % its subdirectories in the `ls -lR' format).
274
275 % Editing a directory means that you can visit, rename, copy, compress,
276 % load, byte-compile files. You can change files' attributes, run shell
277 % commands on files, or insert subdirectories into the edit buffer. You can
278 % "flag" files for deletion or "mark" files for later commands, either one
279 % file at a time or by all files matching certain criteria (e.g., files that
280 % match a certain regexp).
281
282 % You move throughout the buffer using the usual cursor motion commands.
283 % Letters no longer insert themselves, but execute commands instead. The
284 % digits (0-9) are prefix arguments.
285
286 % Most commands operate either on all marked files or on the current file if
287 % no files are marked. Use a numeric prefix argument to operate on the next
288 % ARG files (or previous ARG if ARG $<$ 0). Use the prefix argument `1' to
289 % operate on the current file only. Prefix arguments override marks. Commands
290 % which run a sub-process on a group of files will display a list of files
291 % for which the sub-process failed. Typing y will try to tell
292 % you what went wrong.
293
294 % When editing several directories in one buffer, each directory acts as a
295 % page, so C-x [ and C-x ] can be used to move between directories.
296
297 \section{Spustenie a ukonèenie Dired}
298
299 \key{spustenie dired}{C-x d}
300 \key{spustenie dired v adresári s aktuálnym súborom}{C-x C-j \dx}
301 \key{ukonèenie dired}{q}
302
303 \section{Príkazy pre presuny}
304
305 \key{spä» na predchádzajúci riadok}{p}
306 \key{vpred na nasledujúci riadok}{n}
307 \key{hore na predchádzajúci adresár}{<}
308 \key{dole na nasledujúci adresár}{>}
309 \key{na ïal¹í oznaèený súbor}{M-\}}
310 \key{na predchádzajúci oznaèený súbor}{M-\{}
311 \key{spä» na predchádzajúci podadresár}{M-C-p}
312 \key{vpred na ïal¹í podadresár}{M-C-n}
313 \key{na nadradený adresár}{^}
314 \key{choï na prvý podadresár}{M-C-d}
315
316 \section{Príkazy pomocou my¹i}
317 \metax{otvor súbor}{Mouse_Button_2}
318 \metax{zobraz menu}{Control-Mouse_Button_3}
319
320 \section{Okam¾ité akcie nad súbormi}
321
322 \key{otvor aktuálny súbor}{f}
323 \key{otvor aktuálny súbor iba pre èítanie}{v}
324 \key{otvor aktuálny súbor v inom okne}{o}
325 \key{otvor aktuálny súbor v inom rámci}{w}
326 \key{zobraz aktuálny súbor}{C-u o}
327 \key{vytvor nový podadresár}{+}
328 \key{porovnaj súbor pod kurzorom s oznaèeným}{=}
329
330 \section{Oznaèovanie a odznaèovanie súborov}
331
332 \key{oznaè súbor alebo podadresár pre ïal¹ie príkazy}{m}
333 \key{odznaè súbor alebo súbory podadresáre}{u}
334 \key{zru¹ oznaèenie v¹etkých súborov v bufferi}{M-delete}
335 \key{oznaè súbory so zadanou príponou}{* .}
336 \key{oznaè v¹etky adresáre}{* /}
337 \key{oznaè v¹etky symbolické odkazy}{* @}
338 \key{oznaè v¹etky spustiteµné súbory}{* *}
339 \key{invertuj oznaèenie}{* t}
340 \key{oznaè v¹etky súbory v aktuálnom podadresári}{* s}
341 \key{oznaè súbory vyhovujíce regulárnemu výrazu}{* \%}
342 \key{zmeò znaèku na iné písmeno}{* c}
343 \key{oznaè súbory, pre ktoré elispový výraz vrací t}{* ( \dx}
344
345 \section{Modifikácia Dired bufferu}
346
347 \key{vlo¾ do tohto bufferu podadresár}{i}
348 \key{odstráò oznaèené súbory z bufferu}{k}
349 \key{odstráò z bufferu výpis podadresára}{C-u k}
350 \key{znovu naèítaj adresár (znaèky sa zachovajú)}{g}
351 \key{prepni triedenie adresára podµa mena/dátumu}{s}
352 \key{uprav voµby príkazu ls}{C-u s}
353 \key{obnov znaèky, skryté riadky a~pod.}{C-_}
354 \key{skry v¹etky podadresáre}{M-\$}
355 \key{skry alebo odkry v¹etky podadresáre}{\$}
356
357 \section{Príkazy nad oznaèenými súbormi}
358
359 \key{kopíruj súbor(y)}{C}
360 \key{premenuj súbor alebo presuò súbory}{R}
361 \key{zmeò vlastníka súboru(ov)}{O}
362 \key{zmeò skupinu súboru(ov)}{G}
363 \key{zmeò prístupové práva súboru(ov)}{M}
364 \key{vytlaè súbor(y)}{P}
365 \key{zmeò názov súboru(ov) na malé písmená}{\% l}
366 \key{zmeò názov súboru(ov) na veµké písmená}{\% u}
367 \key{zma¾ oznaèené súbory}{X}
368 \key{vykonaj uuencode alebo uudecode súboru(ov)}{U}
369 \key{skomprimuj alebo dekomprimuj súbor(y)}{Z}
370 \key{spusti info na súbore}{I \dx}
371 \key{vytvor symbolický(é) odkaz(y)}{S}
372 \key{vytvor relatívne symbolické odkazy}{Y}
373 \key{vytvor pevný odkaz}{H}
374 \key{prehµadaj súbory -- hµadaj regulárny výraz}{A}
375 \key{nahraï regulárne výrazy}{Q}
376 \key{prelo¾ súbory (byte-compile)}{B}
377 \key{naèítaj súbory (load-file)}{L}
378 \key{spusti príkaz nad súborom(mi)}{!}
379
380 \section{Oznaèenie súborov pre zmazanie}
381
382 \leftline{\bf Odznaèujúce príkazy ma¾ú znaèku pre zmazanie}
383 \key{oznaè súbor pre zmazanie}{d}
384 \key{odstráò znaèku pre zmazanie}{delete}
385 \key{oznaè v¹etky zálohy (súbory konèiace na \~{})}{\~{}}
386 \key{oznaè v¹etky zálohy (auto-save)}{\#}
387 \key{oznaè rôzne doèasné súbory}{\&}
388 \key{oznaè èíslované zálohy (konèiace na .\~{}1\~{} a~pod.)}{.}
389 \key{vyma¾ súbory oznaèené na zmazanie}{x}
390 \key{oznaè súbory vyhovujúce regulárnemu výrazu}{\% d}
391
392 \section{Príkazy s regulárnymi výrazmi}
393
394 \key{oznaè súbory vyhovujúce regulárnemu výrazu}{\% m}
395 \key{skopíruj oznaèené súbory obsahujúce regexp}{\% C}
396 \key{premenuj oznaèené súbory vyhovujúce regexp}{\% R}
397 \key{pevný odkaz}{\% H}
398 \key{symbolický odkaz}{\% S}
399 \key{symbolický odkaz s relatívnou cestou}{\% Y}
400 \key{oznaè pre zmazanie}{\% d}
401
402 \section{Dired a Find}
403 \metax{otvor v dired súbory vyhovujúce vzorke}{M-x find-name-dired}
404 \metax{otvor v dired súbory obsahujúce vzorku}{M-x find-grep-dired}
405 \metax{otvor v dired súbory podµa výstupu \kbd{find}}{M-x find-dired}
406
407 \section{Nápoveda}
408
409 \key{zobraz nápovedu}{h}
410 \key{prehµad príkazov dired}{?}
411
412 \copyrightnotice
413
414 \bye
415 \f
416 % Local variables:
417 % compile-command: "csplain sk-dired-ref"
418 % End:
419
420 % arch-tag: d5b57e24-16ec-4981-9315-14d3d16d3062