From 46ce1c5a3e4137a7e3378d37a06c38509e0030c8 Mon Sep 17 00:00:00 2001
From: "Eugene San (eugenesan)" <eugenesan@gmail.com>
Date: Thu, 22 Aug 2024 23:03:03 -0700
Subject: [PATCH] menu: Reduce menu ittems' width to allow longer text
---
misc/mc.menu.in | 68 ++++++++++++++++++++++++-------------------------
1 file changed, 34 insertions(+), 34 deletions(-)
diff --git a/misc/mc.menu.in b/misc/mc.menu.in
index 9d37e378a..51880de7e 100644
a
|
b
|
shell_patterns=0 |
23 | 23 | ############################################################################## |
24 | 24 | |
25 | 25 | + ! t t |
26 | | @ Do something on the current file |
| 26 | @ Do something on the current file |
27 | 27 | CMD=%{Enter command} |
28 | 28 | $CMD %f |
29 | 29 | |
30 | 30 | + t t |
31 | | @ Do something on the tagged files |
| 31 | @ Do something on the tagged files |
32 | 32 | CMD=%{Enter command} |
33 | 33 | for i in %t ; do |
34 | 34 | $CMD "$i" |
35 | 35 | done |
36 | 36 | |
37 | | 0 Edit a bug report and send it to root |
| 37 | 0 Edit a bug report and send it to root |
38 | 38 | I=`mktemp "${MC_TMPDIR:-/tmp}/mail.XXXXXX"` || exit 1 |
39 | 39 | ${EDITOR-vi} "$I" |
40 | 40 | test -r "$I" && mail root < "$I" |
41 | 41 | rm -f "$I" |
42 | 42 | |
43 | 43 | =+ f \.1$ | f \.3$ | f \.4$ | f \.5$ | f \.6$ | f \.7$ | f \.8$ | f \.man$ & t r |
44 | | 1 Display the file with roff -man |
| 44 | 1 Display the file with roff -man |
45 | 45 | %view{ascii,nroff} roff @MAN_FLAGS@ @MANDOC@ %f |
46 | 46 | |
47 | | 2 Call the info hypertext browser |
| 47 | 2 Call the info hypertext browser |
48 | 48 | info |
49 | 49 | |
50 | 50 | = t d |
51 | | 3 Compress the current subdirectory (tar.gz) |
| 51 | 3 Compress the current subdirectory (tar.gz) |
52 | 52 | Pwd=`basename %d /` |
53 | 53 | echo -n "Name of the compressed file (without extension) [$Pwd]: " |
54 | 54 | read tar |
… |
… |
shell_patterns=0 |
57 | 57 | tar cf - "$Pwd" | gzip -f9 > "$tar.tar.gz" && \ |
58 | 58 | echo "../$tar.tar.gz created." |
59 | 59 | |
60 | | 4 Compress the current subdirectory (tar.bz2) |
| 60 | 4 Compress the current subdirectory (tar.bz2) |
61 | 61 | Pwd=`basename %d /` |
62 | 62 | echo -n "Name of the compressed file (without extension) [$Pwd]: " |
63 | 63 | read tar |
… |
… |
shell_patterns=0 |
66 | 66 | tar cf - "$Pwd" | bzip2 -f > "$tar.tar.bz2" && \ |
67 | 67 | echo "../$tar.tar.bz2 created." |
68 | 68 | |
69 | | 5 Compress the current subdirectory (tar.7z) |
| 69 | 5 Compress the current subdirectory (tar.7z) |
70 | 70 | Pwd=`basename %d /` |
71 | 71 | echo -n "Name of the compressed file (without extension) [$Pwd]: " |
72 | 72 | read tar |
… |
… |
shell_patterns=0 |
75 | 75 | tar cf - "$Pwd" | 7za a -si "$tar.tar.7z" && \ |
76 | 76 | echo "../$tar.tar.7z created." |
77 | 77 | |
78 | | 6 Compress the current subdirectory (tar.xz) |
| 78 | 6 Compress the current subdirectory (tar.xz) |
79 | 79 | Pwd=`basename %d /` |
80 | 80 | echo -n "Name of the compressed file (without extension) [$Pwd]: " |
81 | 81 | read tar |
… |
… |
shell_patterns=0 |
84 | 84 | tar cf - "$Pwd" | xz -f > "$tar.tar.xz" && \ |
85 | 85 | echo "../$tar.tar.xz created." |
86 | 86 | |
87 | | 7 Compress the current subdirectory (tar.zst) |
| 87 | 7 Compress the current subdirectory (tar.zst) |
88 | 88 | Pwd=`basename %d /` |
89 | 89 | echo -n "Name of the compressed file (without extension) [$Pwd]: " |
90 | 90 | read tar |
… |
… |
shell_patterns=0 |
93 | 93 | tar cf - "$Pwd" | zstd -f > "$tar.tar.zst" && \ |
94 | 94 | echo "../$tar.tar.zst created." |
95 | 95 | |
96 | | 8 Compress the current subdirectory (tar.lzo) |
| 96 | 8 Compress the current subdirectory (tar.lzo) |
97 | 97 | Pwd=`basename %d /` |
98 | 98 | echo -n "Name of the compressed file (without extension) [$Pwd]: " |
99 | 99 | read tar |
… |
… |
shell_patterns=0 |
104 | 104 | |
105 | 105 | = f \.c$ & t r |
106 | 106 | + f \.c$ & t r & ! t t |
107 | | c Compile and link current .c file |
| 107 | c Compile and link current .c file |
108 | 108 | make "`basename %f .c`" 2>/dev/null || cc -O -o "`basename %f .c`" %f |
109 | 109 | |
110 | 110 | + t r & ! t t |
111 | | a Append file to opposite |
| 111 | a Append file to opposite |
112 | 112 | cat %f >> %D/%f |
113 | 113 | |
114 | 114 | + t t |
115 | | A Append files to opposite files |
| 115 | A Append files to opposite files |
116 | 116 | for i in %t ; do |
117 | 117 | cat "$i" >> %D/"$i" |
118 | 118 | done |
119 | 119 | |
120 | 120 | + t r & ! t t |
121 | | d Delete file if a copy exists in the other directory. |
| 121 | d Delete file if a copy exists in the other directory. |
122 | 122 | if [ %d = %D ]; then |
123 | 123 | echo "The two directories must be different." |
124 | 124 | exit 1 |
… |
… |
d Delete file if a copy exists in the other directory. |
136 | 136 | fi |
137 | 137 | |
138 | 138 | + t t |
139 | | D Delete tagged files if a copy exists in the other directory. |
| 139 | D Delete tagged files if a copy exists in the other directory. |
140 | 140 | if [ %d = %D ]; then |
141 | 141 | echo "The two directories must be different." |
142 | 142 | exit 1 |
… |
… |
D Delete tagged files if a copy exists in the other directory. |
155 | 155 | fi |
156 | 156 | done |
157 | 157 | |
158 | | m View manual page |
| 158 | m View manual page |
159 | 159 | MAN=%{Enter manual name} |
160 | 160 | %view{ascii,nroff} MANROFFOPT='@MAN_FLAGS@' MAN_KEEP_FORMATTING=1 man -P cat "$MAN" |
161 | 161 | |
162 | 162 | = f \.gz$ & t r |
163 | 163 | + ! t t |
164 | | n Inspect gzip'ed newsbatch file |
| 164 | n Inspect gzip'ed newsbatch file |
165 | 165 | dd if=%f bs=1 skip=12 | zcat | ${PAGER-more} |
166 | 166 | # assuming the cunbatch header is 12 bytes long. |
167 | 167 | |
168 | 168 | = t r & |
169 | 169 | + ! t t |
170 | | h Strip headers from current newsarticle |
| 170 | h Strip headers from current newsarticle |
171 | 171 | CHECK=`awk '{print $1 ; exit}' %f` 2>/dev/null |
172 | 172 | case "$CHECK" in |
173 | 173 | Newsgroups:|Path:) |
… |
… |
h Strip headers from current newsarticle |
182 | 182 | esac |
183 | 183 | |
184 | 184 | + t t |
185 | | H Strip headers from the marked newsarticles |
| 185 | H Strip headers from the marked newsarticles |
186 | 186 | for i in %t ; do |
187 | 187 | CHECK=`awk '{print $1 ; exit}' "$i"` 2>/dev/null |
188 | 188 | WFILE=`mktemp "${MC_TMPDIR:-/tmp}/news.XXXXXX"` || exit 1 |
… |
… |
H Strip headers from the marked newsarticles |
203 | 203 | |
204 | 204 | = t r |
205 | 205 | + ! t t |
206 | | r Copy file to remote host |
| 206 | r Copy file to remote host |
207 | 207 | echo -n "To which host?: " |
208 | 208 | read Host |
209 | 209 | echo -n "To which directory on $Host?: " |
… |
… |
r Copy file to remote host |
211 | 211 | rcp -p %f "${Host}:${Dir}" |
212 | 212 | |
213 | 213 | + t t |
214 | | R Copy files to remote host (no error checking) |
| 214 | R Copy files to remote host (no error checking) |
215 | 215 | echo -n "Copy files to which host?: " |
216 | 216 | read Host |
217 | 217 | echo -n "To which directory on $Host? :" |
… |
… |
R Copy files to remote host (no error checking) |
220 | 220 | |
221 | 221 | = f \.tex$ & t r |
222 | 222 | + f \.tex$ & t r & ! t t |
223 | | t Run latex on file and show it with xdvi |
| 223 | t Run latex on file and show it with xdvi |
224 | 224 | latex %f && xdvi "`basename %f .tex`".dvi |
225 | 225 | |
226 | 226 | =+ f ^part | f ^Part | f uue & t r |
227 | 227 | + t t |
228 | | U Uudecode marked news articles (needs work) |
| 228 | U Uudecode marked news articles (needs work) |
229 | 229 | ( |
230 | 230 | for i in %t ; do # strip headers |
231 | 231 | FIRST=`awk '{print $1 ; exit}' "$i"` |
… |
… |
U Uudecode marked news articles (needs work) |
238 | 238 | echo "Please test the output file before deleting anything." |
239 | 239 | |
240 | 240 | =+ f \.tar\.gz$ | f \.tar\.z$ | f \.tgz$ | f \.tpz$ | f \.tar\.lz$ | f \.tar\.lz4$ | f \.tar\.lzma$ | f \.tar\.lzo$ | f \.tar\.7z$ | f \.tar\.xz$ | f \.tar\.zst | f \.tar\.Z$ | f \.tar\.bz2$ & t rl |
241 | | x Extract the contents of a compressed tar file |
| 241 | x Extract the contents of a compressed tar file |
242 | 242 | unset PRG |
243 | 243 | case %f in |
244 | 244 | *.tar.7z) PRG="7za e -so";; |
… |
… |
x Extract the contents of a compressed tar file |
256 | 256 | |
257 | 257 | = t r |
258 | 258 | + ! t t |
259 | | y Gzip or gunzip current file |
| 259 | y Gzip or gunzip current file |
260 | 260 | unset DECOMP |
261 | 261 | case %f in |
262 | 262 | *.gz|*.[zZ]) DECOMP=-d;; |
… |
… |
y Gzip or gunzip current file |
265 | 265 | gzip $DECOMP -v %f |
266 | 266 | |
267 | 267 | + t t |
268 | | Y Gzip or gunzip tagged files |
| 268 | Y Gzip or gunzip tagged files |
269 | 269 | for i in %t ; do |
270 | 270 | unset DECOMP |
271 | 271 | case "$i" in |
… |
… |
Y Gzip or gunzip tagged files |
275 | 275 | done |
276 | 276 | |
277 | 277 | + ! t t |
278 | | b Bzip2 or bunzip2 current file |
| 278 | b Bzip2 or bunzip2 current file |
279 | 279 | unset DECOMP |
280 | 280 | case %f in |
281 | 281 | *.bz2) DECOMP=-d;; |
… |
… |
b Bzip2 or bunzip2 current file |
283 | 283 | bzip2 $DECOMP -v %f |
284 | 284 | |
285 | 285 | + t t |
286 | | B Bzip2 or bunzip2 tagged files |
| 286 | B Bzip2 or bunzip2 tagged files |
287 | 287 | for i in %t ; do |
288 | 288 | unset DECOMP |
289 | 289 | case "$i" in |
… |
… |
B Bzip2 or bunzip2 tagged files |
293 | 293 | done |
294 | 294 | |
295 | 295 | + f \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ & t r & ! t t |
296 | | z Extract compressed tar file to subdirectory |
| 296 | z Extract compressed tar file to subdirectory |
297 | 297 | unset D |
298 | 298 | set gzip -cd |
299 | 299 | case %f in |
… |
… |
z Extract compressed tar file to subdirectory |
308 | 308 | mkdir "$D"; cd "$D" && ("$1" "$2" ../%f | tar xvf -) |
309 | 309 | |
310 | 310 | + t t |
311 | | Z Extract compressed tar files to subdirectories |
| 311 | Z Extract compressed tar files to subdirectories |
312 | 312 | for i in %t ; do |
313 | 313 | set gzip -dc |
314 | 314 | unset D |
… |
… |
Z Extract compressed tar files to subdirectories |
325 | 325 | done |
326 | 326 | |
327 | 327 | + f \.gz$ | f \.tgz$ | f \.tpz$ | f \.Z$ | f \.z$ | f \.bz2$ & t r & ! t t |
328 | | c Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 |
| 328 | c Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 |
329 | 329 | unset D |
330 | 330 | unset EXT |
331 | 331 | case %f in |
… |
… |
c Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 |
349 | 349 | fi |
350 | 350 | |
351 | 351 | + t t |
352 | | C Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 |
| 352 | C Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 |
353 | 353 | for i in %t ; do |
354 | 354 | unset D |
355 | 355 | unset EXT |
… |
… |
C Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 |
375 | 375 | done |
376 | 376 | |
377 | 377 | + x /usr/bin/open | x /usr/local/bin/open & x /bin/sh |
378 | | o Open next a free console |
| 378 | o Open next a free console |
379 | 379 | open -s -- sh |