Commit graph

11 commits

Author SHA1 Message Date
三咲雅 · Misaki Masa
2683b1d6a2
refactor: eliminate exec (#1045) 2024-05-16 18:20:47 +08:00
Solomon Jacobs
fd455a1ae4
feat: readable toml parsing error (#854)
Previously, the yazi displayed the following error.
```
Backtrace omitted. Run with RUST_BACKTRACE=1 to display it.
Run with RUST_BACKTRACE=full to include source snippets.

The application panicked (crashed).
  called `Result::unwrap()` on an `Err` value: Error { inner: Error { inner: TomlError { message: "invalid key", raw: Some("{ mime = \"application/octet-stream\",\nuse = [ \"extract_zlib\", \"reveal\" ] }\n"), keys: [], span: Some(0..1) } } }
in yazi-config/src/preset.rs, line 42
thread: main
```

It now displays the following message instead:

```
Error: Loading "/home/solo/.config/yazi/yazi.toml"

Caused by:
    TOML parse error at line 1, column 1
      |
    1 | { mime = "application/octet-stream",
      | ^
    invalid key
```

For more information see issue GH-847.

---------

Co-authored-by: sxyazi <sxyazi@gmail.com>
2024-03-31 21:44:17 +08:00
三咲雅 · Misaki Masa
411ba2fe85
refactor: switch to stderr (#819) 2024-03-15 20:31:39 +08:00
三咲雅 · Misaki Masa
9396d8760c
feat: ya.hide() plugin API (#792) 2024-03-09 03:07:20 +08:00
sxyazi
4d8e276a6f
feat: flavor (#753) 2024-02-29 11:54:41 +08:00
三咲雅 · Misaki Masa
46516dab74
refactor: new yazi-boot crate (#728) 2024-02-26 09:14:04 +08:00
AbhaySP
84616bd15f
feat: enable the ability to sort the which key (#662) 2024-02-13 02:39:36 +08:00
三咲雅 · Misaki Masa
32aa1909cf
feat: fine-grained scheduling priority (#462) 2023-12-29 22:37:43 +08:00
三咲雅 · Misaki Masa
82bab0f24a
feat!: custom preloader & previewer (#401) 2023-12-26 19:48:33 +08:00
Hanaasagi
bb2353c7b9
feat: make Input and Select positions customizable (#361) 2023-11-18 01:40:20 +08:00
三咲雅 · Misaki Masa
671b480ab1
refactor: publish to crates.io (#298) 2023-10-22 16:34:20 +08:00
Renamed from config/src/lib.rs (Browse further)