'literal' & 'truncate-owner' in config not recognised as options
- Dominant language
- Rust
- Stars
- 16.2k
- Forks
- 510
- PR merge metrics
- No merged PRs in 30d
Description
- os: Armbian 24.11.0-trunk.384 bookworm
- `lsd --version`: lsd 0.23.1
- `echo $TERM`: alacritty
- `echo $LS_COLORS`:
## Expected behaviour
The suggested config in the README should not lead to lsd throwing an error.
## Actual behaviour
When copy pasting the suggested config from the README to `$XDG_CONFIG_HOME/fd/ignore`, lsd complains:
```
lsd: Configuration file /home/axx/.config/lsd/config.yaml format error, unknown field `literal`, expected one of `classic`, `blocks`, `color`, `date`, `dereference`, `display`, `icons`, `ignore-globs`, `indicators`, `layout`, `recursion`, `size`, `permission`, `sorting`, `no-symlink`, `total-size`, `symlink-arrow`, `hyperlink`, `header` at line 139 column 1.
```
and after commenting that out:
```
lsd: Configuration file /home/axx/.config/lsd/config.yaml format error, unknown field `truncate-owner`, expected one of `classic`, `blocks`, `color`, `date`, `dereference`, `display`, `icons`, `ignore-globs`, `indicators`, `layout`, `recursion`, `size`, `permission`, `sorting`, `no-symlink`, `total-size`, `symlink-arrow`, `hyperlink`, `header` at line 144 column 1.
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Begin with the README configuration example and the configuration-parsing entry point that reports unknown fields. Reproduce the error using the shown `literal` and `truncate-owner` entries, then verify that the documented configuration no longer causes an error and add or update a focused configuration check if the repository provides one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100