Hotlink for urls when you use the viewer *req feature*

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
nysan
New Member
New Member
Posts: 1
Joined: 2006-11-12, 20:40 UTC

Hotlink for urls when you use the viewer *req feature*

Post by *nysan »

Hi

i would like to see hotlinking when you use the view funktion in total commander .. thats a feature that i have been missing...

for exeample if there is a weblink in the text you should just be able to press it and it opens the default webbrowser...

hope u take this under consideration mr ghisler..

//nysan
User avatar
Jordi
Senior Member
Senior Member
Posts: 239
Joined: 2004-12-17, 18:30 UTC

Re: Hotlink for urls when you use the viewer *req feature*

Post by *Jordi »

nysan wrote:hope u take this under consideration mr ghisler..
... in the meantime you may wish to use PSP Pad as your F4 Editor: http://www.pspad.com/ . It provides clickable URLs in text files.

Jordi
User avatar
Lesmo16
Senior Member
Senior Member
Posts: 380
Joined: 2005-02-07, 07:18 UTC
Location: Germany

Re: Hotlink for urls when you use the viewer *req feature*

Post by *Lesmo16 »

Yeah, coloured clickable URL's in Lister - missing this feature for years.

... so SUPPORT ++ :)
Everyone believing in telekinesis, raise my hand!
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

I'M not sure if that is a good idea. I requires content matching, which could result in a severe performance loss. Listers main advantage over similar viewers is SPEED.
I switched to Linux, bye and thanks for all the fish!
User avatar
Lesmo16
Senior Member
Senior Member
Posts: 380
Joined: 2005-02-07, 07:18 UTC
Location: Germany

Post by *Lesmo16 »

SanskritFritz wrote:I requires content matching, which could result in a severe performance loss. Listers main advantage over similar viewers is SPEED.
So it should be an option. :wink:
Everyone believing in telekinesis, raise my hand!
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

Allright, allright... :oops:
I switched to Linux, bye and thanks for all the fish!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48173
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm currently doing this only in the html viewer, because there it's clear what is a link and what isn't. Detecting a link in plain text isn't that clear, with ~200 regional top level domains and complex paths...
Author of Total Commander
https://www.ghisler.com
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2ghisler(Author)
Hmm, recongizing a string that starts with http:// shouldnt be so difficult... otherwise if that is missing, it doesnt have to be bulletproof, if you see a www.*.com, just go for it ;-)

EDIT: see this board software, you can even do better :-)
I switched to Linux, bye and thanks for all the fish!
User avatar
petermad
Power Member
Power Member
Posts: 14861
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

IMHO an URL should always be written including its protocol (for example http://) - otherwise it is not an URL!
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

SanskritFritz
I'M not sure if that is a good idea. I requires content matching, which could result in a severe performance loss
AFAIK lister only load a few of the file into memory. I don't know exactly the amount. Maybe if the size is small the performance is not affected. ¿?

Lesmo16
So it should be an option
SanskritFritz
Allright, allright...
I too ;)

ghisler(Author)
Detecting a link in plain text isn't that clear, with ~200 regional top level domains and complex paths...
Maybe a different way for identify the links...¿?, could be used a regular expression for search and replace in the "text" loaded into memory? I don't know exactly how delphi do it, but many programs languages have these similar options.
I use this function in PHP for convert text to URLs:

Code: Select all

$text = "Visit TC page http://www.ghisler.com" ;
$text = preg_replace("/http:\/\/[^\s]+/i","<a href=\"\\0\">\\0</a>",$text) ;
echo $text ;
Maybe could be adapt a similar function for delphi.
Sorry if I have committed some barbarity against the programation :roll: :wink:
I can read English, but... I write like Tarzan. (sorry)
Post Reply