From ec211bccdcfb5bfabd03f6bcff8df02bb5eab266 Mon Sep 17 00:00:00 2001
From: Wynn Wolf Arbor
Date: Sat, 28 Mar 2020 15:16:31 +0100
Subject: Add Copy to HTML feature
This commit adds a "Copy to HTML" entry to the context menu. It is
active when VTE registers an active selection. Lines copied like this
will be put into the clipboard as formatted HTML, retaining nearly all
styling information.
For this, vte_copy now takes a boolean argument - whether or not to
format the lines copied as HTML. As two menu items now access vte_copy
directly, and there is no clean way of passing arguments to signal
handlers through terminal.ui, signals for both menu items are now
connected in the Vala code instead.
---
terminal.ui | 13 +++++++++++--
terminal.vala | 16 ++++++++++------
2 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/terminal.ui b/terminal.ui
index 4ba9555..4618d40 100644
--- a/terminal.ui
+++ b/terminal.ui
@@ -232,16 +232,25 @@
True
False
-
+
+
+