Copy all shown columns - aligned

English support forum

Moderators: white, Hacker, petermad, Stefan2

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

Copy all shown columns - aligned

Post by *raytc »

I often use these commands:

cm_CopyFileDetailsToClip (Copy all shown columns)
cm_CopyFpFileDetailsToClip (Copy all columns, with full path)

output:
myfile1.exe 4.432.054 11/05/2020 18:08 -a--
anothermyfile2.exe 14.432.054 11/05/2020 18:08 -a--

The first thing I do after copying the columns is to go to my text editor and try to align the columns at tab char.
Does anyone know how I can copy the columns aligned as in my TC (without text-editor)?
(in above case, left aligned, right aligned, left aligned, left aligned)
TC 9.51 (x64) - win10
User avatar
Stefan2
Power Member
Power Member
Posts: 4158
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Copy all shown columns - aligned

Post by *Stefan2 »

raytc wrote: 2020-05-12, 13:00 UTC ...
Does anyone know how I can copy the columns aligned as in my TC (without text-editor)?
...
No, there is no implemented way.
You have to post process the text after copying with an text editor or an script.

For ex. use AutoHotkey to
- SendMessage cm_CopyFileDetailsToClip
- Get Clipboard
- Reformat
- Set Clipboard

Or use an spreadsheet as f.ex. Excel, paste the text in and use "Data: text as columns: split at tab".

 
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Copy all shown columns - aligned

Post by *petermad »

  1. Mark files.
  2. Use cm_PrintDir or "Files" -> "Print" -> "File list..."
  3. Choose "Microsoft XPS Document Writer" as printer.
  4. Click "Print".
  5. Enter the filename you want.
Under Windows 10 you might have to install the XPS viewer ("Setings" -> "Apps" -> "Apps & features" -> "Optional features" -> "Add a feature" -> "XPS Viewer"), since it is no longer standard installed. You can then view the file in XPS Viewer or in Internet Explorer.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
raytc
Senior Member
Senior Member
Posts: 274
Joined: 2004-06-28, 11:03 UTC

Re: Copy all shown columns - aligned

Post by *raytc »

Thank you all very much.
Learned some new things.
I regret that it's not possible to go straight Aligned from TC to the clipboard.

I think I will continue with what I am doing now:
copy in my text editor --> Align by Tab Char.

Wish everybody a nice evening.
jberry910
Junior Member
Junior Member
Posts: 25
Joined: 2010-02-08, 02:43 UTC
Location: Illinois, USA

Re: Copy all shown columns - aligned

Post by *jberry910 »

I too would like to see alignment. I found a small, free utility that will take the tab delimited clipboard data and transform it into a tabular text file. All of this can be done from the command line which means a button can be configured for it. You can read about/download at: https://www.nirsoft.net/utils/csv_file_view.html.
Joe
Central Illinois, USA
raytc
Senior Member
Senior Member
Posts: 274
Joined: 2004-06-28, 11:03 UTC

Re: Copy all shown columns - aligned

Post by *raytc »

Thanks.
Yes, true. It works. "Open text in clipboard".
The only thing I noted is that long values are truncated after saving the data in tabular text format.
However it's still a nice software.
Post Reply