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