Discussions of development and use of the Sup email client
 help / color / mirror / Atom feed
* clicking links
@ 2014-09-15 17:52 scott
  2014-09-15 17:56 ` [sup] " C. R. Oldham
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: scott @ 2014-09-15 17:52 UTC (permalink / raw)
  To: supmua


[-- Attachment #1.1: Type: text/plain, Size: 129 bytes --]

Is there a recommended way to click on links within an email in Sup, and 
have them launch in the default browser, e.g. Firefox?

[-- Attachment #1.2: Type: text/html, Size: 152 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [sup] clicking links
  2014-09-15 17:52 clicking links scott
@ 2014-09-15 17:56 ` C. R. Oldham
  2014-09-15 18:45   ` Gaute Hope
  2014-09-15 19:10 ` Ruthard Baudach
  2014-09-16 21:17 ` Tero Tilus
  2 siblings, 1 reply; 10+ messages in thread
From: C. R. Oldham @ 2014-09-15 17:56 UTC (permalink / raw)
  To: supmua

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

Is there a recommended way to click on links within an email in Sup, and have them launch in the default browser, e.g. Firefox?

On Mac OS X in iTerm2, Command-click will open the link you click on in the default browser.

I'm guessing they borrowed that feature from one of the Linux terminal emulators.

--cro


[-- Attachment #2: Type: text/html, Size: 1078 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [sup] clicking links
  2014-09-15 17:56 ` [sup] " C. R. Oldham
@ 2014-09-15 18:45   ` Gaute Hope
  0 siblings, 0 replies; 10+ messages in thread
From: Gaute Hope @ 2014-09-15 18:45 UTC (permalink / raw)
  To: C. R. Oldham; +Cc: supmua

It depends on your terminal, check out what options there are for it.
rxvt-unicode for example has some matching patterns and a browser
setting somewhere.

Other than that @rakoo has a PR that isn´t merged yet where you can
goto urls with a key binding (#241,
https://github.com/sup-heliotrope/sup/pull/241)

On Mon, Sep 15, 2014 at 7:56 PM, C. R. Oldham <cro@ncbt.org> wrote:
> Is there a recommended way to click on links within an email in Sup, and
> have them launch in the default browser, e.g. Firefox?
>
>
> On Mac OS X in iTerm2, Command-click will open the link you click on in the
> default browser.
>
> I'm guessing they borrowed that feature from one of the Linux terminal
> emulators.
>
> --cro
>
> --
> You received this message because you are subscribed to the Google Groups
> "The Sup email client" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to supmua+unsubscribe@googlegroups.com.
> To post to this group, send email to supmua@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/supmua/etPan.54172834.216231b.503a%40cro-mbp.local.
>
> For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [sup] clicking links
  2014-09-15 17:52 clicking links scott
  2014-09-15 17:56 ` [sup] " C. R. Oldham
@ 2014-09-15 19:10 ` Ruthard Baudach
  2014-09-15 19:34   ` Scott Bonds
  2014-09-15 21:41   ` Per Andersson
  2014-09-16 21:17 ` Tero Tilus
  2 siblings, 2 replies; 10+ messages in thread
From: Ruthard Baudach @ 2014-09-15 19:10 UTC (permalink / raw)
  To: supmua

[-- Attachment #1: Type: text/plain, Size: 829 bytes --]

>== Auszüge aus der Nachricht von  scott vom 2014-09-15 19:52:
> Is there a recommended way to click on links within an email in Sup, and 
> have them launch in the default browser, e.g. Firefox?

This feature was discussed a long time ago, and decided to be to
difficult to implement from within sup, especially as most terminals
implement such a feature, so there should be no need to double implement
it.

So the answer as to the recommended way to click on a link would be:

  "use the right terminal"

Would be an idea to address this topic in the wiki, as I do not know
which terminals implement clicking on links, and how they have to
be configured to activate links.

I am using stumpwm and xterm, and copy–and–paste it into the browser.
Well, ehm, it does work, actually...

Greetings, Ruthard

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [sup] clicking links
  2014-09-15 19:10 ` Ruthard Baudach
@ 2014-09-15 19:34   ` Scott Bonds
  2014-09-15 21:38     ` Gaute Hope
  2014-09-15 21:41   ` Per Andersson
  1 sibling, 1 reply; 10+ messages in thread
From: Scott Bonds @ 2014-09-15 19:34 UTC (permalink / raw)
  To: Ruthard Baudach; +Cc: supmua

Got it. Now in wiki form:

https://github.com/sup-heliotrope/sup/wiki/Clicking-On-Links

On Mon, Sep 15, 2014 at 09:10:33PM +0200, Ruthard Baudach wrote:
> >== Auszüge aus der Nachricht von  scott vom 2014-09-15 19:52:
> > Is there a recommended way to click on links within an email in Sup, and 
> > have them launch in the default browser, e.g. Firefox?
> 
> This feature was discussed a long time ago, and decided to be to
> difficult to implement from within sup, especially as most terminals
> implement such a feature, so there should be no need to double implement
> it.
> 
> So the answer as to the recommended way to click on a link would be:
> 
>   "use the right terminal"
> 
> Would be an idea to address this topic in the wiki, as I do not know
> which terminals implement clicking on links, and how they have to
> be configured to activate links.
> 
> I am using stumpwm and xterm, and copy–and–paste it into the browser.
> Well, ehm, it does work, actually...
> 
> Greetings, Ruthard




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [sup] clicking links
  2014-09-15 19:34   ` Scott Bonds
@ 2014-09-15 21:38     ` Gaute Hope
  0 siblings, 0 replies; 10+ messages in thread
From: Gaute Hope @ 2014-09-15 21:38 UTC (permalink / raw)
  To: Scott Bonds; +Cc: Ruthard Baudach, supmua

Nice, you could put a link to it under Advanced usage.

On Mon, Sep 15, 2014 at 9:34 PM, Scott Bonds <scott@mixbook.com> wrote:
> Got it. Now in wiki form:
>
> https://github.com/sup-heliotrope/sup/wiki/Clicking-On-Links
>
> On Mon, Sep 15, 2014 at 09:10:33PM +0200, Ruthard Baudach wrote:
>> >== Auszüge aus der Nachricht von  scott vom 2014-09-15 19:52:
>> > Is there a recommended way to click on links within an email in Sup, and
>> > have them launch in the default browser, e.g. Firefox?
>>
>> This feature was discussed a long time ago, and decided to be to
>> difficult to implement from within sup, especially as most terminals
>> implement such a feature, so there should be no need to double implement
>> it.
>>
>> So the answer as to the recommended way to click on a link would be:
>>
>>   "use the right terminal"
>>
>> Would be an idea to address this topic in the wiki, as I do not know
>> which terminals implement clicking on links, and how they have to
>> be configured to activate links.
>>
>> I am using stumpwm and xterm, and copy–and–paste it into the browser.
>> Well, ehm, it does work, actually...
>>
>> Greetings, Ruthard
>
>
> --
> You received this message because you are subscribed to the Google Groups "The Sup email client" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to supmua+unsubscribe@googlegroups.com.
> To post to this group, send email to supmua@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/supmua/20140915193458.GO18461%40bao.ggr.com.
> For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [sup] clicking links
  2014-09-15 19:10 ` Ruthard Baudach
  2014-09-15 19:34   ` Scott Bonds
@ 2014-09-15 21:41   ` Per Andersson
  1 sibling, 0 replies; 10+ messages in thread
From: Per Andersson @ 2014-09-15 21:41 UTC (permalink / raw)
  To: Ruthard Baudach; +Cc: supmua

On Mon, Sep 15, 2014 at 9:10 PM, Ruthard Baudach <ruthard.baudach@web.de> wrote:
>>== Auszüge aus der Nachricht von  scott vom 2014-09-15 19:52:
>> Is there a recommended way to click on links within an email in Sup, and
>> have them launch in the default browser, e.g. Firefox?
>
> This feature was discussed a long time ago, and decided to be to
> difficult to implement from within sup, especially as most terminals
> implement such a feature, so there should be no need to double implement
> it.

Opening from the terminal with a keybinding would be nice. I definitely think
this is in scope for Sup.


> So the answer as to the recommended way to click on a link would be:
>
>   "use the right terminal"
>
> Would be an idea to address this topic in the wiki, as I do not know
> which terminals implement clicking on links, and how they have to
> be configured to activate links.
>
> I am using stumpwm and xterm, and copy–and–paste it into the browser.
> Well, ehm, it does work, actually...

I am using rxvt-unicode-256color and have configured it with

URxvt.perl-xt-common: default,matcher
URxvt.urlLauncher: iceweasel
URxvt.matcher.button: 3
URxvt.matcher.pattern: \\bwww\\.[\\w-]\\.[\\w./?&@#-][\\w/-]

the above configuration, in $HOME/.Xdefaults or $HOME/.Xresources,
makes links (the matched pattern) in the terminal underlined and open
in iceweasel on right click with the mouse.

I'll add this to the wiki.


--
Per

PS. I use XMonad.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [sup] clicking links
  2014-09-15 17:52 clicking links scott
  2014-09-15 17:56 ` [sup] " C. R. Oldham
  2014-09-15 19:10 ` Ruthard Baudach
@ 2014-09-16 21:17 ` Tero Tilus
  2014-09-17  7:26   ` Gaute Hope
  2 siblings, 1 reply; 10+ messages in thread
From: Tero Tilus @ 2014-09-16 21:17 UTC (permalink / raw)
  To: supmua

scott, 2014-09-15 20:52:
> Is there a recommended way to click on links within an email in Sup,
> and have them launch in the default browser, e.g. Firefox?

I go around this by using publish hook to save the contents of html
attachment/part to public url, show the url in sup as message and then
ctrl-click that url to open the html message.

Hook looks like this
https://gist.github.com/terotil/b4688f7529df21ac82e1

-- 
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [sup] clicking links
  2014-09-16 21:17 ` Tero Tilus
@ 2014-09-17  7:26   ` Gaute Hope
  2014-09-17 11:04     ` Tero Tilus
  0 siblings, 1 reply; 10+ messages in thread
From: Gaute Hope @ 2014-09-17  7:26 UTC (permalink / raw)
  To: supmua, Tero Tilus

Excerpts from Tero Tilus's message of September 16, 2014 23:17:
> scott, 2014-09-15 20:52:
>> Is there a recommended way to click on links within an email in Sup,
>> and have them launch in the default browser, e.g. Firefox?
>
> I go around this by using publish hook to save the contents of html
> attachment/part to public url, show the url in sup as message and then
> ctrl-click that url to open the html message.
>
> Hook looks like this
> https://gist.github.com/terotil/b4688f7529df21ac82e1
>

Hi Tero,

I belive this works for 'viewing / reading html parts', how do you use
your terminal to detect and open the link?

I've put your solution (with a link to this thread) for viewing
attachments in the wiki [0], I think the old discussion can be found
here [1]. My quick insertion of links in the wiki could probably benefit
from being separated out in a separate sub-section.

Note that if you are using Sup on your local machine and you don't have
a decoding hook, you should be able to press Enter on the HTML
attachment and have it open in the default application for you desktop.

There used to be an empty 'Webbrowser integration' wiki-page, but I
think we got it covered now with 'Clicking links' [2] and 'Reading html
mails' [0] using your solution.

Cheers, Gaute

[0] https://github.com/sup-heliotrope/sup/wiki/Viewing-Attachments#viewing-attachments
[1] http://supmua.org/community/sup-devel/msg00530.html
[2] https://github.com/sup-heliotrope/sup/wiki/Clicking-On-Links



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [sup] clicking links
  2014-09-17  7:26   ` Gaute Hope
@ 2014-09-17 11:04     ` Tero Tilus
  0 siblings, 0 replies; 10+ messages in thread
From: Tero Tilus @ 2014-09-17 11:04 UTC (permalink / raw)
  To: supmua

Gaute Hope, 2014-09-17 10:26:
> I belive this works for 'viewing / reading html parts', how do you
> use your terminal to detect and open the link?

My usual terminals (Gnome terminal, LXTerminal) detect links and
support ctrl-click out of the box.  Haven't really paid any attention
to that part.

> Note that if you are using Sup on your local machine and you don't
> have a decoding hook, you should be able to press Enter on the HTML
> attachment and have it open in the default application for you
> desktop.

I'm aware of that.  Since I'm running sup on remote VPS this is not an
option.  Locally it is of course way more convenient to rely on
default mailcap behavior.

-- 
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-09-17 11:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-15 17:52 clicking links scott
2014-09-15 17:56 ` [sup] " C. R. Oldham
2014-09-15 18:45   ` Gaute Hope
2014-09-15 19:10 ` Ruthard Baudach
2014-09-15 19:34   ` Scott Bonds
2014-09-15 21:38     ` Gaute Hope
2014-09-15 21:41   ` Per Andersson
2014-09-16 21:17 ` Tero Tilus
2014-09-17  7:26   ` Gaute Hope
2014-09-17 11:04     ` Tero Tilus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox