Commit graph

19 commits

Author SHA1 Message Date
三咲雅 misaki masa
396f634bb8
fix: add preset VFS config file to avoid TOML parsing errors (#3414) 2025-12-08 16:24:19 +08:00
三咲雅 misaki masa
d7df581b67
feat: tasks without progress (#3131) 2025-09-02 16:58:34 +08:00
三咲雅 · Misaki Masa
1a2a18e333
perf: rewrite config parser to double the startup speed (#2508) 2025-03-22 01:57:36 +08:00
三咲雅 · Misaki Masa
4bd8b0b446
feat: new load DDS event (#1980) 2024-12-03 09:13:23 +08:00
三咲雅 · Misaki Masa
4026cebd88
feat!: auto switch between dark and light icons/flavors based on terminal backgrounds (#1946) 2024-11-25 16:43:07 +08:00
三咲雅 · Misaki Masa
5531874a9a
feat: allow disabling certain preset keybinds with the new noop virtual command (#1882) 2024-11-03 16:48:17 +08:00
三咲雅 · Misaki Masa
60cfa7dba9
feat: launch from preset settings if the user's config cannot be parsed (#1832) 2024-10-25 16:27:26 +08:00
三咲雅 · Misaki Masa
13e307eab2
refactor: simplify module exports (#1770) 2024-10-12 21:05:12 +08:00
三咲雅 · Misaki Masa
e6912da7d1
feat: add more context to error messages (#1701) 2024-09-29 15:56:28 +08:00
三咲雅 · Misaki Masa
631afd09ee
fix: warnings should be output to stderr instead of stdout (#1669) 2024-09-21 20:12:35 +08:00
三咲雅 · Misaki Masa
2453539fb5
feat: add list_meta() method to archive plugin (#1638) 2024-09-14 19:00:03 +08:00
三咲雅 · Misaki Masa
caacd15110
fix: filter out the which candidates that overlap with longer key chords (#1562) 2024-08-28 00:08:51 +08:00
sxyazi
f35712a768
refactor: prefer FromStr over Default for configuration parsing with side effects 2024-06-18 16:26:29 +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
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
三咲雅 · Misaki Masa
93dc1b78e2
feat: add prepend_keymap and append_keymap for configuring mixing (#546) 2024-01-20 13:55:57 +08:00
三咲雅 · Misaki Masa
82bab0f24a
feat!: custom preloader & previewer (#401) 2023-12-26 19:48:33 +08:00
三咲雅 · Misaki Masa
671b480ab1
refactor: publish to crates.io (#298) 2023-10-22 16:34:20 +08:00
Renamed from config/src/preset.rs (Browse further)