diff -r 667339502172 -r 4cd8dc6dcb84 .config/mc/mc.ext --- a/.config/mc/mc.ext Fri Apr 06 20:12:54 2012 +0300 +++ b/.config/mc/mc.ext Fri Apr 06 20:23:16 2012 +0300 @@ -85,6 +85,21 @@ # useful on more than one system. You can post your modifications # as tickets at www.midnight-commander.org + +# .so libraries +# Exception - .so libraries are not manual pages +regex/\.(so|so\.[0-9\.]*)$ + View=%view{ascii} file %f && nm -C -D %f + +# Exception: .3gp are video files not manual pages +regex/\.(3[gG][pP])$ + Include=video + +# Object +type/^ELF + #Open=%var{PAGER:more} %f + View=%view{ascii} file %f && nm -C %f + ### Documentation ### # Texinfo @@ -97,44 +112,6 @@ shell/.info Open=info -f %f -# Manual page -# Exception - .so libraries are not manual pages -regex/\.(so|so\.[0-9\.]*)$ - View=%view{ascii} file %f && nm %f - -regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$ - Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff -man %f ;; esac | sensible-pager - View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff -man %f ;; esac - -# Troff with me macros. -# Exception - "read.me" is not a nroff file. -shell/read.me - Open= - View= - -shell/.me - Open=nroff -me %f | sensible-pager - View=%view{ascii,nroff} nroff -me %f - -# Troff with ms macros. -shell/.ms - Open=nroff -ms %f | sensible-pager - View=%view{ascii,nroff} nroff -ms %f - -# Manual page - compressed -regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$ - Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -man ;; esac | sensible-pager - View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -man ;; esac - -regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$ - Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -man ;; esac | sensible-pager - View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -man ;; esac - -regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$ - Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -man ;; esac | sensible-pager - View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -man ;; esac - - ### Images ### type/^GIF