atom-todo-show icon indicating copy to clipboard operation
atom-todo-show copied to clipboard

Excluding whole projects when searching Workspace scope

Open awmartin opened this issue 6 years ago • 3 comments

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.

awmartin avatar Oct 05 '17 01:10 awmartin

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?

mrodalgaard avatar Oct 05 '17 18:10 mrodalgaard

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!

awmartin avatar Oct 06 '17 00:10 awmartin

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.

mrodalgaard avatar Feb 20 '18 20:02 mrodalgaard