HTML anchors in Lister

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Maximus
Member
Member
Posts: 147
Joined: 2006-04-12, 10:51 UTC
Location: Ukraine
Contact:

HTML anchors in Lister

Post by *Maximus »

I want to open in Lister some html-file with anchor in the way like this:
"D:\Total Commander\TOTALCMD.EXE" /O /S=L:T5 file.html#anchor
But TC does not understand that #anchor is anchor. TC think that it is part of name.
Can be implemented support of this possibility?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will consider it, thanks for the suggestion.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Maybe some additional command line parameter (or subparameter of /S:) to enable this? Sometimes we have # in filenames and such feature may break viewing of such files.
User avatar
Maximus
Member
Member
Posts: 147
Joined: 2006-04-12, 10:51 UTC
Location: Ukraine
Contact:

Post by *Maximus »

2MVV
I think that this parameter is not required. It will be enough to perceive # as anchor if it is placed after the last known extension with dot.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Additional switch is more universal way. It will work with any extension, with no extension at all, with dots in anchors etc.
User avatar
Maximus
Member
Member
Posts: 147
Joined: 2006-04-12, 10:51 UTC
Location: Ukraine
Contact:

Post by *Maximus »

Hm. But even if the key will be implemented and used, this does not exclude false definition of anchor, for example if there present dot in it...
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

If key is specified, TC would just treat name part after last # as anchor, w/o any guessing. So user can use it if he needs such mode and doesn't worry if not.
User avatar
Maximus
Member
Member
Posts: 147
Joined: 2006-04-12, 10:51 UTC
Location: Ukraine
Contact:

Post by *Maximus »

2ghisler(Author)
20.11.11 Added: Lister: Jump to bookmark in html when loading from command line e.g. TOTALCMD.EXE /S=L:T5 file.html#bookmark (32/64)
It works fine with ANSI encoding, but not with UTF-8.
User avatar
petermad
Power Member
Power Member
Posts: 16118
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

It works fine with ANSI encoding, but not with UTF-8.
Confirmed.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Maximus
Member
Member
Posts: 147
Joined: 2006-04-12, 10:51 UTC
Location: Ukraine
Contact:

Post by *Maximus »

2ghisler(Author)
Fixed. Thanks.
User avatar
petermad
Power Member
Power Member
Posts: 16118
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Yes - UTF-8 problem confirmed fixed in TC 8.0b11 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply