Skip to content

Respect .gitignore when indexing (skip node_modules etc.) #28

@sdserranog

Description

@sdserranog

When indexing JS/TS projects, node_modules and other ignored directories get indexed unnecessarily, slowing things down and bloating the library.

Proposal:

  • Skip files/directories matched by .gitignore by default
  • Add a flag to libr add to opt out when needed (e.g. --include-ignored)
libr add ~/my-js-project                     # skips node_modules
libr add ~/my-js-project --include-ignored   # indexes everything

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions