How to realize the Fixed Comment function?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
rt2ryu
Junior Member
Junior Member
Posts: 34
Joined: 2018-02-26, 10:30 UTC

How to realize the Fixed Comment function?

Post by *rt2ryu »

I set some color label, like matching to the Comment content for undo or todo correspond to different color.

However I would like to realize the fixed content of the Comment to add todo and undo by a buttom or shortkey.

for the time being,I need call out Alt + a (Alt + a is my shortkey to call the Change Attributes panel),than F2 call retain Comment scheme every time to add those lable keyword.
Can anyway to integrated above steps?

maybe like a buttom

Code: Select all

cm_editComment
param
"%PS" "TODO"
unfortunately it's not allow in TC9,the em_editComment can't with param

PS: I know the under way to do this, and use those steps for a long time. I just want to do it with one step.
So the question is not select multi-files ,the question is to add the fix content

- Select one or more files
- MENU Files -> Change Attributes...
- [x] Change Plugin attributes:
- [More attributes]
- | tc | comment | your text here |
[OK]
Last edited by rt2ryu on 2021-03-15, 21:03 UTC, edited 2 times in total.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: How to realize the Fixed Comment function?

Post by *Stefan2 »

Add the SAME comment to several selected files

- Select one or more files
- MENU Files -> Change Attributes...
- [x] Change Plugin attributes:
- [More attributes]
- | tc | comment | your text here |
[OK]

>>> https://ghisler.ch/board/viewtopic.php?p=355053#p355053





 
User avatar
rt2ryu
Junior Member
Junior Member
Posts: 34
Joined: 2018-02-26, 10:30 UTC

Re: How to realize the Fixed Comment function?

Post by *rt2ryu »

Stefan2 wrote: 2021-03-15, 17:56 UTC Add the SAME comment to several selected files

- Select one or more files
- MENU Files -> Change Attributes...
- [x] Change Plugin attributes:
- [More attributes]
- | tc | comment | your text here |
[OK]

>>> https://ghisler.ch/board/viewtopic.php?p=355053#p355053


Sorry, but you misunderstand the question.

Alt + a is my shortkey to call the Change Attributes panel

I've been using this method for a long time
but i tired so many steps, So I want to combine all the steps to onekey
and use some fixed comment to filling into it

So by the comment and color I can use it as a simple tag system




 
User avatar
petermad
Power Member
Power Member
Posts: 16034
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: How to realize the Fixed Comment function?

Post by *petermad »

2rt2ryu
Can anyway to integrated above steps?
No currently not without using scripts like AHK - that is why I have a request for automated attribute change pending here: viewtopic.php?f=14&t=57060 - feel free to support my request. (write an answer with the text: Support++)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
rt2ryu
Junior Member
Junior Member
Posts: 34
Joined: 2018-02-26, 10:30 UTC

Re: How to realize the Fixed Comment function?

Post by *rt2ryu »

petermad wrote: 2021-03-15, 19:00 UTC 2rt2ryu
Can anyway to integrated above steps?
No currently not without using scripts like AHK - that is why I have a request for automated attribute change pending here: viewtopic.php?f=14&t=57060 - feel free to support my request. (write an answer with the text: Support++)
I'm tring the way to use 4NT/TCC.EXE to do this.
param

Code: Select all

for i in (@"%L") describe "%%i"  "%%@descript[%%i]TODO" 
or

Code: Select all

Describe "%P%S" "TODO"
BUT it not work correctlly
User avatar
rt2ryu
Junior Member
Junior Member
Posts: 34
Joined: 2018-02-26, 10:30 UTC

Re: How to realize the Fixed Comment function?

Post by *rt2ryu »

Maybe We need to hope the cm_editComment or cm_SetAttrib could allow to use param :roll: :roll:
User avatar
nsp
Power Member
Power Member
Posts: 1924
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: How to realize the Fixed Comment function?

Post by *nsp »

If you still have TCC installed in your computer, you could use TCBL to build a batch like:
First try:

Code: Select all

command: <path to>\tcbl.exe
parameters: -q %L echo "TODO" $P <path to >\TCC.EXE /c describe "$f"
replace each <path to> to the right location to find tcbl.exe and tcc.exe (except if it is on the path)
$P will replace the pipe use capital P as $p is the file path.

The trick is to use to uses echo to not have the question asked if you are not inside TCC command line interpreter.
--- edited
you can also use /D parameter

Code: Select all

command: <path to>\tcbl.exe
parameters: -q %L <path to >\TCC.EXE /c describe "$f" /D"TODO"
You can also make a btm file using file list %L and comment as parameter use 3 separate delete/TODO/UNDO
Post Reply