Copy text of only certain columns
Moderators: Hacker, petermad, Stefan2, white
Copy text of only certain columns
I've selected a few files.
I know it is possible to copy the text of the columns of these files using:
- cm_CopyFpFileDetailsToClip
- cm_CopyFileDetailsToClip
1) What I want to do is to copy the text of just certain columns, not all columns
How can I do this?
2) Is it possible to place a tab value between the columns so that all columns are aligned after copying?
I know it is possible to copy the text of the columns of these files using:
- cm_CopyFpFileDetailsToClip
- cm_CopyFileDetailsToClip
1) What I want to do is to copy the text of just certain columns, not all columns
How can I do this?
2) Is it possible to place a tab value between the columns so that all columns are aligned after copying?
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Copy text of only certain columns
1) Sorry, there is no such function. Maybe you can process the data with a script language
2) The columns are separated with a single TAB character, e.g. for importing into Excel or OpenOffice Calc
2) The columns are separated with a single TAB character, e.g. for importing into Excel or OpenOffice Calc
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Copy text of only certain columns
Thank you for your reply.
1) Yes that's what I did till now
2) Ah, I never noticed that there was a tab character in between
1) Yes that's what I did till now
2) Ah, I never noticed that there was a tab character in between

Re: Copy text of only certain columns
Make a Custom columns definition for your required entries and then use one of the cm_ commands.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: Copy text of only certain columns
Thank you Horst.Horst.Epp wrote: 2018-11-02, 16:22 UTC Make a Custom columns definition for your required entries and then use one of the cm_ commands.
That's what I did first but my Custom columns are always never the same so I have to delete my new created "custom columns definition every time".
It would be nice to be enable to just select a few columns (like I select the files) and use cm_commands.

Re: Copy text of only certain columns
I don't see any limit how many Custom columns you can have.raytc wrote: 2018-11-07, 14:34 UTCThank you Horst.Horst.Epp wrote: 2018-11-02, 16:22 UTC Make a Custom columns definition for your required entries and then use one of the cm_ commands.
That's what I did first but my Custom columns are always never the same so I have to delete my new created "custom columns definition every time".
It would be nice to be enable to just select a few columns (like I select the files) and use cm_commands.![]()
So how many combinations of all your columns are realy useful so that you can't define them in advance.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: Copy text of only certain columns
Maybe I did not express myself clearly.Horst.Epp wrote: 2018-11-07, 14:40 UTC I don't see any limit how many Custom columns you can have.
So how many combinations of all your columns are realy useful so that you can't define them in advance.
I do already have 11 Custom columns configurations and I also want to copy sometimes just a few of these columns.
The columns I want to copy are almost never the same.
Re: Copy text of only certain columns - column headers
I would like to see the column headers copied to the clipboard as well,
e.g. for cm_CopyFileDetailsToClip.
Regards
Karl
e.g. for cm_CopyFileDetailsToClip.
Regards
Karl
Re: Copy text of only certain columns
I would definitely support a command with parameters which would accept a custom column definition string and copy substituted string for every selected file/folder, one per line. TC is able to substitute such fields for years but we still have no any internal way of copying such information except copying all visible columns which at least requires switching to that column set.
Something like this:
Something like this:
Code: Select all
COPYDETAILS [=tc.fullname]\t[=tc.size]\t[=ntlinks.Real path]\t[=exif.DateOriginal]
Re: Copy text of only certain columns
bumping this for tc10. now that we have 'cm_CopyHdrFileDetailsToClip'
Re: Copy text of only certain columns
Hi Stiltzkin,Stiltzkin wrote: 2021-06-06, 11:16 UTC bumping this for tc10. now that we have 'cm_CopyHdrFileDetailsToClip'
Thanks for your reply.
I don't see the difference with "cm_CopyFpFileDetailsToClip"
How can we hide a column in TC?
Regards.
Re: Copy text of only certain columns
you can 'hide' columns by creating a custom colums which just doesn't show the columns.
but all the existing cmds will copy/save all the columns, which include "name" and "ext", which you can't hidde - even in a custom column.
i was refering to this:
and this (which was implemented in totalcmd 10):
but all the existing cmds will copy/save all the columns, which include "name" and "ext", which you can't hidde - even in a custom column.
i was refering to this:
i, too, find it useful to be able to copy/save only certain custom columns ( especially columns from addons - like [=gitcmd.FirstRemoteUrl] for example).raytc wrote: 2018-11-07, 14:46 UTC I do already have 11 Custom columns configurations and I also want to copy sometimes just a few of these columns.
The columns I want to copy are almost never the same.
and this (which was implemented in totalcmd 10):
tuska wrote: 2018-11-07, 17:51 UTC I would like to see the column headers copied to the clipboard as well,
e.g. for cm_CopyFileDetailsToClip.
Re: Copy text of only certain columns
Thanks for your explication. Yes that's what I'm doing now. I create custom columns to hide a column.Stiltzkin wrote: 2021-06-10, 20:48 UTC you can 'hide' columns by creating a custom colums which just doesn't show the columns.
but all the existing cmds will copy/save all the columns, which include "name" and "ext", which you can't hidde - even in a custom column.
i was refering to this:i, too, find it useful to be able to copy/save only certain custom columns ( especially columns from addons - like [=gitcmd.FirstRemoteUrl] for example).raytc wrote: 2018-11-07, 14:46 UTC I do already have 11 Custom columns configurations and I also want to copy sometimes just a few of these columns.
The columns I want to copy are almost never the same.
and this (which was implemented in totalcmd 10):
tuska wrote: 2018-11-07, 17:51 UTC I would like to see the column headers copied to the clipboard as well,
e.g. for cm_CopyFileDetailsToClip.
I hope that in the future there will be a possibility to temporarily make a column hidden, eg in case of copying specific columns.
It can also be useful if you have too many columns and you want to temporarily have a better overview.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Copy text of only certain columns
An easy way to add this would be to accept a numeric parameter, e.g.
cm_CopyFileDetailsToClip 7
This would copy columns 0, 1 and 2 (sum of 2^0, 2^1, 2^2), with 0 the name+extension.
cm_CopyFileDetailsToClip 7
This would copy columns 0, 1 and 2 (sum of 2^0, 2^1, 2^2), with 0 the name+extension.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Copy text of only certain columns
In my opinion, this would be interesting for these commands
Code: Select all
cm_CopyFileDetailsToClip 2036 Copy all shown columns
cm_CopyFpFileDetailsToClip 2037 Copy all columns, with full path
cm_CopyNetFileDetailsToClip 2038 Copy all columns, with UNC path
cm_SaveDetailsToFile 2039 Save all shown columns to file
cm_SaveDetailsToFileA 2043 Save all shown columns to file (ANSI)
cm_SaveDetailsToFileW 2044 Save all shown columns to file (Unicode)
cm_CopyHdrFileDetailsToClip 2090 Copy all shown columns, with headers
cm_CopyHdrFpFileDetailsToClip 2091 Copy all columns, with headers+full path
cm_CopyHdrNetFileDetailsToClip 2092 Copy all columns, with headers+UNC path
cm_SaveHdrDetailsToFile 2093 Save all shown columns to file, with headers
cm_SaveHdrDetailsToFileA 2094 Save all shown columns to file, with headers (ANSI)
cm_SaveHdrDetailsToFileW 2095 Save all shown columns to file, with headers (Unicode)