     deferred
 
   ignorePath: (path) ->
-    fs.base(path).match(/\.DS_Store/) or path.match(/(^|\/)\.git(\/|$)/)
+    _.find @ignoredPathRegexes, (regex) -> path.match(regex)
+
+  ignorePathRegex: ->
+    @ignoredPathRegexes.map((regex) -> "(#{regex.source})").join("|")
 
   resolve: (filePath) ->
     filePath = fs.join(@getPath(), filePath) unless filePath[0] == '/'

    @setTabText('  ')
    @setAutoIndent(true)
    @setSoftTabs(true)

  getPath: ->
    @rootDirectory?.path

  autoIndent: null
  softTabs: null
  softWrap: null
  ignoredPathRegexes: null

  constructor: (path) ->
    @setPath(path)
