Custom columns: split comments (descript.ion) into single lines

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Stiltzkin
Member
Member
Posts: 182
Joined: 2004-09-10, 17:15 UTC

Custom columns: split comments (descript.ion) into single lines

Post by *Stiltzkin »

:?: is there a way to setup custom columns so that each column has one line of the descript.ion comment (split by \n)?.

[=tc.comment] only gets the full comment from descript.ion which in my case often includes an url, which doesn't play nice with windows filename.

in this case:
descript.ion for setup.zip:

Code: Select all

Total Commander Installer\nInstalls Total Commander\nÂ
column 1 would be: Total Commander Installer
column 2 would be: Installs Total Commander
column 3would be: hxxps://example.com

maybe?
[=tc.comment.split(\n)[0]], [=tc.comment.split(\n)[1]

...it would also make renaming a lot easier
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Custom columns and comments

Post by *Gral »

This is already possible, but only for fixed field lenght, so "Field1" must have same lenght for ALL files, "Field2" too, etc.
("Field1", "Field2", "Field3" may be differ in length)
Then you can use e.g. [=tc.comment:1-99] for "Field1" [=tc.comment:101-149] for "Field2" and so on.
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Custom columns and comments

Post by *Stefan2 »

There is the "expander2"-plugin by 2Progman13 which can do such things, but works only on file name, me think.
http://www.totalcmd.net/plugring/expander2.html


Maybe 2MVV or some other (2tbeu?) is willing to expand that plugin to work on any info or column, if possible?






 
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Custom columns: split comments (descript.ion) into single lines

Post by *nsp »

Stefan2 wrote: 2021-09-02, 11:44 UTC There is the "expander2"-plugin by 2Progman13 which can do such things, but works only on file name, me think.
http://www.totalcmd.net/plugring/expander2.html


Maybe 2MVV or some other (2tbeu?) is willing to expand that plugin to work on any info or column, if possible?
To me wdx plugin only receive fine name to work with.
Splitting or Regexp could great operators to add directly in TC for any field you can add a suggestion ;)
ie: :s\n:1 --> split using "\n" as separator and send string 1
Stiltzkin
Member
Member
Posts: 182
Joined: 2004-09-10, 17:15 UTC

Re: Custom columns and comments

Post by *Stiltzkin »

Stefan2 wrote: 2021-09-02, 11:44 UTC There is the "expander2"-plugin by 2Progman13 which can do such things, but works only on file name, me think.
http://www.totalcmd.net/plugring/expander2.html


Maybe 2MVV or some other (2tbeu?) is willing to expand that plugin to work on any info or column, if possible?
that would be great of course.
nsp wrote: 2021-09-02, 12:32 UTC Splitting or Regexp could great operators to add directly in TC for any field you can add a suggestion ;)
ie: :s\n:1 --> split using "\n" as separator and send string 1
and that would be even better!
Post Reply