[Wish]Adding a comment for multiple files

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

[Wish]Adding a comment for multiple files

Post 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...
User avatar
gbo
Senior Member
Senior Member
Posts: 329
Joined: 2005-03-31, 19:58 UTC
Location: Lausanne (Switzerland)

Post 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
Gil
Licence #17346

90% of coding is debugging. The other 10% is writing bugs.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post 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.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post 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!")
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

I forgot there's [tc.Comment] :oops:
Thank you, Lefteous.
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

I switched to Linux, bye and thanks for all the fish!
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post 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.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post 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.
Last edited by m^2 on 2007-02-07, 15:52 UTC, edited 1 time in total.
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

m^2 wrote:Is it possible to add a new line this way?
No, TC trims all newlines.
I switched to Linux, bye and thanks for all the fish!
User avatar
Hacker
Moderator
Moderator
Posts: 13081
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post 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
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

SanskritFritz, Hacker,
Thank you.
Post Reply