diff: add a "Copy Diff" action and hotkey
commitd2732f442c3ace3a38ad3b22274a3d1878bb8f58
authorDavid Aguilar <davvid@gmail.com>
Fri, 10 Feb 2023 12:20:04 +0000 (10 04:20 -0800)
committerDavid Aguilar <davvid@gmail.com>
Fri, 10 Feb 2023 12:23:46 +0000 (10 04:23 -0800)
treedb88dd186a09f6085bc6f160908da09bbd7904fb
parentee1fb851dc6e6c6bf0318b94649b53b91eeabe26
diff: add a "Copy Diff" action and hotkey

Add an Alt + Shift + C hotkey that copies diff text to the clipboard
with the +/- diff prefix lines stripped off.

Entire lines are copied at a time for convenience, just like the
interactive diff editor.

Closes #1288
Suggested-by: @birgersp via github.com
Signed-off-by: David Aguilar <davvid@gmail.com>
CHANGES.rst
cola/hotkeys.py
cola/widgets/diff.py
cola/widgets/text.py
docs/git-cola.rst
docs/hotkeys.html
docs/hotkeys_de.html
docs/hotkeys_zh_CN.html
docs/hotkeys_zh_TW.html