TortoiseHg 2.0 adds variable expansion to tortoisehg.editor to allow you to open source files to particular lines. This is particularly useful when searching repository history.
In general, the syntax is:
$LINENUM and $SEARCH are key-phrases. If you specify them in a bracketed section and those parameters are not passed to the editor, the entire bracketed phrase is removed from the command line.
$FILE is optional. If it is not expanded in any phrase, the filename will be appended at the end of the command line.
More specific examples:
- For Scite (the Scintilla example editor) (tested with v2.11) (free, open source) :
The quotes are mandatory, as I experienced. Scite is also available on Linux.
- For NotePad++ (tested with v5.6.8) (free, open source, gpl) :
I experienced the '-multiInst' option as case-sensitive.
- For TextPad (tested with v5.3.1) (shareware) :