Skip to content

Ignore files/folder in .gitignore while rendering the tree #2

@MohammedMahboob786

Description

@MohammedMahboob786

🔑 Short Summary / Problem Statement

Can we enhance the tree functionality to automatically exclude files and directories specified in the .gitignore file from the tree display?

💡 Proposed Solution / Feature Description

Feature Request: Can we enhance the tree functionality to automatically exclude files and directories that are specified in the .gitignore file from being displayed in the tree structure?

🎯 Use Case / Motivation

Faster tree rendering by excluding potentially large directories like node_modules, pycache, or build foldersReduced memory usage when displaying large projects with many ignored files

🔄 Alternatives Considered (if any)

No response

📎 Additional Context / References

No response

⚠️ Priority / Importance

Medium

🧩 Affected Modules / Components

  • CLI (cli.py)
  • Tree Builder (tree_builder.py)
  • Tree Renderer (tree_renderer.py)
  • Markdown Export (md_exporter.py)
  • Notes Manager (notes_manager.py)
  • New module
  • Other

🔗 Dependencies / Requirements

No response

✅ Pre-Submission Checklist

  • Problem clearly described
  • Proposed solution explained
  • Use case/motivation provided
  • Checked for similar existing features
  • Included references or mockups (if applicable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions