読者です 読者をやめる 読者になる 読者になる

FDclone 3.00j の _fdrc と fd2rc.vine との差分

こないだ、.xz, .tar.xz の追加のついでに、.epub とか Microsoft Office Open XML formats (.docx, .xslt, .pptx) なども追加しました。

せっかくなので、_fdrc と fd2rc.vine の差分を以下に出しておきます。

$ diff -up /usr/share/doc/FD-3.00j/_fdrc /usr/share/doc/FD-3.00j/fd2rc.vine
--- /usr/share/doc/FD-3.00j/_fdrc	2010-09-25 00:00:00.000000000 +0900
+++ /usr/share/doc/FD-3.00j/fd2rc.vine	2011-03-31 07:42:17.000000000 +0900
@@ -1,5 +1,23 @@
-# Initialize file for FD
+# fd2rc.vine: Initialize file for FD
 #
+#  There are some settings in this configuration file
+#  which differ from the upstream default:
+#
+#     SORTTYPE=1 (alphabetical)
+#     DISPLAYMODE=3 (sym-link status & file type symbol)
+#     ADJTTY=1 (adjust TTY when exiting)
+#     LANGUAGE=$LANG
+#     INPUTKCODE=$LANG
+#     FNAMEKCODE=$LANG
+#
+#     Launcher settings
+#        for files with suffix as .tar.xz, .zip, .Z, .gz, .bz2, xz
+#        for Debian package (.deb), rpm package (.rpm), ePub format (.epub), 
+#            Microsoft Office Open XML formats (.docx, .xslx, .pptx)
+#     Archiver settings
+#        for files with suffix as .tar.xz, .zip
+#        for Debian package (.deb), rpm package (.rpm), ePub format (.epub), 
+#            Microsoft Office Open XML formats (.docx, .xslx, .pptx)
 
 # whether if limit configuration items or not in the customizer
 #	0: not limit (Default)
@@ -17,6 +35,7 @@
 #	200-213: preserve previous sort type also in the archive browser
 #		(the least 2 digits are effective just after initialize)
 #SORTTYPE=0
+SORTTYPE=1
 
 # default display mode
 #	0: normal (Default)
@@ -28,6 +47,7 @@
 #	6: 			file type symbol &	invisible dot file
 #	7: sym-link status &	file type symbol &	invisible dot file
 #DISPLAYMODE=0
+DISPLAYMODE=3
 
 # whether if sort or not in tree mode
 #	0: not sort (Default)
@@ -64,6 +84,7 @@
 #	0: not adjust (Default)
 #	>= 1: adjust
 #ADJTTY=0
+ADJTTY=1
 
 # whether if prioritize VT100 escape sequence or not for getting terminal size
 #	0: not prioritize (Default)
@@ -365,6 +386,7 @@
 #	utf8-iconv, UTF8-ICONV: UTF-8 for iconv
 #	en, EN, C: English
 #LANGUAGE=""
+LANGUAGE=$LANG
 
 # system default Kanji code
 #	Default: No convert
@@ -391,6 +413,7 @@
 #	utf8-mac, UTF8-MAC: UTF-8 for Mac OS X
 #	utf8-iconv, UTF8-ICONV: UTF-8 for iconv
 #INPUTKCODE=""
+INPUTKCODE=$LANG
 
 # Kanji code to be inputted to the pseudo terminal
 #	Default: No convert
@@ -426,6 +449,7 @@
 #	utf8-mac, UTF8-MAC: UTF-8 for Mac OS X
 #	utf8-iconv, UTF8-ICONV: UTF-8 for iconv
 #FNAMEKCODE=""
+FNAMEKCODE=$LANG
 
 # Kanji code in filename on URL drive
 #	Default: No convert
@@ -578,7 +602,7 @@
 #		-f "%a %u %g %s %m %d %t %y %*f" \
 #		-f "%a %u/%g %m %d %t %y %*f"
 #(Examples)
-#launch ".zip"	"unzip -lqq"		" %s %m-%d-%y %t %*f"
+launch ".zip"	"unzip -lqq"		" %s %m-%d-%y %t %*f"
 #launch ".zoo"	"zoo lq"		" %s %x %x %d %m %y %t %*f"
 #launch ".rar"	"unrar v" \
 #		-f " %*f\n%s %x %x %d-%m-%y %t %a" \
@@ -597,9 +621,20 @@
 #		-i "created at ??:??:?? *" \
 #		-i "by * *" \
 #		-i ""
-#launch ".Z"	"zcat %C|$PAGER"
-#launch ".gz"	"gzip -cd %C|$PAGER"
-#launch ".bz2"	"bzip2 -cd %C|$PAGER"
+
+launch ".tar.xz"	"xz -cd %C|tar tvf -" \
+		-f "%a %u/%g %s %m %d %t %y %*f" \
+		-f "%a %u/%g %s %y-%m-%d %t %*f" \
+		-f "%a %l %u %g %s %m %d %{yt} %*f" \
+		-f "%10a %u/%g %s %m %d %t %y %*f" \
+		-f "%9a %u/%g %s %m %d %t %y %*f" \
+		-f "%a %u %g %s %m %d %t %y %*f" \
+		-f "%a %u/%g %m %d %t %y %*f"
+
+launch ".Z"	"zcat %C|$PAGER"
+launch ".gz"	"gzip -cd %C|$PAGER"
+launch ".bz2"	"bzip2 -cd %C|$PAGER"
+launch ".xz"	"xz -cd %C|$PAGER"
 
 # examples for MS-DOS
 #launch ".lzh"		"lha v %S" %
@@ -633,6 +668,21 @@
 #launch ".zip"	"unzip -lqq %S"		" %s %y-%m-%d %t %*f"
 #launch ".zip"	"pkunzip -vb %S"	" %s %x %x %x %y-%m-%d %t %*f" 14 2
 
+# Debian package
+#launch ".deb" "ar p %C data.tar.gz|gzip -dc|tar tvf - "\
+#                   "%a %u/%g %s %y-%m-%d %t %f"
+
+# rpm package
+launch ".rpm" "rpm2cpio %C|cpio -tv"  "%a %x %u %g %s %m %d %y %f"
+
+# ePub format
+launch ".epub"	"unzip -lqq"		" %s %m-%d-%y %t %*f"
+
+# Microsoft Office Open XML formats
+launch ".docx"	"unzip -lqq"		" %s %m-%d-%y %t %*f"
+launch ".xslx"	"unzip -lqq"		" %s %m-%d-%y %t %*f"
+launch ".pptx"	"unzip -lqq"		" %s %m-%d-%y %t %*f"
+
 # archiver definition
 #(Default)
 #arch ".lzh"	"lha aq %C %TA"			"lha xq %C %TA"
@@ -645,7 +695,7 @@
 #arch ".taz"	"tar cf - %T|gzip -c > %C"	"gzip -cd %C|tar xf - %TA"
 #arch ".tgz"	"tar cf - %T|gzip -c > %C"	"gzip -cd %C|tar xf - %TA"
 #(Examples)
-#arch ".zip"	"zip -q %C %TA"			"unzip -q %C %TA"
+arch ".zip"	"zip -q %C %TA"			"unzip -q %C %TA"
 #arch ".zoo"	"zoo aq %C %TA"			"zoo xq %C %TA"
 #arch ".rar"	"rar a -inul %C %TA"		"unrar x -inul %C %TA"
 
@@ -659,6 +709,24 @@
 #arch ".tgz"	"tar cf - %T|gzip -c > %C"	"gzip -cd %S|tar xf - %TA"
 #arch ".zip"	"pkzip %S %TA"			"pkunzip %S %TA"
 
+arch ".tar.xz" \
+		"tar cf - %T|xz -c > %C"	"xz -cd %C|tar xf - %TA"
+
+# Debian package
+#arch ".deb"    "clear; echo ERROR; false"\
+#       "ar p %C data.tar.gz|gzip -dc|tar -xf - %TA"
+
+# rpm package
+arch ".rpm"   "clear; echo ERROR; false"      "rpm2cpio %C|cpio -id %TA"
+
+# ePub format
+arch ".epub"	"zip -q %C %TA"			"unzip -q %C %TA"
+
+# Microsoft Office Open XML formats
+arch ".docx"	"zip -q %C %TA"			"unzip -q %C %TA"
+arch ".xslx"	"zip -q %C %TA"			"unzip -q %C %TA"
+arch ".pptx"	"zip -q %C %TA"			"unzip -q %C %TA"
+
 # key bind definition
 #(Examples)
 #bind 'I'	"dir -d %C"