lsd-rs / lsd

The next gen ls command
Apache License 2.0
12.85k stars 420 forks source link

Cannot import configuration #980

Closed moshpirit closed 5 months ago

moshpirit commented 5 months ago

Expected behavior

lsd loads the config file without any errors. The configuration file is a copy/paste of the classic configuration on the Readme.md file

Actual behavior

lsd --config-file ~/.config/lsd/config.yaml
lsd: Configuration file .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.

thread 'main' panicked at 'Provided file path is invalid', src/main.rs:117:33
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
zwpaper commented 5 months ago

it seems that the literal in config file is not working, please remove it currently, it will be fixed in v1.1.0

moshpirit commented 5 months ago

You're right, I guess I'll close the issue then