Mercurial > emacs
annotate etc/cs-dired-ref.tex @ 82359:25c5bc8d8b8e
(update_frame_tool_bar): Use -1 as index
to gtk_toolbar_insert.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Mon, 13 Aug 2007 06:29:41 +0000 |
parents | 713172dcf518 |
children | 1dd7437446ea f55f9811f5d7 |
rev | line source |
---|---|
37387 | 1 % Reference Card for Dired |
75332
87c1080ab25b
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68640
diff
changeset
|
2 % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, |
87c1080ab25b
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68640
diff
changeset
|
3 % 2006, 2007 Free Software Foundation, Inc. |
37387 | 4 |
5 % Czech hyphenation rules applied | |
6 \chyph | |
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 | |
78271
713172dcf518
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
76609
diff
changeset
|
12 % the Free Software Foundation; either version 3, or (at your option) |
37387 | 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 | |
64083 | 22 % the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
23 % Boston, MA 02110-1301, USA. | |
37387 | 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 | |
47 % Process the file with `csplain' from the `CSTeX' distribution (included | |
48 % e.g. in the TeX Live CD). | |
49 | |
50 \def\versionnumber{0.1} | |
76609 | 51 \def\versionemacs{22} |
75332
87c1080ab25b
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68640
diff
changeset
|
52 \def\year{2007} % latest copyright year |
87c1080ab25b
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68640
diff
changeset
|
53 \def\version{May 2006\ v\versionnumber} |
37387 | 54 |
55 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill | |
56 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc. | |
57 Permissions on back. v\versionnumber}} | |
58 | |
59 \def\copyrightnotice{ | |
60 \vskip 1ex plus 2 fill\begingroup\small | |
61 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.} | |
62 \centerline{designed by Stephen Gildea, \version} | |
75337
17b09a1ab319
(copyrightnotice): Add space after \versionemacs.
Glenn Morris <rgm@gnu.org>
parents:
75332
diff
changeset
|
63 \centerline{for GNU Emacs version \versionemacs{} on Unix systems} |
37387 | 64 \centerline{Updated for Dired in May 2000 by Evgeny Roubinchtein} |
65 | |
66 Permission is granted to make and distribute copies of | |
67 this card provided the copyright notice and this permission notice | |
68 are preserved on all copies. | |
69 | |
70 For copies of the GNU Emacs manual, write to the Free Software | |
64092 | 71 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
72 MA 02110-1301, USA. | |
37387 | 73 |
74 \endgroup} | |
75 | |
76 % make \bye not \outer so that the \def\bye in the \else clause below | |
77 % can be scanned without complaint. | |
78 \def\bye{\par\vfill\supereject\end} | |
79 | |
80 \newdimen\intercolumnskip %horizontal space between columns | |
81 \newbox\columna %boxes to hold columns already built | |
82 \newbox\columnb | |
83 | |
84 \def\ncolumns{\the\columnsperpage} | |
85 | |
86 \message{[\ncolumns\space | |
87 column\if 1\ncolumns\else s\fi\space per page]} | |
88 | |
89 \def\scaledmag#1{ scaled \magstep #1} | |
90 | |
91 % This multi-way format was designed by Stephen Gildea October 1986. | |
92 % Note that the 1-column format is fontfamily-independent. | |
93 \if 1\ncolumns %one-column format uses normal size | |
94 \hsize 4in | |
95 \vsize 10in | |
96 \voffset -.7in | |
97 \font\titlefont=\fontname\tenbf \scaledmag3 | |
98 \font\headingfont=\fontname\tenbf \scaledmag2 | |
99 \font\smallfont=\fontname\sevenrm | |
100 \font\smallsy=\fontname\sevensy | |
101 | |
102 \footline{\hss\folio} | |
103 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}} | |
104 \else %2 or 3 columns uses prereduced size | |
105 \hsize 3.4in | |
76193
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
106 \vsize 9.2in |
37387 | 107 \hoffset -.75in |
108 \voffset -.745in | |
109 \font\titlefont=csbx10 \scaledmag2 | |
110 \font\headingfont=csbx10 \scaledmag1 | |
111 \font\smallfont=csr6 | |
112 \font\smallsy=cmsy6 | |
113 \font\eightrm=csr8 | |
114 \font\eightbf=csbx8 | |
115 \font\eightit=csti8 | |
116 \font\eighttt=cstt8 | |
117 \font\eightmi=csmi8 | |
118 \font\eightsy=cmsy8 | |
119 \textfont0=\eightrm | |
120 \textfont1=\eightmi | |
121 \textfont2=\eightsy | |
122 \def\rm{\eightrm} | |
123 \def\bf{\eightbf} | |
124 \def\it{\eightit} | |
125 \def\tt{\eighttt} | |
126 \normalbaselineskip=.8\normalbaselineskip | |
127 \normallineskip=.8\normallineskip | |
128 \normallineskiplimit=.8\normallineskiplimit | |
129 \normalbaselines\rm %make definitions take effect | |
130 | |
131 \if 2\ncolumns | |
132 \let\maxcolumn=b | |
133 \footline{\hss\rm\folio\hss} | |
134 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}} | |
135 \else \if 3\ncolumns | |
136 \let\maxcolumn=c | |
137 \nopagenumbers | |
138 \else | |
139 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.} | |
140 \errmessage{Illegal number of columns per page} | |
141 \fi\fi | |
142 | |
143 \intercolumnskip=.46in | |
144 \def\abc{a} | |
145 \output={% %see The TeXbook page 257 | |
146 % This next line is useful when designing the layout. | |
147 %\immediate\write16{Column \folio\abc\space starts with \firstmark} | |
148 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a} | |
149 \else\if a\abc | |
150 \global\setbox\columna\columnbox \global\def\abc{b} | |
151 %% in case we never use \columnb (two-column mode) | |
152 \global\setbox\columnb\hbox to -\intercolumnskip{} | |
153 \else | |
154 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi} | |
155 \def\multicolumnformat{\shipout\vbox{\makeheadline | |
156 \hbox{\box\columna\hskip\intercolumnskip | |
157 \box\columnb\hskip\intercolumnskip\columnbox} | |
158 \makefootline}\advancepageno} | |
159 \def\columnbox{\leftline{\pagebody}} | |
160 | |
161 \def\bye{\par\vfill\supereject | |
162 \if a\abc \else\null\vfill\eject\fi | |
163 \if a\abc \else\null\vfill\eject\fi | |
164 \end} | |
165 \fi | |
166 | |
167 % we won't be using math mode much, so redefine some of the characters | |
168 % we might want to talk about | |
169 \catcode`\^=12 | |
170 \catcode`\_=12 | |
171 | |
172 \chardef\\=`\\ | |
173 \chardef\{=`\{ | |
174 \chardef\}=`\} | |
175 | |
176 \hyphenation{mini-buf-fer} | |
177 \hyphenation{de-le-tion} | |
178 | |
179 \parindent 0pt | |
180 \parskip 1ex plus .5ex minus .5ex | |
181 | |
182 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip} | |
183 | |
184 % newcolumn - force a new column. Use sparingly, probably only for | |
185 % the first column of a page, which should have a title anyway. | |
186 \outer\def\newcolumn{\vfill\eject} | |
187 | |
188 % title - page title. Argument is title text. | |
189 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex} | |
190 | |
191 % section - new major section. Argument is section name. | |
192 \outer\def\section#1{\par\filbreak | |
193 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}% | |
194 \vskip 2ex plus 1ex minus 1.5ex} | |
195 | |
196 \newdimen\keyindent | |
197 | |
198 % beginindentedkeys...endindentedkeys - key definitions will be | |
199 % indented, but running text, typically used as headings to group | |
200 % definitions, will not. | |
201 \def\beginindentedkeys{\keyindent=1em} | |
202 \def\endindentedkeys{\keyindent=0em} | |
203 \endindentedkeys | |
204 | |
205 % paralign - begin paragraph containing an alignment. | |
206 % If an \halign is entered while in vertical mode, a parskip is never | |
207 % inserted. Using \paralign instead of \halign solves this problem. | |
208 \def\paralign{\vskip\parskip\halign} | |
209 | |
210 % \<...> - surrounds a variable name in a code example | |
211 \def\<#1>{{\it #1\/}} | |
212 | |
213 % kbd - argument is characters typed literally. Like the Texinfo command. | |
214 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows | |
215 | |
216 % beginexample...endexample - surrounds literal text, such a code example. | |
217 % typeset in a typewriter font with line breaks preserved | |
218 \def\beginexample{\par\leavevmode\begingroup | |
219 \obeylines\obeyspaces\parskip0pt\tt} | |
220 {\obeyspaces\global\let =\ } | |
221 \def\endexample{\endgroup} | |
222 | |
223 % key - definition of a key. | |
224 % \key{description of key}{key-name} | |
225 % prints the description left-justified, and the key-name in a \kbd | |
226 % form near the right margin. | |
227 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop | |
228 {\hsize=.75\hsize\rightskip=1em | |
229 \hskip\keyindent\relax#1}\kbd{#2}\hfil}} | |
230 | |
231 \newbox\metaxbox | |
232 \setbox\metaxbox\hbox{\kbd{M-x }} | |
233 \newdimen\metaxwidth | |
234 \metaxwidth=\wd\metaxbox | |
235 | |
236 % metax - definition of a M-x command. | |
237 % \metax{description of command}{M-x command-name} | |
238 % Tries to justify the beginning of the command name at the same place | |
239 % as \key starts the key name. (The "M-x " sticks out to the left.) | |
240 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize | |
241 {\hskip\keyindent\relax#1\hfil}% | |
242 \hskip -\metaxwidth minus 1fil | |
243 \kbd{#2}\hfil}} | |
244 | |
245 % threecol - like "key" but with two key names. | |
246 % for example, one for doing the action backward, and one for forward. | |
247 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad | |
248 &\kbd{#3}\hfil\quad\cr} | |
249 | |
250 % I cannot figure out how to make all dired-x | |
251 % commands fit on a page in two-column format | |
252 \def\dx{{\bf (DX)}} | |
253 | |
254 %**end of header | |
255 | |
256 | |
257 \title{Referenční karta pro Dired} | |
258 | |
75332
87c1080ab25b
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68640
diff
changeset
|
259 \centerline{(určeno pro Dired v GNU Emacsu \versionemacs.x)} |
37387 | 260 \centerline{Příkazy označené \dx{} vyžadují dired-x} |
261 | |
262 % trim this down to fit everything on one page | |
263 % \section{General} | |
264 % In dired, you can edit a list of the files in a directory (and optionally | |
265 % its subdirectories in the `ls -lR' format). | |
266 | |
267 % Editing a directory means that you can visit, rename, copy, compress, | |
268 % load, byte-compile files. You can change files' attributes, run shell | |
269 % commands on files, or insert subdirectories into the edit buffer. You can | |
270 % "flag" files for deletion or "mark" files for later commands, either one | |
271 % file at a time or by all files matching certain criteria (e.g., files that | |
272 % match a certain regexp). | |
273 | |
274 % You move throughout the buffer using the usual cursor motion commands. | |
275 % Letters no longer insert themselves, but execute commands instead. The | |
276 % digits (0-9) are prefix arguments. | |
277 | |
278 % Most commands operate either on all marked files or on the current file if | |
279 % no files are marked. Use a numeric prefix argument to operate on the next | |
280 % ARG files (or previous ARG if ARG $<$ 0). Use the prefix argument `1' to | |
281 % operate on the current file only. Prefix arguments override marks. Commands | |
282 % which run a sub-process on a group of files will display a list of files | |
283 % for which the sub-process failed. Typing y will try to tell | |
284 % you what went wrong. | |
285 | |
286 % When editing several directories in one buffer, each directory acts as a | |
287 % page, so C-x [ and C-x ] can be used to move between directories. | |
288 | |
289 \section{Spuštění a ukončení Dired} | |
290 | |
291 \key{spuštění dired}{C-x d} | |
292 \key{spuštění dired v adresáři s aktuálním souborem}{C-x C-j \dx} | |
293 \key{ukončení dired}{q} | |
294 | |
295 \section{Příkazy pro přesuny} | |
296 | |
297 \key{zpět na předchozí řádku}{p} | |
298 \key{vpřed na následující řádku}{n} | |
299 \key{nahoru na předchozí adresář}{<} | |
300 \key{dolů na následující adresář}{>} | |
301 \key{na další označený soubor}{M-\}} | |
302 \key{na předchozí označený soubor}{M-\{} | |
303 \key{zpět na předchozí podadresář}{M-C-p} | |
304 \key{vpřed na další podadresář}{M-C-n} | |
305 \key{na nadřazený adresář}{^} | |
306 \key{jdi na první podadresář}{M-C-d} | |
307 | |
308 \section{Příkazy pomocí myši} | |
309 \metax{otevři soubor}{Mouse_Button_2} | |
310 \metax{zobraz menu}{Control-Mouse_Button_3} | |
311 | |
312 \section{Okamžité akce nad soubory} | |
313 | |
314 \key{otevři aktuální soubor}{f} | |
315 \key{otevři aktuální soubor pouze pro čtení}{v} | |
316 \key{otevři aktuální soubor v jiném okně}{o} | |
317 \key{otevři aktuální soubor v jiném rámci}{w} | |
318 \key{zobraz aktuální soubor}{C-u o} | |
319 \key{vytvoř nový podadresář}{+} | |
320 \key{porovnej soubor pod kurzorem s označeným}{=} | |
321 | |
322 \section{Značení a odznačení souborů} | |
323 | |
324 \key{označ soubor nebo podadresář pro další příkazy}{m} | |
325 \key{odznač soubor nebo soubory podadresáře}{u} | |
326 \key{zruš označení všech souborů v bufferu}{M-delete} | |
327 \key{označ soubory se zadanou příponou}{* .} | |
328 \key{označ všechny adresáře}{* /} | |
329 \key{označ všechny symbolické odkazy}{* @} | |
330 \key{označ všechny spustitelné soubory}{* *} | |
331 \key{invertuj označení}{* t} | |
332 \key{označ všechny soubory v aktuálním podadresáři}{* s} | |
333 \key{označ soubory vyhovující regulárnímu výrazu}{* \%} | |
334 \key{změň značku na jiné písmeno}{* c} | |
335 \key{označ soubory, pro které elispový výraz vrací t}{* ( \dx} | |
336 | |
76193
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
337 \section{Modifikace Dired bufferu} |
37387 | 338 |
76193
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
339 \key{vlož do tohoto bufferu podadresář}{i} |
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
340 \key{odstraň označené soubory z bufferu}{k} |
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
341 \key{odstraň z bufferu výpis podadresáře}{C-u k} |
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
342 \key{znovu načti adresáře (značky se zachovají)}{g} |
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
343 \key{přepni třídění adresáře podle jména/data}{s} |
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
344 \key{uprav volby příkazu ls}{C-u s} |
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
345 \key{obnov značky, skryté řádky apod.}{C-_} |
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
346 \key{skryj všechny podadresáře}{M-\$} |
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
347 \key{skryj nebo odkryj všechny podadresáře}{\$} |
37387 | 348 |
349 \section{Příkazy nad označenými soubory} | |
350 | |
351 \key{kopíruj soubor(y)}{C} | |
352 \key{přejmenuj soubor nebo přesuň soubory}{R} | |
353 \key{změň vlastníka souboru(ů)}{O} | |
354 \key{změň skupinu souboru(ů)}{G} | |
355 \key{změň přístupová práva souboru(ů)}{M} | |
356 \key{vytiskni soubor(y)}{P} | |
357 \key{změň název souboru(ů) na malá písmena}{\% l} | |
358 \key{změň název souboru(ů) na velká písmena}{\% u} | |
359 \key{smaž označené soubory}{X} | |
360 \key{proveď uuencode nebo uudecode souboru(ů)}{U} | |
361 \key{zkomprimuj nebo dekomprimuj soubor(y)}{Z} | |
362 \key{spusť info na soubor}{I \dx} | |
363 \key{vytvoř symbolický(é) odkaz(y)}{S} | |
364 \key{vytvoř relativní symbolické odkazy}{Y} | |
365 \key{vytvoř pevný odkaz}{H} | |
366 \key{prohledej soubory na regulární výraz}{A} | |
367 \key{nahraď regulární výrazy}{Q} | |
368 \key{přelož soubory (byte-compile)}{B} | |
369 \key{načti soubory (load-file)}{L} | |
370 \key{spusť příkaz na soubor(y)}{!} | |
371 | |
372 \section{Označení souborů pro smazání} | |
373 \leftline{\bf Odznačující příkazy mažou značku pro smazání} | |
374 \key{označ soubor pro smazání}{d} | |
375 \key{odstraň značku pro smazání}{delete} | |
376 \key{označ všechny zálohy (soubory končící na \~{})}{\~{}} | |
377 \key{označ všechny zálohy (auto-save)}{\#} | |
378 \key{označ různé dočasné soubory}{\&} | |
379 \key{označ číslované zálohy (končící na .\~{}1\~{} apod.)}{.} | |
380 \key{proveď výmaz souborů označených ke smazání}{x} | |
381 \key{označ soubory vyhovující regulárnímu výrazu}{\% d} | |
382 | |
383 \section{Příkazy s regulárními výrazy} | |
384 | |
385 \key{označ soubory vyhovující regulárnímu výrazu}{\% m} | |
386 \key{kopíruj označené soubory obsahující regexp}{\% C} | |
387 \key{přejmenuj označené soubory vyhovující regexp}{\% R} | |
388 \key{pevný odkaz}{\% H} | |
389 \key{symbolický odkaz}{\% S} | |
390 \key{symbolický odkaz s relativní cestou}{\% Y} | |
391 \key{označ pro smazání}{\% d} | |
392 | |
393 \section{Dired a Find} | |
394 \metax{otevři v dired soubory vyhovující vzorku}{M-x find-name-dired} | |
395 \metax{otevři v dired soubory obsahující vzorek}{M-x find-grep-dired} | |
396 \metax{otevři v dired soubory podle výstupu \kbd{find}}{M-x find-dired} | |
397 | |
76193
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
398 \section{Nápověda} |
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
399 |
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
400 \key{zobraz nápovědu}{h} |
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
401 \key{přehled příkazů dired}{?} |
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
402 |
80c354711780
Increase in 2 column case to make room for copyright notice.
Glenn Morris <rgm@gnu.org>
parents:
75337
diff
changeset
|
403 \copyrightnotice |
37387 | 404 |
405 \bye | |
52401 | 406 |
407 % arch-tag: dd78e947-5b89-4e5b-8bab-b6003719dce5 |