When running treefmt in a sub-folder, it only formats that folder.
treefmt1 was walking up to find the treefmt.toml and then using that as the default TreeRoot variable. This was convenient because you can easily format the whole project from any place in the tree. And if you want to only format the current folder you can still run treefmt .
Describe the bug
When running
treefmt
in a sub-folder, it only formats that folder.treefmt1 was walking up to find the
treefmt.toml
and then using that as the default TreeRoot variable. This was convenient because you can easily format the whole project from any place in the tree. And if you want to only format the current folder you can still runtreefmt .
To Reproduce
Steps to reproduce the behavior:
Expected behavior
System information
Additional context