Project

General

Profile

Feature #236

XEmbed support for external editors

Added by Charles Lehner about 7 years ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Category:
Sylpheed
Target version:
Start date:
06/04/2015
Due date:
% Done:

100%

Estimated time:

Description

This patch enables an external editor to be embedded into the compose window, using GtkSocket and XEmbed. If the external editor command string has a %d, it is replaced with a XID, and if it doesn't then the external editor launches in a new window as is the current behavior. The main use case I have for this is to use Vim as the embedded editor, using the command "gvim -f --socketid %d '%s', but it could also be used to open an editor in a terminal with e.g. "xterm -into %d -s $EDITOR '%s'"

The patch also adds a utility function `str_check_format` to libsylph which is like str_find_format_times but for format strings with more than one % type.

One thing I wasn't able to get working was to make the embedded external editor grab focus when it launches. However, you can press tab a few times to give it focus.


Files

0001-Add-XEmbed-support-for-external-editors.patch (6.61 KB) 0001-Add-XEmbed-support-for-external-editors.patch Patch adding XEmbed support for external message editors Charles Lehner, 06/04/2015 08:58 PM
xembed-gvim-screenshot.png (32.7 KB) xembed-gvim-screenshot.png Screenshot showing gvim embedded in the compose window Charles Lehner, 06/04/2015 09:24 PM
#1

Updated by Hiroyuki Yamamoto about 7 years ago

Hello,

It seems to be an interesting feature :)
(Probably included in 3.5 or 3.6 release)

#2

Updated by replica watches 5 months ago

https://www.bestwatchaaa.com/Bulgari-replica.html The Swiss watch and https://www.shopwatchus.com/ industry appeared https://www.bestwatchss.com/Nomos-Replica-Watches.html https://www.bestwatchaaa.com/Hamilton-replica.html https://www.bestwatchss.com/Corum-Replica-Watches.html https://www.allwatchesen.com/ https://www.bestwatchss.com/Audemars-Piguet-Replica-Watches.html https://www.watchrm.com/ https://www.newwatchesale.com/ https://www.bestwatchss.com/Roger-Dubuis-Replica-Watches.html century. In https://www.bestwatchss.com/Glashutte-Replica-Watches.html reforms https://www.replicawatchsshop.cc/A.Lange-Sohne-Replica.html by Jean Calvin https://www.hotwatchsreplica.com/Jacob-Co.html https://www.bestwatchaaa.com/Piaget-replica.html the wear https://www.bestwatchss.com/Baume-Mercier-Replica-Watches.html jewels, forced https://www.bestwatchaaa.com/Raymond-Weil-replica.html https://www.bestwatchaaa.com/Panerai-replica.html and https://www.hotwatchsreplica.com/Hublot.html https://www.bestwatchaaa.com/Chopard-replica.html https://www.hotwatchsreplica.com/Corum.html turn into https://www.bestwatchaaa.com/Romain-Jerome-replica.html https://www.bestwatchaaa.com/Porsche-Design-replica.html https://www.goodswisswatch.com/ https://www.bestwatchaaa.com/Omega-replica.html : watchmaking. By https://www.hotwatchsreplica.com/rolex.html end https://www.replicawatchsshop.cc/Rado-Replica.html https://www.bestwatchaaa.com/Roger-Dubuis-replica.html https://www.replicawatchsshop.cc/Jaeger-LeCoultre-Replica.html https://www.replicawatchsshop.cc/Glashutte-Original-Replica.html watches were https://www.replicawatchsshop.cc/Audemars-Piguet-Replica.html reputed for their https://www.hotwatchsreplica.com/jaeger-lecoultre.html quality, and watchmakers created in 1601 the Watchmakers https://www.allswisswatchs.com/ https://www.hotwatchsreplica.com/Ebel.html Geneva, the first to be https://www.hotwatchsreplica.com/ https://www.luxuryshopwatch.com/ One century later https://www.bestwatchaaa.com/Bedat-Co-replica.html because Geneva https://www.replicawatchsshop.cc/Oris-Replica.html already https://www.replicawatchsshop.cc/Graham-Replica.html with https://www.swisswatchesale.com/ many of them decided https://www.hotwatchsreplica.com/Maurice-Lacroix.html leave the city https://www.hotwatchsreplica.com/blancpain.html the https://www.hotwatchsreplica.com/Tissot.html region of the https://www.hotwatchsreplica.com/hamilton.html Mountains.

Also available in: Atom PDF