Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excluding whole projects when searching Workspace scope #177

Open
awmartin opened this issue Oct 5, 2017 · 3 comments
Open

Excluding whole projects when searching Workspace scope #177

awmartin opened this issue Oct 5, 2017 · 3 comments

Comments

@awmartin
Copy link

awmartin commented Oct 5, 2017

When searching in the "Workspace" scope, I can't seem to find a way to ignore an entire project folder. If I add it to the ignored paths, todo-show continues to scan the contents even though I've added the project folder's name.

My repro:

  • I have a project folder "processing.py" in the Atom workspace.
  • Add "processing.py" to the "Ignore These Paths" field in the Config pane.
  • Subfolders of "processing.py" are still scanned when using Workspace scope (e.g. "processing.py/runtime/src/...")

I would expect to be able to ignore the entire project. The use case is including a project in the workspace that's essentially a library I'm contributing to and modifying, but from which I don't want to include all the TODOs written by the original developer, just mine in my own project folders.

@mrodalgaard
Copy link
Owner

Adding the "processing.py" folder to your ignoreThesePaths config should be sufficient. When you say project folder you mean a folder inside your opened Atom project containing another project and not another project opened in Atom?

Can I see your todo-show entry from config.cson and the project structure?

@awmartin
Copy link
Author

awmartin commented Oct 6, 2017

A screenshot of my workspace. The "project folders" are the top-level folders in the Tree View, added with the right-click option, "Add Project Folder.

atom todo show project folder

config.cson looks like this:

  "todo-show":
    ignoreThesePaths: [
      "node_modules"
      "vendor"
      "bower_components"
      "*.pdf"
      "numpy"
      "libraries"
      "modes"
      "processing.py"
    ]

Thanks for taking a look!

@mrodalgaard
Copy link
Owner

Ahh, Ignore These Paths does not work that way. It ignores directories and files inside a project (processing.py in your example). Just like .gitignore. It does not look at the project name itself inside a workspace. So if you have multiple projects open inside your workspace, you should use Todo Show: Find In Project.

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

No branches or pull requests

2 participants