Copy text of only certain columns

English support forum

Moderators: white, sheep, Hacker, Stefan2

Post Reply
raytc
Senior Member
Senior Member
Posts: 254
Joined: 2004-06-28, 11:03 UTC

Copy text of only certain columns

Post by *raytc »

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?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 41193
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Copy text of only certain columns

Post by *ghisler(Author) »

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
Author of Total Commander
http://www.ghisler.com
raytc
Senior Member
Senior Member
Posts: 254
Joined: 2004-06-28, 11:03 UTC

Re: Copy text of only certain columns

Post by *raytc »

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 :)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 4291
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Copy text of only certain columns

Post by *Horst.Epp »

Make a Custom columns definition for your required entries and then use one of the cm_ commands.
Windows 10 Home x64 Version 21H1 (OS Build 19043.1055)
TC 10.00 x64 / x86
Everything 1.5.0.1263a (x64)
raytc
Senior Member
Senior Member
Posts: 254
Joined: 2004-06-28, 11:03 UTC

Re: Copy text of only certain columns

Post by *raytc »

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.
Thank you Horst.
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. :D
User avatar
Horst.Epp
Power Member
Power Member
Posts: 4291
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Copy text of only certain columns

Post by *Horst.Epp »

raytc wrote: 2018-11-07, 14:34 UTC
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.
Thank you Horst.
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. :D
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.
Windows 10 Home x64 Version 21H1 (OS Build 19043.1055)
TC 10.00 x64 / x86
Everything 1.5.0.1263a (x64)
raytc
Senior Member
Senior Member
Posts: 254
Joined: 2004-06-28, 11:03 UTC

Re: Copy text of only certain columns

Post by *raytc »

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.
Maybe I did not express myself clearly.

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.
User avatar
tuska
Power Member
Power Member
Posts: 2421
Joined: 2007-05-21, 12:17 UTC

Re: Copy text of only certain columns - column headers

Post by *tuska »

I would like to see the column headers copied to the clipboard as well,
e.g. for cm_CopyFileDetailsToClip.

Regards
Karl
User avatar
MVV
Power Member
Power Member
Posts: 8610
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Copy text of only certain columns

Post by *MVV »

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:

Code: Select all

COPYDETAILS [=tc.fullname]\t[=tc.size]\t[=ntlinks.Real path]\t[=exif.DateOriginal]
Stiltzkin
Member
Member
Posts: 164
Joined: 2004-09-10, 17:15 UTC

Re: Copy text of only certain columns

Post by *Stiltzkin »

bumping this for tc10. now that we have 'cm_CopyHdrFileDetailsToClip'
raytc
Senior Member
Senior Member
Posts: 254
Joined: 2004-06-28, 11:03 UTC

Re: Copy text of only certain columns

Post by *raytc »

Stiltzkin wrote: 2021-06-06, 11:16 UTC bumping this for tc10. now that we have 'cm_CopyHdrFileDetailsToClip'
Hi Stiltzkin,

Thanks for your reply.
I don't see the difference with "cm_CopyFpFileDetailsToClip"

How can we hide a column in TC?

Regards.
Stiltzkin
Member
Member
Posts: 164
Joined: 2004-09-10, 17:15 UTC

Re: Copy text of only certain columns

Post by *Stiltzkin »

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:
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.
i, too, find it useful to be able to copy/save only certain custom columns ( especially columns from addons - like [=gitcmd.FirstRemoteUrl] for example).



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.
raytc
Senior Member
Senior Member
Posts: 254
Joined: 2004-06-28, 11:03 UTC

Re: Copy text of only certain columns

Post by *raytc »

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:
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.
i, too, find it useful to be able to copy/save only certain custom columns ( especially columns from addons - like [=gitcmd.FirstRemoteUrl] for example).



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.
Thanks for your explication. Yes that's what I'm doing now. I create custom columns to hide a column.
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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 41193
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Copy text of only certain columns

Post by *ghisler(Author) »

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.
Author of Total Commander
http://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 2421
Joined: 2007-05-21, 12:17 UTC

Re: Copy text of only certain columns

Post by *tuska »

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)
Post Reply