- Add M1 builds to release.
- Support installing from Nix flake.
- Add
-E/--exclude PATTERN
option to exclude paths from results. - Add
-e/--color WHEN
option to control colors in output. - The short flag for
--version
is renamed from-v
to-V
. - Provide completion scripts for various shells in scripts/completion.
- Add
-p/--portable
option, which enables portable paths when generating editor aliases. Without this flag, editor alias only works in the same working directory in whichtre
was last invoked. - Files untracked by git is now included in output by default.
- Output order is now deterministic.
- Fixed a bug when root isn't ".", the paths for sub-directories are wrong.
- Fix a bug where intermediary directories from
git ls-files
don't have correct path, resulting in wrong colors in output, as well as non-functioning editor alias.
- Add '--limit/-l' option, which limits the maximum diplay depth of the file tree.
- Hidden directory as the direct input now reveals its content. Previously the
input directory is not exempt from the "hiding the hidden directry"
functionality unless
-a
is used. Implemented by JaSpa at #55.
- Add '--directotries-only/-d' option, which limits output to only directories.
- Add '--json/-j' option, which makes tre output JSON instead of the tree diagram.
- Unix manual is now included as
manual/tre.1
. It maybe distributed along with the executable now.
Support LS_COLORS, with a default set of colors.
Added editor/program aliasing support for Command Prompt and PowerShell on Windows.
Fixed a issue where single quote in file name prevents editor aliasing
Improve stability. Reduce possibility of crashing.
Add initial Windows build.
Breaking change: The -e
option now takes an optional argument. When the
argument is supplied, it'll be used as the command instead of the $EDITOR
environment variable for opening the selected path. In previous setup
instructions, the invocation in shell scripts is tre -e PATH
. In this release,
that command will cause tre
to think PATH
is the editor argument. So user
will need to update their setup to be tre PATH -e
instead (README has been
updated to reflect this.)
This release is rewritten from scratch in Rust, which brings some nice speed up and Linux binary distribution. In the near futrue, Windows PowerShell support could be added as well.