Using "]" as suffix in custom fields

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Using "]" as suffix in custom fields

Post by *roentgen »

None of the following situations works correctly:

[=tc.size"]"]
[=tc.size"xxx]"]
[=tc.size"]xxx"]

Using something like [="["tc.size] or [=tc.size"["] works as expected.
TC for Linux please!
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3378
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

confirmed - the prob is u cant even use [N] [<some text>] as TC thinks ALL [] must be a function....
Hoecker sie sind raus!
User avatar
RID500
Member
Member
Posts: 194
Joined: 2006-11-20, 12:38 UTC

Post by *RID500 »

Didn't an escape char like \ helps?

[=tc.size\]]

(didn't test myself)
/join #TCMD Chat at irc.freenode.net - Today's newbies are tomorrow's experts.
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

2Sir_SiLvA
Hmm, you seem to be talking about the MRT fields. In there inserting such characters is done by using [[] or []].

However, I am referring to the custom fields that one may insert in tool-tips or bellow thumbnails.

2RID500
No :D
TC for Linux please!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, [ and ] characters ar NOT allowed within conditional strings inside the custom fields, e.g. [=tc.size"]"].

The only location where they are allowed as literals are as described by roentgen, outside the custom fields, as [[] and []].
Author of Total Commander
https://www.ghisler.com
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

Second try: [="["tc.size] works.
TC for Linux please!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Well, you are just lucky there, because TC looks for the closing ] and not for the next opening [ bracket.
Author of Total Commander
https://www.ghisler.com
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

Just about when I was to say to move this "karma related" thread to the "TC7 Behaviour which will not be changed" section... it happened :wink:
TC for Linux please!
Post Reply