Universal Viewer - Lister alternative

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

Installer still says Vs 3.8.4
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Ups. Fixed
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

i need testing of URL hiligthing feature.
I upload beta to beta URL (1st message), the option added in Text tab. The Unicode mode not supported yet...
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

No Pro ?

Post by *Clo »

2Alextp

:) Hello Alexeï !

• Hm… There is only the Free version to download as a beta… ?

- It could be sufficient temporarily to test this, though…

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Yes, currently. (I have probs with uploading)
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

yep !!!

Post by *Clo »

2Alextp

:) The new highlighting feature works. Currently, with Unicode UTF-16 LE (I know, not supported yet)
the display switches to… hexa when the option is ON ! :D

• Just waiting for the Pro version (and Unicode support ? ).

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
petermad
Power Member
Power Member
Posts: 16019
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Alextp

I have tested the URL highlightning a little. There are several protocols that are not supported, and when adding username and password to the URL, it is only highlighted until the @.

Here are examples of URL's that should all be fully highlighted but aren't:

file:///c:/mysite/index.htm
http://user:passw@mysite.com:80/index.htm?search
https://mysite.com
ftp://user:passw@mysite.com
gopher://mysite.com
news://comp.infosystems.www.misc
nntp://mysite.com
telnet://mysite.com
wais://mysite.com:210/database
prospero://mysite.com


You can see the basic RFC here http://tools.ietf.org/html/rfc1738

If you read this in a browser you will probably see that all the examples above are highlighted, indicating that this board recognizes them as URL's.
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
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Minimalist---

Post by *Clo »

2petermad

:) Hello Peter !
…There are several protocols that are not supported, and when adding username and password to the URL,
it is only highlighted until (up to :shock: *) the @ …
• Right, I confirm, but strangely, the e-mail addresses are totally highlighted as expected, including the @ and forward…
…If you read this in a browser you will probably see that all the examples above are highlighted…

- Which browser ? I read the forum in my crystal ball, it's well known ! :lol:
• Hm… More seriously :  Are all these protocols needed really ? I just tested H T T P quickly to get a clue.
In your examples there is a couple of exotic ones I never heard about before… :roll: Maybe a poll by Alextp ?

• Anyway, I'm not a staunch supporter of such a feature in TXT, so optional is OK.
- However, I guess the highlighting could be bold too
(when not already in some other text formats, supposing that others be supported later…)

:mrgreen: FR
Claude
Clo
* Deprived of coated with caramel potatoes for one week !
Last edited by Clo on 2009-03-03, 08:31 UTC, edited 1 time in total.
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2petermad
they all hilighted now. Thanks for testing: I missed protocols and '@'. The '/' as last char is not matched currently.

I changed regex for protocol to:
[a-z]{3,8}
instead of (ftp|http|gopher|..)
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Not all as quantity

Post by *Clo »

2Alextp

:) Hello !

• Is the changed beta available ?
- With the first one, there is a bug when viewing a text file in which is the same F T P URL root
repetitively as a large number of instances.
- It's highlighted by bunches of lines here and there, not all are, it's quite random…
- Just view a TC F T P short log (Log2.txt) to test that…

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Note: I have 2 regex: one for web, one for emails.

Clo Uploaded
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Snag remaining

Post by *Clo »

:arrow: Alextp

:) It seems it works with all protocols now, TX. But the snag I reported above remains, please see THIS IMAGE
- The file is 1850 lines (as the numbering of the gutter says).
- All above #182 are OK, all below aren't higlighted at all, despite this is the same URL…
:?:

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

All above #182 are OK, all below aren't higlighted at all
ah, you found it.
I have 100 URL records array. :) So urls below 100's are not found.
User avatar
petermad
Power Member
Power Member
Posts: 16019
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I changed regex for protocol to:
[a-z]{3,8}
I checked how the phpBB board does it - it uses: [\w]+?:// to detect the protocol part of the url.

The whole detection expression they use is:

Code: Select all

 (^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)
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
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

petermad
Thanks, i missed some chars.
Post Reply