Repository navigation
Feature release that changes how lx picks files. Ignore rules and include and exclude patterns now behave like ripgrep, so lx selects the same files you would expect from rg. Repository URLs, archives and streamed input are handled more reliably, and skeletons are better for C and C++ code. The library API has been reworked so it can do everything the CLI does.
Behaviour changes
- Ignore rules and -i/-e globs work like ripgrep (#126, #132).
- The -f flag is removed and named paths are never filtered (#126).
- Each -s section has its own globs (#132).
- Repository URLs apply their own ignore files (#135).
- FIFOs, devices and stdin are read up to the -m size limit (#138).
Breaking library changes
- Discovery moved to NewCollector and DiscoverOptions (#128).
- RunnerConfig is split into DiscoverOptions and RenderOptions (#128).
- Execute returns a Report and templates get a Plan (#137).
What's Changed
- chore: update dependencies (#109)
- fix: respect NO_COLOR and TERM in help output (#110)
- fix: size walked symlinks by their target (#111)
- feat: respect info/exclude (#113)
- fix: apply excludes inside archives (#115)
- fix: read each file once with exact row counts (#121)
- fix: keep source line numbers in skeleton output (#122)
- perf: read non-seekable inputs lazily for header-only converters (#123)
- refactor: drive skeleton member walking from language tables (#124)
- refactor: build ignore rules from one cached frame per directory (#126)
- fix: prune ignored directories even when a negation names a file below them (#127)
- refactor: move discovery into pkg/lx behind one selector (#128)
- refactor: let the stream admit files and build the tree from them (#130)
- fix: walk extern "C" blocks and type aliases in skeletons and keep function pointers out of -u (#131)
- fix: make -i and -e behave like rg's -g globs (#132)
- refactor: run the CLI against an injected environment (#133)
- perf: expand archives in one pass and leave entries over -m unread (#134)
- feat: match repository URL files from the repository root and name a compressed file's entry without its suffix (#135)
- refactor: report every unreadable input once through the stream (#136)
- refactor: split the stream's plan from its report and render stats in the cli (#137)
- feat: let a cancel interrupt opens, reads and conversions (#138)
- feat: declarative format profiles and an honest public facade (#139)
- refactor: compile the command line into sections of typed items and resolve prompts before inputs (#140)
- fix: read a .h file as C++ when the C++ grammar parses it whole, and keep block docs whole (#141)
- fix: leave the working directory out of the html header (#147)
Full Changelog: v1.3.1...v1.4.0