Text Line
Moderators: Hacker, petermad, Stefan2, white
Hello Alextp,
thank you for the Text Line plugin!
It is very useful for me, especially in combination with my NiftyLink addon.
Unfortunately I have a problem with displaying the content of UTF-8 files. For instance, special German characters such as äöü in UTF-8 files are not displayed correctly by Text Line. Is there a special setting for UTF-8 support?
Regards, Juergen
thank you for the Text Line plugin!
It is very useful for me, especially in combination with my NiftyLink addon.
Unfortunately I have a problem with displaying the content of UTF-8 files. For instance, special German characters such as äöü in UTF-8 files are not displayed correctly by Text Line. Is there a special setting for UTF-8 support?
Regards, Juergen
My add-ons and plugins for TC: NiftyLink, mbox, Sequences
I did not ask for an update. I asked whether there is a setting, so that UTF-8 text is displayed correctly.
My add-ons and plugins for TC: NiftyLink, mbox, Sequences
-
- Senior Member
- Posts: 276
- Joined: 2011-11-15, 06:14 UTC
- Location: DE\BN - only part time TC user after switching to Linux ;)
now that i found a usecase for this plugin, i have a question:
i have text files that look like this
key=value
key2=value2
key3=value3
etc.
is it possible somehow using textline plugin to extract only specific values of defined keys?
Then i could add a new column view to only show these specific keys (but only the value...).
I researched in the readme and ini files but i cant figure out how it would work.... is it possible at all?
update: Second question:
some of these files have no extensions (the file name is just a number). I saw that it is possible to configure extensions which are read by the plugin, but what would i put there for no extension?
thanks+br
seb
i have text files that look like this
key=value
key2=value2
key3=value3
etc.
is it possible somehow using textline plugin to extract only specific values of defined keys?
Then i could add a new column view to only show these specific keys (but only the value...).
I researched in the readme and ini files but i cant figure out how it would work.... is it possible at all?
update: Second question:
some of these files have no extensions (the file name is just a number). I saw that it is possible to configure extensions which are read by the plugin, but what would i put there for no extension?
thanks+br
seb
Progman13 http://forum.wincmd.ru/profile.php?mode=viewprofile&u=22266
can support the TextLine plugin. He made a patch. Unofficial (not on my homepage)
http://progman13.totalcmd.net/downloads/wdx_TextLine_Unicode_Alpha.zip
can support the TextLine plugin. He made a patch. Unofficial (not on my homepage)
http://progman13.totalcmd.net/downloads/wdx_TextLine_Unicode_Alpha.zip
Script programing help needed!
Hello guys! I'm so happy to find this sweet pearl! I have a bunch of CNC machining programs to sort in order and rename based on some content inside of the programs. Due my programming skills are far insufficient for this task, therefore I ask for help.
I have already installed wdx TextLine v1.1 plugin for total commander.
So please write an ini file for the textline plugin which exports these informations into acolumn
So lets see what is the subject of the task
Filename: O0043.(no extension)
[first line] %
[second line] O0043(802-585-03-045C 2. MEG)
[third L.] ...
[fourth l.] ...
[last line] %
%
O0246(8020-710-02-009A ES 8020-710-02-002B 2.MEGFOGAS)
...
...
..
%
My goal is to extract the content contained in the second line in between the () marks into a column in total commander so after that I can sort my files alphabetically by this content and mass rename them in an ascending order.and than rename the second rows first word to match the file name this is valuable for Me because We have a lot of parts which require two or three setup's to complete. it is very nice for booth the operator and the owner when the programs which are held on the memory card at the shop are well organized and instantly accessible without any headache. Part of the reality is that the actual cnc controller does not see this info(the identifier of the actual part meant to be machined with) when the files stored on the memory card are displayed, only when the files are moved to the main disk of the cnc which is limited in size so things can get really ugly if nobody is in the shop whit access to Desktop Pc to find out which files are needed for the following job.
I thank any help!
I believe that this is not a big deal for a routine'd person, so please help me
Sorry for My Eanglish and Chears from Hungary!!!
I have already installed wdx TextLine v1.1 plugin for total commander.
So please write an ini file for the textline plugin which exports these informations into acolumn
So lets see what is the subject of the task
Filename: O0043.(no extension)
[first line] %
[second line] O0043(802-585-03-045C 2. MEG)
[third L.] ...
[fourth l.] ...
[last line] %
%
O0246(8020-710-02-009A ES 8020-710-02-002B 2.MEGFOGAS)
...
...
..
%
My goal is to extract the content contained in the second line in between the () marks into a column in total commander so after that I can sort my files alphabetically by this content and mass rename them in an ascending order.and than rename the second rows first word to match the file name this is valuable for Me because We have a lot of parts which require two or three setup's to complete. it is very nice for booth the operator and the owner when the programs which are held on the memory card at the shop are well organized and instantly accessible without any headache. Part of the reality is that the actual cnc controller does not see this info(the identifier of the actual part meant to be machined with) when the files stored on the memory card are displayed, only when the files are moved to the main disk of the cnc which is limited in size so things can get really ugly if nobody is in the shop whit access to Desktop Pc to find out which files are needed for the following job.
I thank any help!
I believe that this is not a big deal for a routine'd person, so please help me

Sorry for My Eanglish and Chears from Hungary!!!
Re: Script programing help needed!
You want to write into the file? Sorry, that won't work with TC.Ungie wrote:and than rename the second rows first word to match the file name
For the first part add this to your wincmd.ini:
Code: Select all
[rename]
SecondLineRegEx_name=[=textline.2.win]
SecondLineRegEx_ext=[E]
SecondLineRegEx_search=.*\(([^\)]*)
SecondLineRegEx_replace=$1
SecondLineRegEx_params=0|1|1|1|1|1|0|0|0
This will rename your files to the part in parentheses ().
Re: Renaming
Thank You for the rename method but I still need the ini config for the textline plugin to ease the further handling of files.. The file names must stay in original format (O$$$$) because the controller can onley handle file names matching this sequence..And I dont want to go into renaming twice every time I refresh the database with freshly written programs!
Thank you again, I have learned another useful thing!
Thank you again, I have learned another useful thing!