Ticket #4571: 0001-menu-Reduce-menu-ittems-width-to-allow-longer-text.patch

File 0001-menu-Reduce-menu-ittems-width-to-allow-longer-text.patch, 9.5 KB (added by eugenesan, 3 months ago)
  • misc/mc.menu.in

    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 
    2323############################################################################## 
    2424 
    2525+ ! t t 
    26      Do something on the current file 
     26Do something on the current file 
    2727        CMD=%{Enter command} 
    2828        $CMD %f 
    2929 
    3030+ t t 
    31      Do something on the tagged files 
     31Do something on the tagged files 
    3232        CMD=%{Enter command} 
    3333        for i in %t ; do 
    3434            $CMD "$i" 
    3535        done 
    3636 
    37      Edit a bug report and send it to root 
     37Edit a bug report and send it to root 
    3838        I=`mktemp "${MC_TMPDIR:-/tmp}/mail.XXXXXX"` || exit 1 
    3939        ${EDITOR-vi} "$I" 
    4040        test -r "$I" && mail root < "$I" 
    4141        rm -f "$I" 
    4242 
    4343=+ f \.1$ | f \.3$ | f \.4$ | f \.5$ | f \.6$ | f \.7$ | f \.8$ | f \.man$ & t r 
    44      Display the file with roff -man 
     44Display the file with roff -man 
    4545        %view{ascii,nroff} roff @MAN_FLAGS@ @MANDOC@ %f 
    4646 
    47      Call the info hypertext browser 
     47Call the info hypertext browser 
    4848        info 
    4949 
    5050= t d 
    51      Compress the current subdirectory (tar.gz) 
     51Compress the current subdirectory (tar.gz) 
    5252        Pwd=`basename %d /` 
    5353        echo -n "Name of the compressed file (without extension) [$Pwd]: " 
    5454        read tar 
    shell_patterns=0 
    5757        tar cf - "$Pwd" | gzip -f9 > "$tar.tar.gz" && \ 
    5858        echo "../$tar.tar.gz created." 
    5959 
    60      Compress the current subdirectory (tar.bz2) 
     60Compress the current subdirectory (tar.bz2) 
    6161        Pwd=`basename %d /` 
    6262        echo -n "Name of the compressed file (without extension) [$Pwd]: " 
    6363        read tar 
    shell_patterns=0 
    6666        tar cf - "$Pwd" | bzip2 -f > "$tar.tar.bz2" && \ 
    6767        echo "../$tar.tar.bz2 created." 
    6868 
    69      Compress the current subdirectory (tar.7z) 
     69Compress the current subdirectory (tar.7z) 
    7070        Pwd=`basename %d /` 
    7171        echo -n "Name of the compressed file (without extension) [$Pwd]: " 
    7272        read tar 
    shell_patterns=0 
    7575        tar cf - "$Pwd" | 7za a -si "$tar.tar.7z" && \ 
    7676        echo "../$tar.tar.7z created." 
    7777 
    78      Compress the current subdirectory (tar.xz) 
     78Compress the current subdirectory (tar.xz) 
    7979        Pwd=`basename %d /` 
    8080        echo -n "Name of the compressed file (without extension) [$Pwd]: " 
    8181        read tar 
    shell_patterns=0 
    8484        tar cf - "$Pwd" | xz -f > "$tar.tar.xz" && \ 
    8585        echo "../$tar.tar.xz created." 
    8686 
    87      Compress the current subdirectory (tar.zst) 
     87Compress the current subdirectory (tar.zst) 
    8888        Pwd=`basename %d /` 
    8989        echo -n "Name of the compressed file (without extension) [$Pwd]: " 
    9090        read tar 
    shell_patterns=0 
    9393        tar cf - "$Pwd" | zstd -f > "$tar.tar.zst" && \ 
    9494        echo "../$tar.tar.zst created." 
    9595 
    96      Compress the current subdirectory (tar.lzo) 
     96Compress the current subdirectory (tar.lzo) 
    9797        Pwd=`basename %d /` 
    9898        echo -n "Name of the compressed file (without extension) [$Pwd]: " 
    9999        read tar 
    shell_patterns=0 
    104104 
    105105= f \.c$ & t r 
    106106+ f \.c$ & t r & ! t t 
    107      Compile and link current .c file 
     107Compile and link current .c file 
    108108        make "`basename %f .c`" 2>/dev/null || cc -O -o "`basename %f .c`" %f 
    109109 
    110110+ t r & ! t t 
    111      Append file to opposite 
     111Append file to opposite 
    112112        cat %f >> %D/%f 
    113113 
    114114+ t t 
    115      Append files to opposite files 
     115Append files to opposite files 
    116116        for i in %t ; do 
    117117            cat "$i" >> %D/"$i" 
    118118        done 
    119119 
    120120+ t r & ! t t 
    121      Delete file if a copy exists in the other directory. 
     121Delete file if a copy exists in the other directory. 
    122122        if [ %d = %D ]; then 
    123123            echo "The two directories must be different." 
    124124            exit 1 
    d Delete file if a copy exists in the other directory. 
    136136        fi 
    137137 
    138138+ t t 
    139      Delete tagged files if a copy exists in the other directory. 
     139Delete tagged files if a copy exists in the other directory. 
    140140        if [ %d = %D ]; then 
    141141            echo "The two directories must be different." 
    142142            exit 1 
    D Delete tagged files if a copy exists in the other directory. 
    155155            fi 
    156156        done 
    157157 
    158      View manual page 
     158View manual page 
    159159        MAN=%{Enter manual name} 
    160160        %view{ascii,nroff} MANROFFOPT='@MAN_FLAGS@' MAN_KEEP_FORMATTING=1 man -P cat "$MAN" 
    161161 
    162162= f \.gz$ & t r 
    163163+ ! t t 
    164      Inspect gzip'ed newsbatch file 
     164Inspect gzip'ed newsbatch file 
    165165        dd if=%f bs=1 skip=12 | zcat | ${PAGER-more} 
    166166        # assuming the cunbatch header is 12 bytes long. 
    167167 
    168168= t r & 
    169169+ ! t t 
    170      Strip headers from current newsarticle 
     170Strip headers from current newsarticle 
    171171        CHECK=`awk '{print $1 ; exit}' %f` 2>/dev/null 
    172172        case "$CHECK" in 
    173173            Newsgroups:|Path:) 
    h Strip headers from current newsarticle 
    182182        esac 
    183183 
    184184+ t t 
    185      Strip headers from the marked newsarticles 
     185Strip headers from the marked newsarticles 
    186186        for i in %t ; do 
    187187            CHECK=`awk '{print $1 ; exit}' "$i"` 2>/dev/null 
    188188            WFILE=`mktemp "${MC_TMPDIR:-/tmp}/news.XXXXXX"` || exit 1 
    H Strip headers from the marked newsarticles 
    203203 
    204204= t r 
    205205+ ! t t 
    206      Copy file to remote host 
     206Copy file to remote host 
    207207        echo -n "To which host?: " 
    208208        read Host 
    209209        echo -n "To which directory on $Host?: " 
    r Copy file to remote host 
    211211        rcp -p %f "${Host}:${Dir}" 
    212212 
    213213+ t t 
    214      Copy files to remote host (no error checking) 
     214Copy files to remote host (no error checking) 
    215215        echo -n "Copy files to which host?: " 
    216216        read Host 
    217217        echo -n "To which directory on $Host? :" 
    R Copy files to remote host (no error checking) 
    220220 
    221221= f \.tex$ & t r 
    222222+ f \.tex$ & t r & ! t t 
    223      Run latex on file and show it with xdvi 
     223Run latex on file and show it with xdvi 
    224224        latex %f && xdvi "`basename %f .tex`".dvi 
    225225 
    226226=+ f ^part | f ^Part | f uue & t r 
    227227+ t t 
    228      Uudecode marked news articles (needs work) 
     228Uudecode marked news articles (needs work) 
    229229        ( 
    230230            for i in %t ; do # strip headers 
    231231                FIRST=`awk '{print $1 ; exit}' "$i"` 
    U Uudecode marked news articles (needs work) 
    238238        echo "Please test the output file before deleting anything." 
    239239 
    240240=+ 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      Extract the contents of a compressed tar file 
     241Extract the contents of a compressed tar file 
    242242        unset PRG 
    243243        case %f in 
    244244            *.tar.7z)   PRG="7za e -so";; 
    x Extract the contents of a compressed tar file 
    256256 
    257257= t r 
    258258+ ! t t 
    259      Gzip or gunzip current file 
     259Gzip or gunzip current file 
    260260        unset DECOMP 
    261261        case %f in 
    262262            *.gz|*.[zZ]) DECOMP=-d;; 
    y Gzip or gunzip current file 
    265265        gzip $DECOMP -v %f 
    266266 
    267267+ t t 
    268      Gzip or gunzip tagged files 
     268Gzip or gunzip tagged files 
    269269        for i in %t ; do 
    270270            unset DECOMP 
    271271            case "$i" in 
    Y Gzip or gunzip tagged files 
    275275        done 
    276276 
    277277+ ! t t 
    278      Bzip2 or bunzip2 current file 
     278Bzip2 or bunzip2 current file 
    279279        unset DECOMP 
    280280        case %f in 
    281281            *.bz2) DECOMP=-d;; 
    b Bzip2 or bunzip2 current file 
    283283        bzip2 $DECOMP -v %f 
    284284 
    285285+ t t 
    286      Bzip2 or bunzip2 tagged files 
     286Bzip2 or bunzip2 tagged files 
    287287        for i in %t ; do 
    288288            unset DECOMP 
    289289            case "$i" in 
    B Bzip2 or bunzip2 tagged files 
    293293        done 
    294294 
    295295+ f \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ & t r & ! t t 
    296      Extract compressed tar file to subdirectory 
     296Extract compressed tar file to subdirectory 
    297297        unset D 
    298298        set gzip -cd 
    299299        case %f in 
    z Extract compressed tar file to subdirectory 
    308308        mkdir "$D"; cd "$D" && ("$1" "$2" ../%f | tar xvf -) 
    309309 
    310310+ t t 
    311      Extract compressed tar files to subdirectories 
     311Extract compressed tar files to subdirectories 
    312312        for i in %t ; do 
    313313            set gzip -dc 
    314314            unset D 
    Z Extract compressed tar files to subdirectories 
    325325        done 
    326326 
    327327+ f \.gz$ | f \.tgz$ | f \.tpz$ | f \.Z$ | f \.z$ | f \.bz2$ & t r & ! t t 
    328      Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 
     328Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 
    329329        unset D 
    330330        unset EXT 
    331331        case %f in 
    c Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 
    349349        fi 
    350350 
    351351+ t t 
    352      Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 
     352Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 
    353353        for i in %t ; do 
    354354            unset D 
    355355            unset EXT 
    C Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 
    375375        done 
    376376 
    377377+ x /usr/bin/open | x /usr/local/bin/open & x /bin/sh 
    378      Open next a free console 
     378Open next a free console 
    379379        open -s -- sh