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