.config/mc/mc.ext
changeset 326 4cd8dc6dcb84
parent 325 667339502172
child 327 a8face3f062f
equal deleted inserted replaced
325:667339502172 326:4cd8dc6dcb84
    83 #
    83 #
    84 # Any new entries you develop for you are always welcome if they are
    84 # Any new entries you develop for you are always welcome if they are
    85 # useful on more than one system.  You can post your modifications
    85 # useful on more than one system.  You can post your modifications
    86 # as tickets at www.midnight-commander.org
    86 # as tickets at www.midnight-commander.org
    87 
    87 
       
    88 
       
    89 # .so libraries
       
    90 # Exception - .so libraries are not manual pages
       
    91 regex/\.(so|so\.[0-9\.]*)$
       
    92 	View=%view{ascii} file %f && nm -C -D %f
       
    93 
       
    94 # Exception: .3gp are video files not manual pages
       
    95 regex/\.(3[gG][pP])$
       
    96 	Include=video
       
    97 
       
    98 # Object
       
    99 type/^ELF
       
   100 	#Open=%var{PAGER:more} %f
       
   101 	View=%view{ascii} file %f && nm -C %f
       
   102 
    88 ### Documentation ###
   103 ### Documentation ###
    89 
   104 
    90 # Texinfo
   105 # Texinfo
    91 regex/\.(te?xi|texinfo)$
   106 regex/\.(te?xi|texinfo)$
    92 
   107 
    94 type/^Info\ text
   109 type/^Info\ text
    95 	Open=info -f %f
   110 	Open=info -f %f
    96 
   111 
    97 shell/.info
   112 shell/.info
    98 	Open=info -f %f
   113 	Open=info -f %f
    99 
       
   100 # Manual page
       
   101 # Exception - .so libraries are not manual pages
       
   102 regex/\.(so|so\.[0-9\.]*)$
       
   103 	View=%view{ascii} file %f && nm %f
       
   104 
       
   105 regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
       
   106 	Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff  -man %f ;; esac | sensible-pager
       
   107 	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff  -man %f ;; esac
       
   108 
       
   109 # Troff with me macros.
       
   110 # Exception - "read.me" is not a nroff file.
       
   111 shell/read.me
       
   112 	Open=
       
   113 	View=
       
   114 
       
   115 shell/.me
       
   116 	Open=nroff  -me %f | sensible-pager
       
   117 	View=%view{ascii,nroff} nroff  -me %f
       
   118 
       
   119 # Troff with ms macros.
       
   120 shell/.ms
       
   121 	Open=nroff  -ms %f | sensible-pager
       
   122 	View=%view{ascii,nroff} nroff  -ms %f
       
   123 
       
   124 # Manual page - compressed
       
   125 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
       
   126 	Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff  -man ;; esac | sensible-pager
       
   127 	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff  -man ;; esac
       
   128 
       
   129 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
       
   130 	Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff  -man ;; esac | sensible-pager
       
   131 	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff  -man ;; esac
       
   132 
       
   133 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
       
   134 	Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff  -man ;; esac | sensible-pager
       
   135 	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff  -man ;; esac
       
   136 
       
   137 
   114 
   138 ### Images ###
   115 ### Images ###
   139 
   116 
   140 type/^GIF
   117 type/^GIF
   141 	Include=image
   118 	Include=image