Textful Extension

This extension is not distributed with Mercurial.

Author: Yuya Nishihara

Repository: http://bitbucket.org/yuja/hgext-textful/


This extension tries to convert unreadable binary content to plain text when displaying, so that you can see decent diff of binary files.

Currently supports the following conversions:


Configure your .hgrc to enable the extension by adding following lines:

textful = /path/to/hgext/textful
#textful.encoding = /path/to/hgext/textful/encoding.py
#textful.msexcel = /path/to/hgext/textful/msexcel.py
#textful.pipe = /path/to/hgext/textful/pipe.py

To enable conversion of character encoding for Japanese:

textful = /path/to/hgext/textful
textful.encoding = /path/to/hgext/textful/encoding.py

encoding = utf-8, euc-jp, cp932, iso-2022-jp
# specify 'utf-8-sig' for UTF-8 with BOM, which is commonly used in Microsoft applications

To add textful cat command without breaking original cat:

scat = cat

attend = annotate, diff, glog, log, qdiff, scat

To textize Microsoft Word document (*.doc):

textful = /path/to/hgext/textful
textful.pipe = /path/to/hgext/textful/pipe.py

pipe.doc = antiword -w0 $<
# or
# pipe.doc = catdoc -w $<


TextfulExtension (last edited 2012-11-12 15:43:46 by YuyaNishihara)