Page 1 of 1
HTML anchors in Lister
Posted: 2011-10-12, 06:59 UTC
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?
Posted: 2011-10-13, 14:14 UTC
by ghisler(Author)
I will consider it, thanks for the suggestion.
Posted: 2011-10-13, 18:11 UTC
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.
Posted: 2011-10-13, 18:42 UTC
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.
Posted: 2011-10-13, 18:56 UTC
by MVV
Additional switch is more universal way. It will work with any extension, with no extension at all, with dots in anchors etc.
Posted: 2011-10-13, 19:19 UTC
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...
Posted: 2011-10-13, 19:32 UTC
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.
Posted: 2011-11-26, 12:52 UTC
by Maximus
2
ghisler(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.
Posted: 2011-11-26, 21:45 UTC
by petermad
It works fine with ANSI encoding, but not with UTF-8.
Confirmed.
Posted: 2011-12-06, 18:35 UTC
by Maximus
2ghisler(Author)
Fixed. Thanks.
Posted: 2011-12-06, 19:36 UTC
by petermad
Yes - UTF-8 problem confirmed fixed in TC 8.0b11

Posted: 2011-12-07, 16:43 UTC
by ghisler(Author)
Thanks!