Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Cannot ignore directories #22

Closed
wylieconlon opened this issue Mar 14, 2014 · 7 comments · Fixed by #31
Closed

Cannot ignore directories #22

wylieconlon opened this issue Mar 14, 2014 · 7 comments · Fixed by #31
Assignees

Comments

@wylieconlon
Copy link

Reading through the load-paths-handler source, it looks like the ignoredNames config only matches the file name without extension (the base name). This obviously doesn't work when you want to specify an ignore on a directory level, such as for build products or dependencies.

I would prefer to specify ignores with a syntax like .gitignore, from the root of the current project. For example:

'fuzzyFinder':
  'ignoredNames': [
    'public/*'
    'bower_components/*'
    'node_modules/*'
  ]
@kevinsawicki
Copy link
Contributor

This will be fixed in the Atom release to parse/match the ignored names using minimatch.

So you'll probably want something like:

'fuzzyFinder':
  'ignoredNames': [
    '**/public/*'
    '**/bower_components/*'
    '**/node_modules/*'
  ]

If you want these three folders ignored anywhere they appear in the project.

@andrewjmead
Copy link

@kevinsawicki, anyway to only ignore the folder at a specific path (not every folder with that name). I tried ./public/*, public/*, and /public/*.

Any ideas on this one?

@vtsirkinidis
Copy link

This guy nails it:
https://virtual-host-discourse.global.ssl.fastly.net/uploads/github_atom/370/82f5e9a38b76322a.jpg

@JustinAiken
Copy link

That link is gone; how do ignore a directory (that's not gitignored) ?

@swaathi
Copy link

swaathi commented Apr 12, 2016

The link no longer works. How do I ignore a directory?

@szymonbaranowski
Copy link

Anyone?

@ndan
Copy link

ndan commented Aug 11, 2017

Go to Atom -> Config, It'll open config.cson, then add/edit "fuzzy-finder" section like in the example below:

"*":
...
  "fuzzy-finder":
    ignoredNames: [
      "tmp"
      ".dir-locals.el"
    ]
...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants