From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.96.157.163 with SMTP id wn3csp226021qdb; Tue, 15 Apr 2014 11:39:41 -0700 (PDT) X-Received: by 10.182.24.226 with SMTP id x2mr2803510obf.13.1397587181202; Tue, 15 Apr 2014 11:39:41 -0700 (PDT) Return-Path: Received: from rubyforge.org ([50.56.192.79]) by mx.google.com with ESMTP id il7si17131076obc.19.2014.04.15.11.39.40 for ; Tue, 15 Apr 2014 11:39:41 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) client-ip=50.56.192.79; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@gmail.com; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id EA44D2E18F; Tue, 15 Apr 2014 18:39:41 +0000 (UTC) Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by rubyforge.org (Postfix) with ESMTP id 4D3852E190 for ; Tue, 15 Apr 2014 18:38:41 +0000 (UTC) Received: by mail-wg0-f43.google.com with SMTP id x13so9828800wgg.2 for ; Tue, 15 Apr 2014 11:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:in-reply-to:references:date:message-id:user-agent :content-transfer-encoding:mime-version:content-type; bh=353LciSsUWN7DAWMV4RYCfYkTmpQR9sAUDayn2nlZp4=; b=qVi/ZgLTA/d1bdecjZMEYF8WqxCAgA+XljpwYETg0w+pK4ngCqeiVYPb/fOg2+fLNf InOh5vyEKwnWBUZjr7NvmyEs2kkcM8GSpd20ahyQZTTvsY3/1kTSFFidPJYjs1YN0W9Z pjUZylWEXIpUvDhhA96DeNqdJ6u/uwuA5mkKiEcTXnwcBLV/Vo0t7Bilx3OV7tmNg4yr fOHJmONdCya06lUh619h+taUofo4jBnSsq/PWdDA5qZPKLKcSg4P+b+o2kek64kK29Uy MrW9u37NCVPzshv3LoYxsfQ8l0ZRiC1OiIM2WpY35hWhkIUfaYupZ2il09zHzcUfbL33 7Mcg== X-Received: by 10.180.94.37 with SMTP id cz5mr15709414wib.19.1397587118975; Tue, 15 Apr 2014 11:38:38 -0700 (PDT) Received: from localhost.localdomain (155-29-190-109.dsl.ovh.fr. [109.190.29.155]) by mx.google.com with ESMTPSA id hu7sm31105826wib.10.2014.04.15.11.38.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Apr 2014 11:38:38 -0700 (PDT) Received: from localhost (localhost.localdomain [IPv6:::1]); by localhost.localdomain (OpenSMTPD) with ESMTP id feb474be; for ; Tue, 15 Apr 2014 18:38:16 +0000 (UTC) From: Matthieu Rakotojaona To: sup-talk In-reply-to: <1397511511-sup-2550@ArchNemesis> References: <1397511511-sup-2550@ArchNemesis> X-pgp-key: http://otokar.looc2011.eu/static/matthieu.rakotojaona.asc Date: Tue, 15 Apr 2014 20:38:15 +0200 Message-Id: <1397545869-sup-4820@kpad> User-Agent: Sup/git MIME-Version: 1.0 Subject: Re: [sup-talk] Get text at current line in ThredViewMode X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7564435895670577386==" Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org --===============7564435895670577386== Content-Transfer-Encoding: 8bit Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1397587095-990723-4660-7848-3-=" --=-1397587095-990723-4660-7848-3-= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, Take a look at this PR: https://github.com/sup-heliotrope/sup/pull/241 In this PR I take the text on the current line, try to extract an URI out of it and open it with the system's xdg-open. The line you're interested in is thread_view_mobe.rb:718. Basically a view is a list of tuples: [color, data]. color denotes how to paint the data. The one you're interested in is certainly :text_color. This PR really old, and I should work on it, but I got distracted ... -- = Matthieu Rakotojaona --=-1397587095-990723-4660-7848-3-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQJ8BAEBCgBmBQJTTXyXXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwNkQ3NDcxMDJFRUU4MEYwRTY4MzQwMkEz QTc0RTE5NDVDM0Q5NzIyAAoJEDp04ZRcPZcicqgP/2X56oZooOB2S6RhcudZAJv9 e0Ye1QIhvjTXJt9NR6w+0Swh0EJKvO/A+fgjqpT9f/7h7VKAGe1rTuqHZlxQ3d/J h2tn1hhBcQmqJj5Ulo07ryIXRXS3Oj4LEOwVxdqX57lYFCB8EzeTthokVLRQybTQ f/gWJbknWVjL/n7tyLeJb8mT1fsutGxNTudLTY8Vi3ZQxsWSDX848IvcjvB7HUzG tlnVvx6a8Gw8WDqBqM2lLP5VH71EpvyEbW+33NiVPmM3GPkvNqIloLGj6sNE16hr MgoqGr5SEqJTwCisjdc4yo1/kd6rizhGFBt4g53ItvgUNQhgoe3YEpwm55cg06kQ 0pOgmU/zm8Vo0Dot2AP9QS73EgolmQDRlYdayhfxW8F/WvD3kWeetVM6pNikwPGL GizIfSGugnUNcZH/M3kulzo+/xjj2rQTfOhmtohPtYnEbgbOZ4Gt+cm4h1UENTP6 +liazAYOaxjLHlj5CtTg4FQ4ytop5xwFePJSkzP8KzBGWvtwceViyEWvx17BtexN tQRacbpyz8oK875PRqDbzVCUGrHgfVwetjfMkiXehhHbvkDbtCD3aHKxog/PXU5/ chxLXhpQ9ypNXlTut+VLIAUuSPjWda5h7wWgIwoB6ax8y1N+Bs3N6YRHXzOkcb2d k6IEiu1+LeW4+ewnXhHD =Ft7n -----END PGP SIGNATURE----- --=-1397587095-990723-4660-7848-3-=-- --===============7564435895670577386== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk --===============7564435895670577386==--