[Solved]How to let some files and folders do not show in the TotalCommander file list within the built-in function?

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
colemanlee
Junior Member
Junior Member
Posts: 22
Joined: 2019-02-27, 15:03 UTC
Location: ghisler.ch
Contact:

[Solved]How to let some files and folders do not show in the TotalCommander file list within the built-in function?

Post by *colemanlee » 2019-09-12, 13:08 UTC

Hi,
How to let some files and folders do not show in the TotalCommander file list within the built-in function?
I need to copy\paste\test\delete different kinds and quantity of files to a folder which contains many folders and files, I want to hide the existing folders and files, then it will only show those test files and folders.
Is there a built-in command to do this, not Microsoft Windows explorer hide function?
Last edited by colemanlee on 2019-09-13, 06:09 UTC, edited 1 time in total.
Jeff

User avatar
ts4242
Power Member
Power Member
Posts: 2076
Joined: 2004-02-02, 20:08 UTC
Contact:

Re: How to let some files and folders do not show in the TotalCommander file list within the built-in function?

Post by *ts4242 » 2019-09-12, 19:35 UTC

1- Select the folder(s)/file(s) you want to hide
2- Open Configuration dialog> Ignore list page
3- Press Add selected names with full path or Add selected names

User avatar
colemanlee
Junior Member
Junior Member
Posts: 22
Joined: 2019-02-27, 15:03 UTC
Location: ghisler.ch
Contact:

Re: How to let some files and folders do not show in the TotalCommander file list within the built-in function?

Post by *colemanlee » 2019-09-13, 03:12 UTC

ts4242 wrote:
2019-09-12, 19:35 UTC
1- Select the folder(s)/file(s) you want to hide
2- Open Configuration dialog> Ignore list page
3- Press Add selected names with full path or Add selected names
Hi,
Problem solved, thnak you very much.
Now I can edit the %COMMANDER_PATH%\User\Tcignore.txt directly if I have a lot of folder(s)/file(s) to hide. But I have two new questions:
  1. What is the comments/remark symbol in Tcignore.txt?
  2. ---I want to separate these lines and add comments/remark like "//------useless------" or "/*------Obsolete------*/".
  3. If I edit the Tcignore.txt directly and then save it, I need to restart the TC to make it work, is it possiable to make it work with out restart?
Jeff

User avatar
ts4242
Power Member
Power Member
Posts: 2076
Joined: 2004-02-02, 20:08 UTC
Contact:

Re: How to let some files and folders do not show in the TotalCommander file list within the built-in function?

Post by *ts4242 » 2019-09-13, 03:45 UTC

1. I don't aware of any special comment character, anyway adding such comments or empty lines is acceptable.

2. Toggle ignore list, add the following button to your button bar and press it twice

Code: Select all

TOTALCMD#BAR#DATA
cm_SwitchIgnoreList

wcmicons.dll,81


0
2922

User avatar
colemanlee
Junior Member
Junior Member
Posts: 22
Joined: 2019-02-27, 15:03 UTC
Location: ghisler.ch
Contact:

Re: How to let some files and folders do not show in the TotalCommander file list within the built-in function?

Post by *colemanlee » 2019-09-13, 06:09 UTC

ts4242 wrote:
2019-09-13, 03:45 UTC
1. I don't aware of any special comment character, anyway adding such comments or empty lines is acceptable.

2. Toggle ignore list, add the following button to your button bar and press it twice

Code: Select all

TOTALCMD#BAR#DATA
cm_SwitchIgnoreList

wcmicons.dll,81


0
2922
Hi,
It works perfectly, thank you very much.
Jeff

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

Re: How to let some files and folders do not show in the TotalCommander file list within the built-in function?

Post by *MVV » 2019-09-13, 06:11 UTC

Any character that is not allowed in filenames may be used for commenting, e.g.:

Code: Select all

: comment
// comment
You can also use valid characters if you write sequences that won't appear in your filenames, e.g.:

Code: Select all

# This line shouldn't appear in filename to prevent accidental ignoring
And of course you can add empty lines for readability.

You can use my TCFS2 for toggling ignore list after its modification (it will only re-enable ignore list if it is enabled):

Code: Select all

TCFS2 /ef "if(isIgnoreListEnabled, tcm(2922)+tcm(2922))"

User avatar
colemanlee
Junior Member
Junior Member
Posts: 22
Joined: 2019-02-27, 15:03 UTC
Location: ghisler.ch
Contact:

Re: How to let some files and folders do not show in the TotalCommander file list within the built-in function?

Post by *colemanlee » 2019-09-13, 07:30 UTC

MVV wrote:
2019-09-13, 06:11 UTC
Any character that is not allowed in filenames may be used for commenting, e.g.:

Code: Select all

: comment
// comment
You can also use valid characters if you write sequences that won't appear in your filenames, e.g.:

Code: Select all

# This line shouldn't appear in filename to prevent accidental ignoring
And of course you can add empty lines for readability.

You can use my TCFS2 for toggling ignore list after its modification (it will only re-enable ignore list if it is enabled):

Code: Select all

TCFS2 /ef "if(isIgnoreListEnabled, tcm(2922)+tcm(2922))"
Hi,
Good plugin, thank you.
Jeff

Post Reply