1 % Reference Card for Dired
3 % Copyright (C) 2000-2012 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 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/>.
27 % Process the file with `csplain' from the `CSTeX' distribution (included
28 % e.g. in the TeX Live CD).
32 % Slovak hyphenation rules applied
35 % This file can be printed with 1, 2, or 3 columns per page.
36 % Specify how many you want here.
37 \newcount\columnsperpage
40 % PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for
47 % Nothing else needs to be changed.
49 \def\shortcopyrightnotice{\vskip 1ex plus
2 fill
50 \centerline{\small \copyright\
\year\ Free Software Foundation, Inc.
51 Permissions on back.
}}
54 \vskip 1ex plus
2 fill
\begingroup\small
55 \centerline{Copyright
\copyright\
\year\ Free Software Foundation, Inc.
}
56 \centerline{For GNU Emacs version
\versionemacs}
57 \centerline{Originally written May
2000 by Evgeny Roubinchtein,
}
58 \centerline{using refcard layout designed by Stephen Gildea.
}
59 \centerline{Translated by Miroslav Va¹ko.
}
61 Permission is granted to make and distribute copies of
62 this card provided the copyright notice and this permission notice
63 are preserved on all copies.
65 For copies of the GNU Emacs manual, see:
67 {\tt http://www.gnu.org/software/emacs/\#Manuals
}
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
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
91 \font\titlefont=
\fontname\tenbf \scaledmag3
92 \font\headingfont=
\fontname\tenbf \scaledmag2
93 \font\smallfont=
\fontname\sevenrm
94 \font\smallsy=
\fontname\sevensy
97 \def\makefootline{\baselineskip10pt\hsize6.5in
\line{\the\footline}}
98 \else %2 or 3 columns uses prereduced size
103 \font\titlefont=csbx10
\scaledmag2
104 \font\headingfont=csbx10
\scaledmag1
120 \normalbaselineskip=
.8\normalbaselineskip
121 \normallineskip=
.8\normallineskip
122 \normallineskiplimit=
.8\normallineskiplimit
123 \normalbaselines\rm %make definitions take effect
127 \footline{\hss\rm\folio\hss}
128 \def\makefootline{\vskip 2in
\hsize=
6.86in
\line{\the\footline}}
133 \errhelp{You must set
\columnsperpage equal to
1,
2, or
3.
}
134 \errmessage{Illegal number of columns per page
}
137 \intercolumnskip=
.46in
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
}
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{}
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
161 % we won't be using math mode much, so redefine some of the characters
162 % we might want to talk about
170 \hyphenation{mini-buf-fer
}
171 \hyphenation{de-le-tion
}
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
}
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
}
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}}
226 \setbox\metaxbox\hbox{\kbd{M-x
}}
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
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
253 \title{Referenèná karta pre Dired
}
255 \centerline{(urèené pre Dired v GNU Emacse
\versionemacs)
}
256 \centerline{Príkazy oznaèené
\dx{} vy¾adujú dired-x
}
258 % trim this down to fit everything on one page
260 % In dired, you can edit a list of the files in a directory (and optionally
261 % its subdirectories in the `ls -lR' format).
263 % Editing a directory means that you can visit, rename, copy, compress,
264 % load, byte-compile files. You can change files' attributes, run shell
265 % commands on files, or insert subdirectories into the edit buffer. You can
266 % "flag" files for deletion or "mark" files for later commands, either one
267 % file at a time or by all files matching certain criteria (e.g., files that
268 % match a certain regexp).
270 % You move throughout the buffer using the usual cursor motion commands.
271 % Letters no longer insert themselves, but execute commands instead. The
272 % digits (0-9) are prefix arguments.
274 % Most commands operate either on all marked files or on the current file if
275 % no files are marked. Use a numeric prefix argument to operate on the next
276 % ARG files (or previous ARG if ARG $<$ 0). Use the prefix argument `1' to
277 % operate on the current file only. Prefix arguments override marks. Commands
278 % which run a sub-process on a group of files will display a list of files
279 % for which the sub-process failed. Typing y will try to tell
280 % you what went wrong.
282 % When editing several directories in one buffer, each directory acts as a
283 % page, so C-x [ and C-x ] can be used to move between directories.
285 \section{Spustenie a ukonèenie Dired
}
287 \key{spustenie dired
}{C-x d
}
288 \key{spustenie dired v adresári s aktuálnym súborom
}{C-x C-j
\dx}
289 \key{ukonèenie dired
}{q
}
291 \section{Príkazy pre presuny
}
293 \key{spä» na predchádzajúci riadok
}{p
}
294 \key{vpred na nasledujúci riadok
}{n
}
295 \key{hore na predchádzajúci adresár
}{<
}
296 \key{dole na nasledujúci adresár
}{>
}
297 \key{na ïal¹í oznaèený súbor
}{M-\
}}
298 \key{na predchádzajúci oznaèený súbor
}{M-\
{}
299 \key{spä» na predchádzajúci podadresár
}{M-C-p
}
300 \key{vpred na ïal¹í podadresár
}{M-C-n
}
301 \key{na nadradený adresár
}{^
}
302 \key{choï na prvý podadresár
}{M-C-d
}
304 \section{Príkazy pomocou my¹i
}
305 \metax{otvor súbor
}{Mouse_Button_2
}
306 \metax{zobraz menu
}{Control-Mouse_Button_3
}
308 \section{Okam¾ité akcie nad súbormi
}
310 \key{otvor aktuálny súbor
}{f
}
311 \key{otvor aktuálny súbor iba pre èítanie
}{v
}
312 \key{otvor aktuálny súbor v inom okne
}{o
}
313 %%\key{otvor aktuálny súbor v inom rámci}{w}
314 %%\key{zobraz aktuálny súbor}{C-u o}
315 \key{vytvor nový podadresár
}{+
}
316 \key{porovnaj súbor pod kurzorom s oznaèeným
}{=
}
318 \section{Oznaèovanie a odznaèovanie súborov
}
320 \key{oznaè súbor alebo podadresár pre ïal¹ie príkazy
}{m
}
321 \key{odznaè súbor alebo súbory podadresáre
}{u
}
322 \key{zru¹ oznaèenie v¹etkých súborov v bufferi
}{M-delete
}
323 \key{oznaè súbory so zadanou príponou
}{* .
}
324 \key{oznaè v¹etky adresáre
}{* /
}
325 \key{oznaè v¹etky symbolické odkazy
}{* @
}
326 \key{oznaè v¹etky spustiteµné súbory
}{* *
}
327 \key{invertuj oznaèenie
}{* t
}
328 \key{oznaè v¹etky súbory v aktuálnom podadresári
}{* s
}
329 \key{oznaè súbory vyhovujíce regulárnemu výrazu
}{* \%
}
330 \key{zmeò znaèku na iné písmeno
}{* c
}
331 \key{oznaè súbory, pre ktoré elispový výraz vrací t
}{* (
\dx}
333 \section{Modifikácia Dired bufferu
}
335 \key{vlo¾ do tohto bufferu podadresár
}{i
}
336 \key{odstráò oznaèené súbory z bufferu
}{k
}
337 \key{odstráò z bufferu výpis podadresára
}{C-u k
}
338 \key{znovu naèítaj adresár (znaèky sa zachovajú)
}{g
}
339 \key{prepni triedenie adresára podµa mena/dátumu
}{s
}
340 \key{uprav voµby príkazu ls
}{C-u s
}
341 \key{obnov znaèky, skryté riadky a~pod.
}{C-_
}
342 \key{skry v¹etky podadresáre
}{M-\$
}
343 \key{skry alebo odkry v¹etky podadresáre
}{\$
}
345 \section{Príkazy nad oznaèenými súbormi
}
347 \key{kopíruj súbor(y)
}{C
}
348 \key{premenuj súbor alebo presuò súbory
}{R
}
349 \key{zmeò vlastníka súboru(ov)
}{O
}
350 \key{zmeò skupinu súboru(ov)
}{G
}
351 \key{zmeò prístupové práva súboru(ov)
}{M
}
352 \key{vytlaè súbor(y)
}{P
}
353 \key{zmeò názov súboru(ov) na malé písmená
}{\% l
}
354 \key{zmeò názov súboru(ov) na veµké písmená
}{\% u
}
355 \key{zma¾ oznaèené súbory
}{D
}
356 %%\key{vykonaj uuencode alebo uudecode súboru(ov)}{U}
357 \key{skomprimuj alebo dekomprimuj súbor(y)
}{Z
}
358 \key{spusti info na súbore
}{I
\dx}
359 \key{vytvor symbolický(é) odkaz(y)
}{S
}
360 \key{vytvor relatívne symbolické odkazy
}{Y
}
361 \key{vytvor pevný odkaz
}{H
}
362 \key{prehµadaj súbory -- hµadaj regulárny výraz
}{A
}
363 \key{nahraï regulárne výrazy
}{Q
}
364 \key{prelo¾ súbory (byte-compile)
}{B
}
365 \key{naèítaj súbory (load-file)
}{L
}
366 \key{spusti príkaz nad súborom(mi)
}{!
}
368 \section{Oznaèenie súborov pre zmazanie
}
370 \leftline{\bf Odznaèujúce príkazy ma¾ú znaèku pre zmazanie
}
371 \key{oznaè súbor pre zmazanie
}{d
}
372 %%\key{odstráò znaèku pre zmazanie}{delete}
373 \key{oznaè v¹etky zálohy (súbory konèiace na \~
{})
}{\~
{}}
374 \key{oznaè v¹etky zálohy (auto-save)
}{\#
}
375 \key{oznaè rôzne doèasné súbory
}{\% \&
}
376 \key{oznaè èíslované zálohy (konèiace na .\~
{}1\~
{} a~pod.)
}{.
}
377 \key{vyma¾ súbory oznaèené na zmazanie
}{x
}
378 \key{oznaè súbory vyhovujúce regulárnemu výrazu
}{\% d
}
380 \section{Príkazy s regulárnymi výrazmi
}
382 \key{oznaè súbory vyhovujúce regulárnemu výrazu
}{\% m
}
383 \key{skopíruj oznaèené súbory obsahujúce regexp
}{\% C
}
384 \key{premenuj oznaèené súbory vyhovujúce regexp
}{\% R
}
385 \key{pevný odkaz
}{\% H
}
386 \key{symbolický odkaz
}{\% S
}
387 \key{symbolický odkaz s relatívnou cestou
}{\% Y
}
388 \key{oznaè pre zmazanie
}{\% d
}
390 \section{Dired a Find
}
391 \metax{otvor v dired súbory vyhovujúce vzorke
}{M-x find-name-dired
}
392 \metax{otvor v dired súbory obsahujúce vzorku
}{M-x find-grep-dired
}
393 \metax{otvor v dired súbory podµa výstupu
\kbd{find
}}{M-x find-dired
}
397 \key{zobraz nápovedu
}{h
}
398 \key{prehµad príkazov dired
}{?
}
405 % compile-command: "csplain sk-dired-ref"