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