Re: highlight URL in pager
Here is what I have been used: # Ronald J Kimball's url regexp. mutt-user 04/05/28 color body brightyellow black\ "(https?|ftp|gopher|finger)://([^"'"'"' \t\r\n)>.,!?&]\ |[.,!?][^"'"'"' \t\r\n)>.,!?&]|&([^g]|$)|&g([^t]|$)|>([^;]|$))+" color body brightred black\ "[-a-zA-Z_0-9.+]+@[-a-zA-Z_0-9.]+" color body green black "(^| )_[-a-zA-Z0-9_]+_[,.?]?[\n]" -- Marcelo
Re: highlight URL in pager
!-- On Wed 28.Aug'13 at 10:09:49 BST, Eric Smith (e...@fruitcom.com), wrote: > Thanks for this Marco. > > For some reason my version 1.5.21 did not expand the char class > square brackets so I had to change the regex thusly; > color body brightgreen black "(http|https|ftp|news|telnet|finger)://[^ > \"\t\r\n]*" > > -- > Eric Smith > > Marco wrote on Wed-21-Aug 13 5:12PM > > On 2013–08–21 Eric Smith wrote: > > > > > How do I highlight URL's in the mutt pager? > > > > I use the following settings (I don't remember from which blog I > > stole them) > > > > # URLs > > color body brightgreen black "(http[s]|ftp|news|telnet|finger)://[^ > > \"\t\r\n]*" > > color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"; > > mono body bold "(http[s]|ftp|news|telnet|finger)://[^ > > \"\t\r\n]*" > > mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"; > > > > # email addresses > > color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" > > mono body bold "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" > > > > Marco Eric, there are some excellent examples of this on the mutt wiki page, there's a link to user example configurations. Take a look there and you definitely see some good tips for this type of thing, and other stuff too. Jamie. -- James Griffin: jmz at kontrol.kode5.net A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38
Re: highlight URL in pager
Thanks for this Marco. For some reason my version 1.5.21 did not expand the char class square brackets so I had to change the regex thusly; color body brightgreen black "(http|https|ftp|news|telnet|finger)://[^ \"\t\r\n]*" -- Eric Smith Marco wrote on Wed-21-Aug 13 5:12PM > On 2013–08–21 Eric Smith wrote: > > > How do I highlight URL's in the mutt pager? > > I use the following settings (I don't remember from which blog I > stole them) > > # URLs > color body brightgreen black "(http[s]|ftp|news|telnet|finger)://[^ > \"\t\r\n]*" > color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"; > mono body bold "(http[s]|ftp|news|telnet|finger)://[^ > \"\t\r\n]*" > mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"; > > # email addresses > color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" > mono body bold "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" > > Marco
Re: highlight URL in pager
Thanks Alexander. I looked before I posted at the options for my mintty on cygwin and could not find such a setting. -- Eric Smith Alexander Huemer wrote on Wed-21-Aug 13 5:55PM > On Wed, Aug 21, 2013 at 04:25:17PM +0200, Eric Smith wrote: > > How do I highlight URL's in the mutt pager? > > I do that with my terminal emulator, which is urxvt with the url-select > extension[1]. very convenient. It has an option to underline URLs and > underlined text can be displayed with given properties through > Xresources. I personally have my URLs green. Other terminal emulators > have similar features. > > Kind regards, > -Alexander Huemer > > [1] https://github.com/muennich/urxvt-perls
Re: highlight URL in pager
On Wed, Aug 21, 2013 at 04:25:17PM +0200, Eric Smith wrote: > How do I highlight URL's in the mutt pager? I do that with my terminal emulator, which is urxvt with the url-select extension[1]. very convenient. It has an option to underline URLs and underlined text can be displayed with given properties through Xresources. I personally have my URLs green. Other terminal emulators have similar features. Kind regards, -Alexander Huemer [1] https://github.com/muennich/urxvt-perls
Re: highlight URL in pager
On 2013–08–21 Eric Smith wrote: > How do I highlight URL's in the mutt pager? I use the following settings (I don't remember from which blog I stole them) # URLs color body brightgreen black "(http[s]|ftp|news|telnet|finger)://[^ \"\t\r\n]*" color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"; mono body bold "(http[s]|ftp|news|telnet|finger)://[^ \"\t\r\n]*" mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"; # email addresses color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" mono body bold "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" Marco signature.asc Description: Digital signature