view files by Name

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
matu89
Junior Member
Junior Member
Posts: 23
Joined: 2018-02-27, 18:54 UTC

view files by Name

Post by *matu89 »

hello ,

as u can see by the following photo :

Image: https://image.ibb.co/dzCPrK/tc.jpg

i want to order the names of the files in this order :

6950-004-001-p0
6950-004-002-p0
6950-004-001-p1
6950-004-002-p1

how can i do that ?

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

Re: view files by Name

Post by *petermad »

You can install the content plugin filesys: https://plugins.ghisler.com/beta/wdx_filesys.zip
Then make a custom column with this Field content: [=filesys.CutNameStart.13]
And sort by that custom column
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
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3862
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Re: view files by Name

Post by *sqa_wizard »

You may create a custom column even without additional plugin.
The internal tc will do it too. Just use [=tc.name:-3-] for the last 3 character.
#5767 Personal license
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: view files by Name

Post by *petermad »

2sqa_wizard
[=tc.name:-3-] name will show the last 3 characters - but TC will still sort by the full name for that column!
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
matu89
Junior Member
Junior Member
Posts: 23
Joined: 2018-02-27, 18:54 UTC

Re: view files by Name

Post by *matu89 »

petermad wrote: 2018-08-04, 16:03 UTC You can install the content plugin filesys: https://plugins.ghisler.com/beta/wdx_filesys.zip
Then make a custom column with this Field content: [=filesys.CutNameStart.13]
And sort by that custom column
hey , thanks a lot ! its working!

the other method isnt working but thanks for the help.

:D
matu89
Junior Member
Junior Member
Posts: 23
Joined: 2018-02-27, 18:54 UTC

Re: view files by Name

Post by *matu89 »

hey , another question please :

how i can see in a custom column for the name :6950-004-001-p0
to see : 001
?

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

Re: view files by Name

Post by *petermad »

Use [=tc.name:10-12] - but it only will show 001, it will still sort on the full name as I wrote previously.
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
matu89
Junior Member
Junior Member
Posts: 23
Joined: 2018-02-27, 18:54 UTC

Re: view files by Name

Post by *matu89 »

petermad wrote: 2018-08-04, 18:42 UTC Use [=tc.name:10-12] - but it only will show 001, it will still sort on the full name as I wrote previously.
thank you for your help ,

how can i set this columns configuration to be active for this specific folder ?

is it possible to make a button that shifts between custom columns modes ?
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: view files by Name

Post by *petermad »

how can i set this columns configuration to be active for this specific folder ?
You can make a "View Mode" (under Configuration) where you at the "Columns view" pick your custom column.
Then you make an "Auto Switch Mode" where you as a "Rule" choose "+: Must match" and enter your directory in the "Directory" column.
Finally you use "Set this mode" to pick the "View Mode" you made in the first step.
Remember to enable the "Automatically switch view mode on directory change" in the top of the "Auto Switch Mode" dialog.
is it possible to make a button that shifts between custom columns modes ?
You can just right click on the columns header to get a list of all your custom column views. Or you can press Shift+F1 to open the list.

You can also use this button to go directly to a specific view (assuming your view is called "Myview"):

Code: Select all

TOTALCMD#BAR#DATA
OPENCUSTOMVIEW Myview

wcmicons.dll,52
Open Custom colums view "Myview"


-1

If you want a button to open the list of views, you can use this:

Code: Select all

TOTALCMD#BAR#DATA
cm_SrcCustomViewMenu

wcmicons.dll,52



270
You can use this button to go to the next view on the list:

Code: Select all

TOTALCMD#BAR#DATA
cm_SrcNextCustomView

wcmicons.dll,52



5501
And this to to to the previous view:

Code: Select all

TOTALCMD#BAR#DATA
cm_SrcPrevCustomView

wcmicons.dll,52



5502
To make the buttons:
1. Mark the green text above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctri+C).
3. Right click on TC's buttonbar and choose "Paste".
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
matu89
Junior Member
Junior Member
Posts: 23
Joined: 2018-02-27, 18:54 UTC

Re: view files by Name

Post by *matu89 »

thank you very much!

for what i need to use Auto-run commands in configuration ---> View mode ?

can you give an example ?

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

Re: view files by Name

Post by *petermad »

Let's assume that you have made the aforementioned Custom column view, containing [=filesys.CutNameStart.13] and you have named it MyCustomView and that it is the first custom columns view in the list.
Let's also assume that you want that view to automatically be used when you enter the folder c:\MyFolder

Then:
1. Open "Configuration" -> "View Modes".
2. Click the button "Add".
3. Name the View mode: "MyViewMode".
4. At field "Columns view:" open the dropdown list and choose: "1. MyCustomView".
5. In the field "Auto-run commands:" write "|cm_SrcLong" - without the qutation marks, notice the | in front - it will return you to normal Full view when you leave the directory.

6. Open "Configuration" -> "Auto Switch Mode".
7. Check the box "Automatically switch view mode on directory change".
8. Click the button "Add".
9. Leave the "+ Must match" Rule as it is.
10. In the "Directory:" field type: c:\MyFolder\
11: In "Set this mode:" select: "MyViewMode".
12: Click OK.
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
Post Reply