X-Git-Url: https://git.phdru.name/?p=extfs.d.git;a=blobdiff_plain;f=INSTALL.txt;h=1dedea7e01744e9910bf1a9b3e1b1a8326e8db00;hp=9cd3031c2791b51d7bf19abbe1e6b7c7d1438045;hb=741c49c1cf5c51e641be38f1f202d7246f5f7c34;hpb=1dce810c731c16eee117791854fc4568410c8745 diff --git a/INSTALL.txt b/INSTALL.txt index 9cd3031..1dedea7 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -21,9 +21,9 @@ Older versions - extfs.ini On the system where there is a file extfs.ini a VFS script has to be installed the following way. Put the script into the system extfs -directory - /usr/share/mc/extfs/ or /usr/local/share/mc/extfs/. Edit -extfs.ini - add a line naming the script; for example, if one's -installing xml VFS one has to do something like +directory - /usr/share/mc/extfs/ or /usr/local/share/mc/extfs/. Make the +script executable. Edit extfs.ini - add a line naming the script; for +example, if one's installing xml VFS one has to do something like cd /etc/mc/extfs echo xml >>extfs.ini @@ -36,11 +36,11 @@ mc.ext: regex/\.([xX][mM][lL])$ Open=%cd %p#xml -type/^XML *document text +type/^XML *(1\.0 *)?document text Open=%cd %p#xml To enable file types add or change the following configuration option in -ini file: +ini file in section [Midnight-Commander]: use_file_to_guess_type=1 @@ -52,13 +52,16 @@ Newer versions ~/.mc/extfs.d For newer versions just drop a VFS script to ~/.mc/extfs.d or ~/.local/share/mc/extfs.d/ directory (verify directory by running "mc -F"). -Edit mc.ext; the syntax is slightly different: +Make the script executable. Edit mc.ext; the syntax is slightly +different: regex/\.([xX][mM][lL])$ Include=xml -type/^XML *document text +type/^XML *(1\.0 *)?document text Include=xml include/xml Open=%cd %p/xml:// + +Enable file types guessing (see above).