X-Git-Url: https://git.phdru.name/?p=extfs.d.git;a=blobdiff_plain;f=INSTALL.txt;h=1dedea7e01744e9910bf1a9b3e1b1a8326e8db00;hp=66dcf7e4e1d209bea6b88d0ae45cbc20a0dd5f41;hb=741c49c1cf5c51e641be38f1f202d7246f5f7c34;hpb=b824a8179b59e84f96919f7c9a0deb51d298dbca diff --git a/INSTALL.txt b/INSTALL.txt index 66dcf7e..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 @@ -40,7 +40,7 @@ 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,7 +52,8 @@ 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 @@ -62,3 +63,5 @@ type/^XML *(1\.0 *)?document text include/xml Open=%cd %p/xml:// + +Enable file types guessing (see above).