mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Tree.ignorePattern
This commit is contained in:
@@ -58,6 +58,7 @@ class TreePane extends Pane
|
||||
|
||||
list = $('<ul>')
|
||||
for path in paths
|
||||
continue if @tree.ignorePattern.test path
|
||||
filename = path.replace(root, "").substring 1
|
||||
type = if fs.isDirectory path then 'dir' else 'file'
|
||||
encodedPath = encodeURIComponent path
|
||||
|
||||
@@ -11,6 +11,8 @@ fs = require 'fs'
|
||||
|
||||
module.exports =
|
||||
class Tree extends Extension
|
||||
ignorePattern: /\.git|\.xcodeproj|\.DS_Store/
|
||||
|
||||
constructor: ->
|
||||
KeyBinder.register "tree", @
|
||||
KeyBinder.load require.resolve "tree/key-bindings.coffee"
|
||||
|
||||
Reference in New Issue
Block a user