Hotlink for urls when you use the viewer *req feature*
Moderators: Hacker, petermad, Stefan2, white
Hotlink for urls when you use the viewer *req feature*
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
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
Re: Hotlink for urls when you use the viewer *req feature*
... 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.nysan wrote:hope u take this under consideration mr ghisler..
Jordi
Re: Hotlink for urls when you use the viewer *req feature*
Yeah, coloured clickable URL's in Lister - missing this feature for years.
... so SUPPORT ++
... so SUPPORT ++

Everyone believing in telekinesis, raise my hand!
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
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
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!
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.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
SanskritFritz
Lesmo16
ghisler(Author)
I use this function in PHP for convert text to URLs:
Maybe could be adapt a similar function for delphi.
Sorry if I have committed some barbarity against the programation

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. ¿?I'M not sure if that is a good idea. I requires content matching, which could result in a severe performance loss
Lesmo16
SanskritFritzSo it should be an option
I tooAllright, allright...

ghisler(Author)
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.Detecting a link in plain text isn't that clear, with ~200 regional top level domains and complex paths...
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 ;
Sorry if I have committed some barbarity against the programation


I can read English, but... I write like Tarzan. (sorry)