; doc/emacs/misc.texi (Network Security): Fix typo.
[emacs.git] / etc / refcards / sk-dired-ref.tex
blob334a51c9cbc2d2e17965ef61a6405ea007616f55
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
7 % Slovak translation: Miroslav Vasko <vasko@debian.cz>, March 2001
9 % This document is free software: you can redistribute it and/or modify
10 % it under the terms of the GNU General Public License as published by
11 % the Free Software Foundation, either version 3 of the License, or
12 % (at your option) any later version.
14 % As a special additional permission, you may distribute reference cards
15 % printed, or formatted for printing, with the notice "Released under
16 % the terms of the GNU General Public License version 3 or later"
17 % instead of the usual distributed-under-the-GNU-GPL notice, and without
18 % a copy of the GPL itself.
20 % This document is distributed in the hope that it will be useful,
21 % but WITHOUT ANY WARRANTY; without even the implied warranty of
22 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 % GNU General Public License for more details.
25 % You should have received a copy of the GNU General Public License
26 % along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
29 % See dired-ref.tex.
31 % Process the file with `csplain' from the `CSTeX' distribution (included
32 % e.g. in the TeX Live CD).
34 %**start of header
36 % Slovak hyphenation rules applied
37 \shyph
39 % This file can be printed with 1, 2, or 3 columns per page.
40 % Specify how many you want here.
41 \newcount\columnsperpage
42 \columnsperpage=2
44 % PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for
45 % a landscape layout.
46 \input pdflayout.sty
47 \pdflayout=(0)
49 \input emacsver.tex
51 % Nothing else needs to be changed.
53 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
54 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
55 Permissions on back.}}
57 \def\copyrightnotice{
58 \vskip 1ex plus 2 fill\begingroup\small
59 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
60 \centerline{For GNU Emacs version \versionemacs}
61 \centerline{Originally written May 2000 by Evgeny Roubinchtein,}
62 \centerline{using refcard layout designed by Stephen Gildea.}
63 \centerline{Translated by Miroslav Vaško.}
65 Released under the terms of the GNU General Public License version 3 or later.
67 For more Emacs documentation, and the \TeX{} source for this card,
68 see the Emacs distribution, or {\tt https://www.gnu.org/software/emacs}
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 \nopagenumbers
251 %**end of header
254 \title{Referenčná karta pre Dired}
256 \centerline{(určené pre Dired v GNU Emacse \versionemacs)}
257 \centerline{Príkazy označené \dx{} vyžadujú dired-x}
259 % trim this down to fit everything on one page
260 % \section{General}
261 % In dired, you can edit a list of the files in a directory (and optionally
262 % its subdirectories in the `ls -lR' format).
264 % Editing a directory means that you can visit, rename, copy, compress,
265 % load, byte-compile files. You can change files' attributes, run shell
266 % commands on files, or insert subdirectories into the edit buffer. You can
267 % "flag" files for deletion or "mark" files for later commands, either one
268 % file at a time or by all files matching certain criteria (e.g., files that
269 % match a certain regexp).
271 % You move throughout the buffer using the usual cursor motion commands.
272 % Letters no longer insert themselves, but execute commands instead. The
273 % digits (0-9) are prefix arguments.
275 % Most commands operate either on all marked files or on the current file if
276 % no files are marked. Use a numeric prefix argument to operate on the next
277 % ARG files (or previous ARG if ARG $<$ 0). Use the prefix argument `1' to
278 % operate on the current file only. Prefix arguments override marks. Commands
279 % which run a sub-process on a group of files will display a list of files
280 % for which the sub-process failed. Typing y will try to tell
281 % you what went wrong.
283 % When editing several directories in one buffer, each directory acts as a
284 % page, so C-x [ and C-x ] can be used to move between directories.
286 \section{Spustenie a ukončenie Dired}
288 \key{spustenie dired}{C-x d}
289 \key{spustenie dired v adresári s aktuálnym súborom}{C-x C-j \dx}
290 \key{ukončenie dired}{q}
292 \section{Príkazy pre presuny}
294 \key{späť na predchádzajúci riadok}{p}
295 \key{vpred na nasledujúci riadok}{n}
296 \key{hore na predchádzajúci adresár}{<}
297 \key{dole na nasledujúci adresár}{>}
298 \key{na ďalší označený súbor}{M-\}}
299 \key{na predchádzajúci označený súbor}{M-\{}
300 \key{späť na predchádzajúci podadresár}{M-C-p}
301 \key{vpred na ďalší podadresár}{M-C-n}
302 \key{na nadradený adresár}{^}
303 \key{choď na prvý podadresár}{M-C-d}
305 \section{Príkazy pomocou myši}
306 \metax{otvor súbor}{Mouse_Button_2}
307 \metax{zobraz menu}{Control-Mouse_Button_3}
309 \section{Okamžité akcie nad súbormi}
311 \key{otvor aktuálny súbor}{f}
312 \key{otvor aktuálny súbor iba pre čítanie}{v}
313 \key{otvor aktuálny súbor v inom okne}{o}
314 %%\key{otvor aktuálny súbor v inom rámci}{w}
315 %%\key{zobraz aktuálny súbor}{C-u o}
316 \key{vytvor nový podadresár}{+}
317 \key{porovnaj súbor pod kurzorom s označeným}{=}
319 \section{Označovanie a odznačovanie súborov}
321 \key{označ súbor alebo podadresár pre ďalšie príkazy}{m}
322 \key{odznač súbor alebo súbory podadresáre}{u}
323 \key{zruš označenie všetkých súborov v bufferi}{M-delete}
324 \key{označ súbory so zadanou príponou}{* .}
325 \key{označ všetky adresáre}{* /}
326 \key{označ všetky symbolické odkazy}{* @}
327 \key{označ všetky spustiteľné súbory}{* *}
328 \key{invertuj označenie}{* t}
329 \key{označ všetky súbory v aktuálnom podadresári}{* s}
330 \key{označ súbory vyhovujíce regulárnemu výrazu}{* \%}
331 \key{zmeň značku na iné písmeno}{* c}
332 \key{označ súbory, pre ktoré elispový výraz vrací t}{* ( \dx}
334 \section{Modifikácia Dired bufferu}
336 \key{vlož do tohto bufferu podadresár}{i}
337 \key{odstráň označené súbory z bufferu}{k}
338 \key{odstráň z bufferu výpis podadresára}{C-u k}
339 \key{znovu načítaj adresár (značky sa zachovajú)}{g}
340 \key{prepni triedenie adresára podľa mena/dátumu}{s}
341 \key{uprav voľby príkazu ls}{C-u s}
342 \key{obnov značky, skryté riadky a~pod.}{C-_}
343 \key{skry všetky podadresáre}{M-\$}
344 \key{skry alebo odkry všetky podadresáre}{\$}
346 \section{Príkazy nad označenými súbormi}
348 \key{kopíruj súbor(y)}{C}
349 \key{premenuj súbor alebo presuň súbory}{R}
350 \key{zmeň vlastníka súboru(ov)}{O}
351 \key{zmeň skupinu súboru(ov)}{G}
352 \key{zmeň prístupové práva súboru(ov)}{M}
353 \key{vytlač súbor(y)}{P}
354 \key{zmeň názov súboru(ov) na malé písmená}{\% l}
355 \key{zmeň názov súboru(ov) na veľké písmená}{\% u}
356 \key{zmaž označené súbory}{D}
357 %%\key{vykonaj uuencode alebo uudecode súboru(ov)}{U}
358 \key{skomprimuj alebo dekomprimuj súbor(y)}{Z}
359 \key{spusti info na súbore}{I \dx}
360 \key{vytvor symbolický(é) odkaz(y)}{S}
361 \key{vytvor relatívne symbolické odkazy}{Y}
362 \key{vytvor pevný odkaz}{H}
363 \key{prehľadaj súbory -- hľadaj regulárny výraz}{A}
364 \key{nahraď regulárne výrazy}{Q}
365 \key{prelož súbory (byte-compile)}{B}
366 \key{načítaj súbory (load-file)}{L}
367 \key{spusti príkaz nad súborom(mi)}{!}
369 \section{Označenie súborov pre zmazanie}
371 \leftline{\bf Odznačujúce príkazy mažú značku pre zmazanie}
372 \key{označ súbor pre zmazanie}{d}
373 %%\key{odstráň značku pre zmazanie}{delete}
374 \key{označ všetky zálohy (súbory končiace na \~{})}{\~{}}
375 \key{označ všetky zálohy (auto-save)}{\#}
376 \key{označ rôzne dočasné súbory}{\% \&}
377 \key{označ číslované zálohy (končiace na .\~{}1\~{} a~pod.)}{.}
378 \key{vymaž súbory označené na zmazanie}{x}
379 \key{označ súbory vyhovujúce regulárnemu výrazu}{\% d}
381 \section{Príkazy s regulárnymi výrazmi}
383 \key{označ súbory vyhovujúce regulárnemu výrazu}{\% m}
384 \key{skopíruj označené súbory obsahujúce regexp}{\% C}
385 \key{premenuj označené súbory vyhovujúce regexp}{\% R}
386 \key{pevný odkaz}{\% H}
387 \key{symbolický odkaz}{\% S}
388 \key{symbolický odkaz s relatívnou cestou}{\% Y}
389 \key{označ pre zmazanie}{\% d}
391 \section{Dired a Find}
392 \metax{otvor v dired súbory vyhovujúce vzorke}{M-x find-name-dired}
393 \metax{otvor v dired súbory obsahujúce vzorku}{M-x find-grep-dired}
394 \metax{otvor v dired súbory podľa výstupu \kbd{find}}{M-x find-dired}
396 \section{Nápoveda}
398 \key{zobraz nápovedu}{h}
399 \key{prehľad príkazov dired}{?}
401 \copyrightnotice
403 \bye
405 % Local variables:
406 % compile-command: "csplain sk-dired-ref"
407 % End: