[TC 11.03rc6] cm_edit: placeholder [P] not always working in /N parameter

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC 11.03rc6] cm_edit: placeholder [P] not always working in /N parameter

Post by *white »

sa16 wrote: 2024-02-15, 12:18 UTC I have this behavior in the TC11.01-11.03.
There is a command: cm_Edit /CGL0N="<[P].txt"
When this command does not work (creates a .txt file instead of Parent_folder.txt), I execute the cm_Edit /C command (you can refuse to create a file) and everything gets better.
When this command works correctly (creates a file Parent_folder.txt), I execute the NewFolder (F7) command (you can refuse to create a folder) and everything breaks down.
Confirmed.
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: [TC 11.03rc6] cm_edit: placeholder [P] not always working in /N parameter

Post by *sa16 »

2white
Thank you for the confirmation!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03rc6] cm_edit: placeholder [P] not always working in /N parameter

Post by *ghisler(Author) »

Placeholders like [P] are not currently supported with G because they are replaced within the edit box.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.03rc6] cm_edit: placeholder [P] not always working in /N parameter

Post by *white »

ghisler(Author) wrote: 2024-02-15, 14:44 UTC Placeholders like [P] are not currently supported with G because they are replaced within the edit box.
Well, as mentioned by sa16, it works after you have one time used it without G. And then it stops working again when you use F7.
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [TC 11.03rc6] cm_edit: placeholder [P] not always working in /N parameter

Post by *AntonyD »

ghisler(Author) wrote: 2024-02-15, 14:44 UTC Placeholders like [P] are not currently supported with G because they are replaced within the edit box.
I could not find anything related to this phrase in a CHM help file.
I am overlooked something special and under small font?

And of course see White's note above! Can also confirm Very unstable behavior.
Last edited by AntonyD on 2024-02-15, 15:42 UTC, edited 1 time in total.
#146217 personal license
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.03rc6] cm_edit: placeholder [P] not always working in /N parameter

Post by *Fla$her »

Confirmed.

Immediately after opening TC or executing cm_Edit /C from the command line, the command from the button is executed correctly, and after F7 and Esc it's incorrect.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03rc6] cm_edit: placeholder [P] not always working in /N parameter

Post by *ghisler(Author) »

The reason is that the field "last current file" isn't set when you call the command directly. I will fix it.
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [TC 11.03rc6] cm_edit: placeholder [P] not always working in /N parameter

Post by *AntonyD »

I will fix it.
And so HOW in a nearest future version it will work?
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03rc6] cm_edit: placeholder [P] not always working in /N parameter

Post by *ghisler(Author) »

I will pass the name of the file (with full path), its size and time to the placeholder parser also with /G option. Currently it's only passed there when not using the /G option, so it only worked when using regular cm_edit first.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.03rc6] cm_edit: placeholder [P] not always working in /N parameter

Post by *Fla$her »

Fixed in TC 11.03.
Overquoting is evil! 👎
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: [TC 11.03rc6] cm_edit: placeholder [P] not always working in /N parameter

Post by *sa16 »

15.02.24 Fixed: cm_Edit with parameter /CGL0N="<[P].txt" didn't work correctly (some placeholders like name or path couldn't be handled) (32/64)
All right, thank you for adding!
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.03rc6] cm_edit: placeholder [P] not always working in /N parameter

Post by *white »

Tested OK using TC 11.03.

Moderator message from: white » 2024-02-22, 09:29 UTC

Moved to Fixed bugs.
Post Reply