Configure tcignore.txt to only display .htm files

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
TimA
Junior Member
Junior Member
Posts: 24
Joined: 2008-05-20, 13:46 UTC
Location: Ottawa, Canada

Configure tcignore.txt to only display .htm files

Post by *TimA »

I'm trying to figure out how to configure the ignore list file to ignore all files except for .htm and .asp files.
Currently I have a file that is setup to serve most purposes. If I want to sync my images for example I just comment out the line that starts with *.png ("*.png). On a daily base I only need .htm and .asp files when I'm synching.

Here's my current ignore list:

Code: Select all

*_vti_*; dwsync.xml; *.drf; _notes; _private; desktop.ini; thumbs.db
*.doc; *.pdf; *.xls; *.ppt;
*.png; *.gif; *.jpg; *.bmp
*.mpg; *.avi; *.wmv; *.mov; *.mp4
*.swf; *.flv
*.psd; *.ai; *.tif
*.zip; *.rar
calendar\; recreation\; wordpress\
In a separate ignorelist file (htm_asp_only.txt) I'd like to have something like:

Code: Select all

*.*|.htm .asp
I can't figure out how to get that to work for me. I've read through the ignore list help and the wildcard "?" is mentioned along with * but there is no indication as to what it accomplishes or how to use it.

I would think it should be possible, but I'm feeling a little dense. :(
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

For ignore list there should be:
*.* | *.htm *.asp

But you don't need ignore list - for this purpose "User filter" (CTRL+F12) is enough, just type:
*.htm *.asp
and TC will display only these files.
TimA
Junior Member
Junior Member
Posts: 24
Joined: 2008-05-20, 13:46 UTC
Location: Ottawa, Canada

Post by *TimA »

the CTRL+F12 is good for displaying files, but it doesn't work with the Synchronize directories which is really what the purpose of this operation is.

The ignore list *.* | *.htm *.asp is unfortunately too greedy, as you can't see any sub-directories, but it does work with the Sync function.

If I could apply the User filter to the Synchronize directories function concurrently with using my current Ignore list that would be ideal.
User avatar
petermad
Power Member
Power Member
Posts: 16157
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2TimA

In the middle of the top of the Synchronize dialog there is a field where you can enter which filetypes you want to synchronize - just type *.htm *.asp there.

See: http://madsenworld.dk/tcmd/synctypes.png
Last edited by petermad on 2012-03-31, 18:41 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

For "Synchronize directories" function you can save sync operation with parameters and reload on start (using SYNCOPEN command) or use filter for files from combobox.

For ignore list use:
*.* | *.htm *.asp *\
to display directories.
TimA
Junior Member
Junior Member
Posts: 24
Joined: 2008-05-20, 13:46 UTC
Location: Ottawa, Canada

Post by *TimA »

Thanks petermad and Gral for your responses. Both of your solutions are very useful for me and address my question perfectly.

I can't believe I've been using TC for this many years and overlooked the file type selection in the Synchronize dialog. :oops:

Thanks again for your help.

OT: I'm not receiving notifications because I have a Gmail account.
Post Reply