File: menus.html

package info (click to toggle)
vile 9.8za-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,644 kB
  • sloc: ansic: 120,894; lex: 14,981; sh: 4,478; perl: 3,511; cpp: 3,180; makefile: 1,425; awk: 271
file content (345 lines) | stat: -rw-r--r-- 14,176 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--
  $Id: menus.html,v 1.15 2019/04/13 17:06:26 tom Exp $
-->

<html>
<head>
  <meta name="generator" content=
  "HTML Tidy for Linux (vers 25 March 2009), see www.w3.org">

  <title>XVile Menus</title>
  <meta http-equiv="Content-Type" content=
  "text/html; charset=us-ascii">
  <link rel="author" href="mailto:dickey@invisible-island.net">
  <link rel="SHORTCUT ICON" href="/img/icons/vile.ico" type=
  "image/x-icon">
  <link rel="stylesheet" href="/css/simplestyle.css" type=
  "text/css">
</head>

<body>
  <hr>
  <a href="/">http://invisible-island.net/</a><a href=
  "/vile/">vile/</a><a href="/vile/vile-toc.html">vile-toc</a><br>
  <hr>

  <h1 id="toplevel-toc"><a name="toplevel" id="toplevel">XVile
  Menus</a></h1>

  <p>The Motif and Athena widget versions of xvile automatically
  support user configurable menus.</p>

  <h2 id="searchrules-toc"><a name="searchrules" id=
  "searchrules">Search-Rules</a></h2>

  <p>If the environment variable <a href=
  "vile-hlp.html#env-XVILE_MENU">XVILE_MENU</a> is set, it contains
  the name of the rc file. Otherwise, the name ".vilemenu" is used.
  The name of the menu file is given in the variable "<a href=
  "macros.html#modevar-menu-file">$menu-file</a>". If it is not
  found, and is different from "vilemenu.rc", xvile looks for that
  file in the list of directories given in "<a href=
  "macros.html#modevar-startup-path">$startup-path</a>". The
  "vilemenu.rc" file is treated specially because it is the file
  installed from vile's distribution.</p>

  <h2 id="format-toc"><a name="format" id="format">Format</a></h2>

  <p>The file contains a series of lines whose first character
  denotes the type of entry, subsequent fields delimited by
  colon:</p>

  <table border="0" summary="Command Prefixes">
    <colgroup>
      <col width="5%">
      <col width="95%">
    </colgroup>

    <tr>
      <td valign="top"><strong>C</strong>&nbsp;&ndash;</td>

      <td>cascade (actually pulldown). One field only is
      recognized, the menu heading.</td>
    </tr>

    <tr>
      <td valign="top"><strong>B</strong>&nbsp;&ndash;</td>

      <td>
        button (menu entry). The first field is the menu label. The
        second is the command which will be executed. If the
        command is a number, it is expanded into the vile command
        execute-macro-&lt;number&gt;.

        <p>Besides the normal vile commands, the menu implements
        the following</p>

        <p>new_xvile &ndash; spawn a new copy of xvile.<br>
        edit_rc &ndash; switch to a buffer with ".vilerc".<br>
        parse_rc &ndash; source ".vilerc"<br>
        edit_mrc &ndash; switch to a buffer with the menu rc file
        which was found, e.g., "$menu-file" or "vilemenu.rc".</p>
      </td>
    </tr>

    <tr>
      <td><strong>S</strong>&nbsp;&ndash;</td>

      <td>separator</td>
    </tr>

    <tr>
      <td valign="top"><strong>L</strong>&nbsp;&ndash;</td>

      <td>
        list buffers. Each time you select this menu entry, vile
        constructs a current list of the buffers, allowing you to
        switch to any buffer by selecting it from the menu. It has
        to be at the end of a menu, and only one is allowed.

        <p>For the Motif version, the accelerators are constructed
        to correspond with the vile commands for switching buffers,
        e.g., _0, _1 ...</p>
      </td>
    </tr>
  </table>

  <p>Lines beginning with '"' or ';' are ignored. character. Lines
  beginning with '#', or text after a tab also are ignored, but we
  may drop this feature at some point, to make it more consistent
  with vile's macro files.</p>

  <p>The special keyword "cmd" tells the menu function to invoke
  the following keyword as a :-line command, so that commands which
  must solicit input will work properly.</p>

  <h2 id="example-toc"><a name="example" id=
  "example">Example</a></h2>

  <p>A sample .vilemenu file:</p>

  <blockquote>
    <!--{{atr2html-->

    <p style="font-family: monospace;" class="code-block">
    C:Xvile<br>
    <strong><font color=
    "#000080">B</font></strong>:New:new_xvile<br>
    <strong><font color=
    "#000080">B</font></strong>:Edit&nbsp;.vilerc:edit_rc<br>
    <strong><font color=
    "#000080">B</font></strong>:Parse&nbsp;.vilerc:parse_rc<br>
    <strong><font color=
    "#000080">B</font></strong>:Edit&nbsp;.vilemenu:edit_mrc<br>
    <strong><font color=
    "#000080">B</font></strong>:Quit:<strong><font color=
    "#000080">quit</font></strong><br>
    <font color="#800000">;</font><br>
    C:Editing<br>
    <strong><font color=
    "#000080">B</font></strong>:Apply&nbsp;Highlighting:cmd&nbsp;<strong><font color="#000080">HighlightFilter</font></strong><br>

    <strong><font color=
    "#000080">B</font></strong>:Clear&nbsp;Highlighting&nbsp;(above):<strong><font color="#000080">clear-attributes-til</font></strong>&nbsp;<strong><font color="#000080">beginning-of-file</font></strong><br>

    <strong><font color=
    "#000080">B</font></strong>:Clear&nbsp;Highlighting&nbsp;(below):<strong><font color="#000080">clear-attributes-til</font></strong>&nbsp;<strong><font color="#000080">end-of-file</font></strong><br>

    <strong><font color="#000080">S</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Search&nbsp;Forward...:cmd&nbsp;<strong><font color="#000080">search-forward</font></strong><br>

    <strong><font color=
    "#000080">B</font></strong>:Search&nbsp;Backward...:cmd&nbsp;<strong><font color="#000080">search-reverse</font></strong><br>

    <strong><font color="#000080">S</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Reload&nbsp;File:cmd&nbsp;<strong><font color="#000080">e!</font></strong><br>

    <strong><font color=
    "#000080">B</font></strong>:Rename&nbsp;Buffer:cmd&nbsp;<strong><font color="#000080">rename-buffer</font></strong><br>

    <strong><font color=
    "#000080">B</font></strong>:Edit:cmd&nbsp;<strong><font color=
    "#000080">edit-file</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Rename&nbsp;File:cmd&nbsp;<strong><font color="#000080">filename</font></strong><br>

    <strong><font color="#000080">S</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Manual&nbsp;<strong><font color=
    "#000080">for</font></strong>...:cmd&nbsp;<strong><font color=
    "#000080">ShowManpage</font></strong><br>
    <strong><font color="#000080">S</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Files:<strong><font color=
    "#000080">capture-command</font></strong>&nbsp;<font color=
    "#800080">"ls&nbsp;-l"</font><br>
    <strong><font color=
    "#000080">B</font></strong>:Processes:<strong><font color=
    "#000080">capture-command</font></strong>&nbsp;<font color=
    "#800080">"ps"</font><br>
    <strong><font color=
    "#000080">B</font></strong>:Users:<strong><font color=
    "#000080">capture-command</font></strong>&nbsp;<font color=
    "#800080">"w"</font><br>
    <font color="#800000">;</font><br>
    C:Buffers<br>
    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#000080">Show</font></strong>&nbsp;Current&nbsp;Only:<strong><font color="#000080">delete-other-windows</font></strong><br>

    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#000080">Toggle</font></strong>&nbsp;<strong><font color=
    "#000080">Show</font></strong>:<strong><font color=
    "#000080">toggle-buffer</font></strong><br>
    <strong><font color="#000080">L</font></strong>:list_buff<br>
    <font color="#800000">;</font><br>
    C:Fixed&nbsp;Fonts<br>
    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#008080">5</font></strong>x8:<strong><font color=
    "#000080">setv</font></strong>&nbsp;<font color=
    "#008080">$font</font>&nbsp;<strong><font color=
    "#008080">5</font></strong>x8<br>
    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#008080">7</font></strong>x14:<strong><font color=
    "#000080">setv</font></strong>&nbsp;<font color=
    "#008080">$font</font>&nbsp;<strong><font color=
    "#008080">7</font></strong>x14<br>
    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#008080">8</font></strong>x13:<strong><font color=
    "#000080">setv</font></strong>&nbsp;<font color=
    "#008080">$font</font>&nbsp;<strong><font color=
    "#008080">8</font></strong>x13<br>
    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#008080">8</font></strong>x16:<strong><font color=
    "#000080">setv</font></strong>&nbsp;<font color=
    "#008080">$font</font>&nbsp;<strong><font color=
    "#008080">8</font></strong>x16<br>
    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#008080">9</font></strong>x15:<strong><font color=
    "#000080">setv</font></strong>&nbsp;<font color=
    "#008080">$font</font>&nbsp;<strong><font color=
    "#008080">9</font></strong>x15<br>
    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#008080">10</font></strong>x20:<strong><font color=
    "#000080">setv</font></strong>&nbsp;<font color=
    "#008080">$font</font>&nbsp;<strong><font color=
    "#008080">10</font></strong>x20<br>
    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#008080">12</font></strong>x24:<strong><font color=
    "#000080">setv</font></strong>&nbsp;<font color=
    "#008080">$font</font>&nbsp;<strong><font color=
    "#008080">12</font></strong>x24<br>
    <font color="#800000">;</font><br>
    C:Nice&nbsp;Fonts<br>
    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#008080">10</font></strong>pt:<strong><font color=
    "#000080">setv</font></strong>&nbsp;<font color=
    "#008080">$font</font>&nbsp;<font color=
    "#800080">"-*-lucidatypewriter-*-r-normal-sans-10-*-*-*-*-0-iso8859-1"</font><br>

    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#008080">12</font></strong>pt:<strong><font color=
    "#000080">setv</font></strong>&nbsp;<font color=
    "#008080">$font</font>&nbsp;<font color=
    "#800080">"-*-lucidatypewriter-*-r-normal-sans-12-*-*-*-*-0-iso8859-1"</font><br>

    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#008080">14</font></strong>pt:<strong><font color=
    "#000080">setv</font></strong>&nbsp;<font color=
    "#008080">$font</font>&nbsp;<font color=
    "#800080">"-*-lucidatypewriter-*-r-normal-sans-14-*-*-*-*-0-iso8859-1"</font><br>

    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#008080">16</font></strong>pt:<strong><font color=
    "#000080">setv</font></strong>&nbsp;<font color=
    "#008080">$font</font>&nbsp;<font color=
    "#800080">"-*-lucidatypewriter-*-r-normal-sans-16-*-*-*-*-0-iso8859-1"</font><br>

    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#008080">18</font></strong>pt:<strong><font color=
    "#000080">setv</font></strong>&nbsp;<font color=
    "#008080">$font</font>&nbsp;<font color=
    "#800080">"-*-lucidatypewriter-*-r-normal-sans-18-*-*-*-*-0-iso8859-1"</font><br>

    <strong><font color=
    "#000080">B</font></strong>:<strong><font color=
    "#008080">20</font></strong>pt:<strong><font color=
    "#000080">setv</font></strong>&nbsp;<font color=
    "#008080">$font</font>&nbsp;<font color=
    "#800080">"-*-lucidatypewriter-*-r-normal-sans-20-*-*-*-*-0-iso8859-1"</font><br>

    <font color="#800000">;</font><br>
    C:Help:<strong><font color="#000080">help</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:About:<strong><font color=
    "#000080">version</font></strong><br>
    <strong><font color="#000080">S</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:General:<strong><font color=
    "#000080">help</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Bindings:<strong><font color=
    "#000080">describe-bindings</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Motions:<strong><font color=
    "#000080">describe-motions</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Operators:<strong><font color=
    "#000080">describe-operators</font></strong><br>
    <strong><font color="#000080">S</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Apropos...:cmd&nbsp;<strong><font color="#000080">apropos</font></strong><br>

    <strong><font color=
    "#000080">B</font></strong>:On&nbsp;Function...:cmd&nbsp;<strong><font color="#000080">describe-function</font></strong><br>

    <strong><font color=
    "#000080">B</font></strong>:On&nbsp;Key...:<strong><font color=
    "#000080">describe-key</font></strong>&nbsp;<font color=
    "#008080">&amp;gts</font><br>
    <strong><font color="#000080">S</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Settings:<strong><font color=
    "#000080">setall</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Variables:<strong><font color=
    "#000080">show-variables</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Registers:<strong><font color=
    "#000080">show-registers</font></strong><br>
    <strong><font color="#000080">S</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Majormodes:<strong><font color=
    "#000080">show-majormodes</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Colors:<strong><font color=
    "#000080">show-colors</font></strong><br>
    <strong><font color=
    "#000080">B</font></strong>:Color&nbsp;Schemes:<strong><font color="#000080">show-color-schemes</font></strong><br>

    <!--atr2html}}--></p>
  </blockquote>

  <h2 id="credits-toc"><a name="credits" id=
  "credits">Credits</a></h2>

  <p>This was originally adapted from a description by Philippe
  Chassany in 1997.</p>
</body>
</html>