Configure iTerm2's Smart Selection for Diff Paths

When working with diffs in the terminal, for example: &#xA; --- a/src/pyrefdev/mapping/pylabel.py&#xA;+++ b/src/pyrefdev/mapping/pylabel.py&#xA; &#xA; I often need to copy the path of the file. But double-clicking the path selects a/src/pyrefdev/mapping/pylabel.py by default. &#xA; Luckily, you can configure iTerm2's Smart Selection with this regex to only select the path part: &#xA; (?<=[-+]{3}…