On November 24 and 25, after two months of development, releases 2.2.0 and 2.2.1 of the console utility tree, designed for viewing directory trees. The program is written in C and is distributed under the GNU GPL 2 or later license.
New versions include:
- added the --opt-toggle option to switch options like -a, -p, etc. Useful when using aliases;
- added the --hyperlink option to display files as hyperlinks using the OSC 8 terminal command. Also added --scheme and --authority options to change the scheme and hostname of links;
- fixed the JSON error message when failing to open a directory and requiring full tree output. For example, when using --du;
- fixed a minor rounding error in human-readable size output (-h), where 9.99K rounded to 10.0K instead of 10K;
- fixed the directory size summary report when using the -du option. The sum of sizes was correct, but the summary report presented the sum of all directory sizes instead of just the top-level directory's sum;
- added a .gitignore file to the distribution for those who need it;
- added none as an allowed parameter for the --sort option (equivalent to -U);
- added cross-compilation support for Android;
- restored the output of available encodings when no argument is provided for the --charsets option;
- the --help and --usage commands use bold and italic typography with ANSI attributes when color usage is enabled (using the -C option);
- cleaned up and refactored the code;
- fixed a regression when freeing a pointer;
- the fix for the HTML href directory path (with the -H baseHREF option) has been restored in a modified form, which was removed in version 2.1.2.
Source: linux.org.ru
