Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3.1 #202

Merged
merged 34 commits into from
Jul 1, 2023
Merged

V3.1 #202

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
d841f3d
fix hacks
solidiquis Jun 17, 2023
b9d09c6
support multi-config with toml config file
solidiquis Jun 26, 2023
6669ea9
visual bug fix
solidiquis Jun 26, 2023
76c2973
update error message
solidiquis Jun 26, 2023
e54f25f
README
solidiquis Jun 26, 2023
7724e5d
README
solidiquis Jun 26, 2023
bf1156c
README
solidiquis Jun 26, 2023
6cc476a
Update README.md
solidiquis Jun 26, 2023
c42784f
Merge pull request #201 from solidiquis/multi-config
solidiquis Jun 26, 2023
c0e771f
Don't do a full traversal if depth is limited to 1 and size is suppre…
solidiquis Jun 26, 2023
35be382
fmt
solidiquis Jun 26, 2023
7deccb6
Merge pull request #203 from solidiquis/suppress-size-performance
solidiquis Jun 26, 2023
5fe4a1d
same filesystem flag
solidiquis Jun 26, 2023
c17e84a
update readme
solidiquis Jun 26, 2023
9fbeaa9
Merge pull request #204 from solidiquis/same-fs
solidiquis Jun 26, 2023
910d9d3
add support for NO_COLOR
solidiquis Jun 26, 2023
907a6e3
no color support
solidiquis Jun 26, 2023
be3cc71
Merge pull request #205 from solidiquis/no-color
solidiquis Jun 26, 2023
28697fb
inverted flat layout
solidiquis Jun 26, 2023
2e7a36b
readme update
solidiquis Jun 26, 2023
cb3a5df
Merge pull request #206 from solidiquis/inverted-flat
solidiquis Jun 26, 2023
2e5e8ca
alias for time types
solidiquis Jun 26, 2023
5e0e229
Merge pull request #207 from solidiquis/time-aliases
solidiquis Jun 26, 2023
76f5713
new trait to handle the reconciliation of arguments from CLI and conf…
solidiquis Jun 28, 2023
72900d9
comment spelling
solidiquis Jun 28, 2023
0966782
me like the comma
solidiquis Jun 28, 2023
b711846
Merge pull request #209 from solidiquis/config-hacks-begone
solidiquis Jun 28, 2023
be3c86c
cleanup tty restore logic
solidiquis Jun 28, 2023
25330d7
sigint handler
solidiquis Jul 1, 2023
59e9126
expect
solidiquis Jul 1, 2023
a9f90f0
Merge pull request #210 from solidiquis/sigint-tty
solidiquis Jul 1, 2023
a0e5a77
add missing doc comments
solidiquis Jul 1, 2023
74f865d
Update CHANGELOG.md for v3.1
solidiquis Jul 1, 2023
7c19154
version bump and err messages
solidiquis Jul 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,93 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org/).

## [3.1.0] - 2023-07-01

### [What's new](https://github.com/solidiquis/erdtree/pull/202)
- [Multiple configs with .erdtree.toml](https://github.com/solidiquis/erdtree/pull/201)
- [Increased performance with --suppress-size](https://github.com/solidiquis/erdtree/pull/203)
- [-x, --one-file-system](https://github.com/solidiquis/erdtree/pull/204)
- [Support for NO_COLOR](https://github.com/solidiquis/erdtree/pull/205)
- [Inverted flat layout](https://github.com/solidiquis/erdtree/pull/206)
- [Aliases: atime, ctime, and mtime](https://github.com/solidiquis/erdtree/pull/207)
- [ctrlc handler to restore cursor if progress indicator is enabled](https://github.com/solidiquis/erdtree/pull/210)


### [.erdtree.toml](https://github.com/solidiquis/erdtree/pull/201)

First and foremost:

**`.erdtreerc` is planned for deprecation by v3.3 so please migrate to `.erdtree.toml` by then.**

There is now support for multiple configs:

```
-c, --config <CONFIG> Use configuration of named table rather than the top-level table in .erdtree.toml
```

So given the following example `.erdtree.toml`:

```toml
icons = true
human = true

# Compute file sizes like `du`
[du]
disk_usage = "block"
icons = true
layout = "flat"
no-ignore = true
no-git = true
hidden = true
level = 1

# Do as `ls -l`
[ls]
icons = true
human = true
level = 1
suppress-size = true
long = true
no-ignore = true
hidden = true

# How many lines of Rust are in this code base?
[rs]
disk-usage = "line"
level = 1
pattern = "\\.rs$"
```

```
$ erd

# equivalant to

$ erd --human --icons
```

...

```
$ erd -c ls

# equivalent to

$ erd --icons --human --level 1 --suppress-size --long --no-ignore --hidden
```

etc.

For further information on how to get started with the new `.erdtree.toml` please refer to the [README.md](README.md#toml-file).

**NOTE**:
- Multiple configs are only supported via `.erdtree.toml`.
- If you have both a `.erdtree.toml` and `.erdtreerc` then the latter will take precedent. Attempts to use `--config` in said case will result in an error and a warning asking to migrate from `.erdtreerc` to `.erdtree.toml`.
- Again: **`.erdtreerc` will be deprecated in favor of `.erdtree.toml` by v3.3**


## [3.0.2] - 2023-06-12
- Added support for `.erdtree.toml`

### Bug fixes
- [Fixed segmentation fault that occurs with `--long` when file has an invalid user or group](https://github.com/solidiquis/erdtree/pull/193)
Expand Down
Loading