71

How can I ignore .svn folders when searching in Total Commander?

Michael Petrotta
  • 59,888
  • 27
  • 145
  • 179
vietean
  • 2,975
  • 9
  • 40
  • 65

4 Answers4

164

To exclude some files or folders from your search, use the following syntax in "Search field:":

  1. Exclude from search *.bak and *.old files

    my*.*|*.bak *.old
    
  2. Don't search in .svn folders

    *.cs|.svn\
    
  3. Don't search in .git folder

    *.cs|.git\
    

The meaning of | is: 'and not'. Everything after it is excluded from the search. This syntax can also be used in other places, for example inside the ignore list.

Nils Lindemann
  • 1,146
  • 1
  • 16
  • 26
Ivan
  • 3,084
  • 4
  • 21
  • 22
  • 2
    Is everything after `|` excluded, or should I use the character for every exclude? – Tomáš Zato Jan 09 '15 at 14:19
  • 1
    Accepted answer address true need of OP, but this answer is pure gold. It work in "synchronize dirs" dialog too (and I suppose in every single place where file mask is needed). – Marek Jun 24 '15 at 08:40
  • 1
    This seems to require a wildcard * in the search item before the `|` in TC 8.50. – Fabian Dec 20 '17 at 06:20
  • I think this approach is much more flexible than palacsint's answer. – lxmfly123 May 15 '18 at 07:29
50
  • With Total Commander 8.01: Configuration menu / Options / (Operation) / Ignore List
  • With older versions: Configuration menu / Options / (Display) / Ignore List

Then add

.svn

to the textbox.

palacsint
  • 28,416
  • 10
  • 82
  • 109
4

In my case I tried search text, but exclude searching in directories bin and obj. I didn't know that pattern before pipe is required too, but I found help here: https://gist.github.com/DStereo/af5f54c2d2d0d7073383f22753396185

So I had to put pattern in Search for field.

*|bin\ obj\
Lukasz Szczygielek
  • 2,768
  • 2
  • 20
  • 34
2

In version 9.12 you should also use an asterix. So add the following to Configuration menu / Options / (Operation) / Ignore List:

*.svn
Steven
  • 23
  • 6