TCSyncComments - copy file comments from descript.ion file(s)
GitHub: https://github.com/hi5/TCSyncComments
Reference: I posted a suggestion for a "Manual option to copy file comment descript.ion F5/F6, Shift+F5" here viewtopic.php?f=14&t=72059
Until such a feature is added to TC I will use this AutoHotkey script
Note that the script "as is" works for me and I don't plan to add new features or change how it works apart from (obvious) bug-fixes or easy to add/change suggestions.
To better understand the purpose let me briefly describe how I use file comments:
(Also check the demo animation in the GH Repo)
I have "Copy comments with files" turned off in the TC configuration.
I only use comments in specific project folders, so for all other folders and file operations I don't want to copy or move the file comments from descript.ion to a new location or keep track of renamed files.
For specific projects I place files in a folder. During the project I add comments to keep track of the status of each file (draft, commentary, pre-processing, final version, etc).
The final stage of such projects can be that the data from these files have to be processed in a specific order. At that time I rename each file to start with a number (01, 02, etc). Or sometimes I copy some of the original files to a backup folder, either keeping the original name or renamed.
So "Cherry.txt" is renamed to "01_Cherry.txt" or copied to "backup\Cherry.txt", "backup\Cherry_org.txt"
At that point the file comment for "Cherry.txt" is "lost" due to the my preference to not "Copy comments with files".
BUT in such cases I DO want to keep/copy the file comments for some or all of the renamed or copied files. Enter TCSyncComments
TCSyncComments is a AutoHotkey script to copy file comments (descript.ion format only) from:
- Source to Target folder (identical or partial matching file names)
- Current Folder (useful for renamed files)
- Selected or All Files
It can try to find matching file names using Sift Ngram - so "01_Cherry.txt" will match with "Cherry.txt"
This script will not copy, move or alter (selected) files - only the comments stored or added to a descript.ion
TCSyncComments copies file comments it can find in descript.ion or try to add "new" ones based on file name "match",
either in the current or target folder. (Target folder is source of descript.ion to use)
Note: it does not (yet) try to use the "set type" file encoding from TC as I only use "dos text" (0-9, Aa-Zz chars) in my comments.
Demo
Image: https://raw.githubusercontent.com/hi5/_resources/master/tctest1.gif
TCSyncComments - copy file comments from descript.ion [experimental AHK script]
Moderators: Hacker, petermad, Stefan2, white
TCSyncComments - copy file comments from descript.ion [experimental AHK script]
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
-
- Power Member
- Posts: 872
- Joined: 2013-09-04, 14:07 UTC
Re: TCSyncComments - copy file comments from descript.ion [experimental AHK script]
While i am not using descript.ion files and therefore not going to use the tool, i can and do appreciate tools with a good UI / UX.
Nice work, well done!
Nice work, well done!
-
- Member
- Posts: 107
- Joined: 2003-07-16, 22:40 UTC
- Location: Spain
Re: TCSyncComments - copy file comments from descript.ion [experimental AHK script]
2hi5 Looks promising, thanks !
What I often miss is the possibility of doing something similar when comparing trees inside packages (at least zip files)...
What I often miss is the possibility of doing something similar when comparing trees inside packages (at least zip files)...
Thanks,
Jose
Nubia Redmagic 7Pro with non-rooted Android 13
Surrendered to Win11
Jose
Nubia Redmagic 7Pro with non-rooted Android 13
Surrendered to Win11
-
- Member
- Posts: 107
- Joined: 2003-07-16, 22:40 UTC
- Location: Spain
Re: TCSyncComments - copy file comments from descript.ion [experimental AHK script]
2hi5 Sorry for my ignorance: I've downloaded the zip from GitHub (and seen the .ahk file). But, now, how should I install it and use it? Is it possible to invoke it from TC?
Thanks,
Jose
Nubia Redmagic 7Pro with non-rooted Android 13
Surrendered to Win11
Jose
Nubia Redmagic 7Pro with non-rooted Android 13
Surrendered to Win11
Re: TCSyncComments - copy file comments from descript.ion [experimental AHK script]
Assuming you have AutoHotkey installed you can use the command/parameter setup as shown here:
https://github.com/hi5/TCSyncComments/blob/master/readme.md#setup
If you do not have AutoHotkey installed yet, you need to download AutoHotkey v1 https://www.autohotkey.com/download/ahk-install.exe or if you don't want to install it you can download the ZIP here https://www.autohotkey.com/download/1.1/AutoHotkey_1.1.37.02.zip, just unpack AutoHotkeyU64.exe or AutoHotkeyU32.exe to a folder of your choice. You can rename it to AutoHotkey.exe if you like but not required.
In that case (if you don't install AutoHotkey) the command should be (you may need to quote the paths if you have spaces)
or what I haven't tried, but I assume will work, is use TCs Internal Assocations (see here) to point to the AutoHotkey.exe file
https://github.com/hi5/TCSyncComments/blob/master/readme.md#setup
If you do not have AutoHotkey installed yet, you need to download AutoHotkey v1 https://www.autohotkey.com/download/ahk-install.exe or if you don't want to install it you can download the ZIP here https://www.autohotkey.com/download/1.1/AutoHotkey_1.1.37.02.zip, just unpack AutoHotkeyU64.exe or AutoHotkeyU32.exe to a folder of your choice. You can rename it to AutoHotkey.exe if you like but not required.
In that case (if you don't install AutoHotkey) the command should be
Code: Select all
drive:\path-to\autohotkey.exe drive:\path-to\TCSyncComments.ahk
or what I haven't tried, but I assume will work, is use TCs Internal Assocations (see here) to point to the AutoHotkey.exe file
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)