Adding a column to the Brief View

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
ChapierX
Junior Member
Junior Member
Posts: 26
Joined: 2018-12-14, 19:18 UTC

Adding a column to the Brief View

Post by *ChapierX »

How can I add a custom column to the Brief View columns (Name Ext Size Date)?
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

FAQs: Create a user defined 'Custom Column'

Post by *Stefan2 »

ChapierX wrote: 2019-02-20, 13:54 UTC How can I add a custom column to the Brief View columns (Name Ext Size Date)?
Not for the build-in 'Brief View', but you can create a user defined custom column on your own:
http://www.ghisler.ch/wiki/index.php/Custom_columns


In short:


Create a "Custom column":

- Menu "Configuration > Options > Custom columns"
- Click [New]
- - Name:[ add a description ]
- - Click [Add column]
- - ...... (NOTE: Columns "Name" and "Ext" are mandatory and can't be removed)
- - - Click [+]-button
- - - Choose a plugin , for example the build-in 'tc'-plugin
- - - ..... (For more see http://www.ghisler.ch/wiki/index.php/Plugin and there "Content plugin")
- - - and choose a Property (for example: 'path') and click [OK]
- - - ..... Now you see "path | 80 | [=tc.path]"
- - Add next column or click [OK] ones done
- [OK] for Configuration


- - -

Use a "Custom column":
- Menu "Show > Custom Columns Mode"

Switch back to original View:
- Menu "Show > Full"

Or right click on the Name-column header...


- - -

Our wiki:
http://www.ghisler.ch/wiki/index.php/Custom_columns

Find Plugins:
https://www.ghisler.com/plugins.htm >>> Content plugins
https://totalcmd.net/ >>> Content plugins
http://www.ghisler.ch/wiki/index.php/List_of_64-bit_plugins_and_addons#Content_plugins

- - -

Modify the output:
You can modify the output of "tc.path" to get back only a part of that string.
(Open "Files > Multi-Rename Tool..." and there the help (press F1-key) for the syntax)
For example from MRT-Help: "[N2-5] Characters 2 to 5 from the old name..."
you would use that in Custom column like "[=tc.path:2-5]"
MRT-Help extract
Here is a description of all available placeholders. IMPORTANT: Upper/lowercase is relevant!
[N] old file name, WITHOUT extension
[N1] The first character of the original name
[N2-5] Characters 2 to 5 from the old name (totals to 4 characters). Double byte characters (e.g. Chinese, Japanese) are counted as 1 character! The first letter is accessed with '1'.
[N2,5] 5 characters starting at character 2
[N2-] All characters starting at character 2
[N02-9] Characters 2-9, fill from left with zeroes if name shorter than requested (8 in this example): "abc" -> "000000bc"
[N 2-9] Characters 2-9, fill from left with spaces if name shorter than requested (8 in this example): "abc" -> " bc"
[N-8,5] 5 characters starting at the 8-last character (counted from the end of the name)
[N-8-5] Characters from the 8th-last to the 5th-last character
[N2--5] Characters from the 2nd to the 5th-last character
[N-5-] Characters from the 5th-last character to the end of the name

Other example:
ExampleName: "$Recycle.Bin\ C:\ <DIR> 15.09.2018 09:33"

Instead of just picking, for an example, "[=tc.creationdate]" itself, click at that entry and choose from variety sub formats:
D.M.Y. >>> [=tc.creationdate.D.M.Y] >>> 15.09.2018
D/M/Y >>> [=tc.creationdate.D/M/Y] >> 15/09/2018
Y-M-D >>>> [=tc.creationdate.Y-M-D] >>> 2018-09-15
[=tc.creationdate.D.M.Y h: m:s] >>> 15.09.2018 09:33
and so on.

Also there are single Y and M and D to create your own string in the format you want,
and there is [=tc.creationTIME] with h, m, s and all variations, so you can omit the colon ":" if you need that, for example for renaming files.

You could also use the first trick above to get the date part only:
"[=tc.creationdate]" >>>>>>>> 15.09.2018 09:33
"[=tc.creationdate:1-10]" >> > 15.09.2018

You can modify the parameter yourself:
[=tc.creationdate.Y-M-D] >>> remove the hyphens yourself to get >>> [=tc.creationdate.YMD]


- - -

Extra Bonus:
There are "Content plugins" (WDX) which can execute user written scripts,
and there result/output you can use as Custom column.

Examples:
Column width on the left: how to see last part only?
https://ghisler.ch/board/viewtopic.php?p=330720#p330720
Use of "Expander"-plugin.
Here you could use "[=expander2.Part1.FromName]" as Custom column.

MRT: TODAY Date and date refreshing
https://ghisler.ch/board/viewtopic.php?p=279758#p279758
Use of "Script Content plugin 0.2"
Here you could use "[=script.Result2]" as Custom column (if that result would make sense)


Show same file size as Windows Explorer?
https://ghisler.ch/board/viewtopic.php?p=330182#p330182



Another how-to from tuska you can find there:
Custom columns | View Mode | Auto Switch Mode | Sorting
https://ghisler.ch/board/viewtopic.php?p=339676#p339676

By sqa_wizard
MUT: add counter, related due to creation time
https://ghisler.ch/board/viewtopic.php?p=330269#p330269



 
Post Reply