Page 1 of 1

[Wish]Adding a comment for multiple files

Posted: 2007-02-05, 01:27 UTC
by m^2
As in title. I sometimes want to add the same comment for many files. I know there may be problems when files are already commented, but I think that warning with "overwrite/append" options would be enough...

Posted: 2007-02-05, 08:38 UTC
by gbo
It is already possible to do that if I understood correctly your suggestion

http://www.ghisler.ch/board/viewtopic.php?p=99579#99579

Posted: 2007-02-05, 13:20 UTC
by m^2
Thanks qbo, I didn't know about it.
But there's probably no way to append the comment...
And that's the thing I need.

Posted: 2007-02-05, 13:43 UTC
by Lefteous
2m^2
In the linked thread I described how to perform this task. Here is a detailed example. The following files are selected:
File1 (comment: "green")
File2 (comment: "red")
File3 (comment: "blue")

Now the user wants to append the comment " Important!" to all these files.

1. Open the "Change attributes dialog".
2. Clkick on the "more attributes" button
3. Set plugin to tc and property to "Comment".
4. In the same line press the + button and choose [tc.Comment] from the menu. This field appears in the value field.
5. Now append " Important!" to the value. The value should now be

Code: Select all

[tc.Comment] Important!
6. Press OK to start.

The file comments are now:

File1 (comment: "green Important!")
File2 (comment: "red Important!")
File3 (comment: "blue Important!")

Posted: 2007-02-05, 14:01 UTC
by m^2
I forgot there's [tc.Comment] :oops:
Thank you, Lefteous.

Posted: 2007-02-05, 15:17 UTC
by SanskritFritz

Posted: 2007-02-05, 15:36 UTC
by m^2
Yes, I know it can do everything ;)
But the built-in solutin is enough for me..and it has 2 advantages:
It's smaller.
It's not AHK :P.

Posted: 2007-02-07, 15:36 UTC
by m^2
Is it possible to add a new line this way?
EDIT: Does this format support multiline comments?
When I write a comment with ctrl+z editor, comments are saved with spaces instead of newlines.

Posted: 2007-02-07, 15:38 UTC
by SanskritFritz
m^2 wrote:Is it possible to add a new line this way?
No, TC trims all newlines.

Posted: 2007-02-07, 21:35 UTC
by Hacker
m^2,
Is it possible to add a new line this way?
EDIT: Does this format support multiline comments?
Files.bbs does, descript.ion does not.

HTH
Roman

Posted: 2007-02-07, 21:41 UTC
by m^2
SanskritFritz, Hacker,
Thank you.