yazi/yazi-config
greg 4a128fc1f5 feat: add show_icons and truncate_paths options to [confirm]
The trash/delete/overwrite confirmation dialogs (icons added in #4096)
had no way to disable icons, and long file paths would hard word-wrap
onto a new line right after the icon since a path has no internal
spaces to break on cleanly.

Add two options under [confirm], both independently toggleable from the
existing [input] show_icons:

- show_icons (default true): skip the icon lookup for confirm dialogs.
- truncate_paths (default false): RTL-truncate each path with a leading
  "…" to fit the popup's configured width, instead of word-wrapping.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-04 21:39:28 +02:00
..
preset feat: add show_icons and truncate_paths options to [confirm] 2026-07-04 21:39:28 +02:00
src feat: add show_icons and truncate_paths options to [confirm] 2026-07-04 21:39:28 +02:00
Cargo.toml feat: add show_icons and truncate_paths options to [confirm] 2026-07-04 21:39:28 +02:00
README.md docs: document the applicability of all yazi-* crates (#3345) 2025-11-20 09:00:01 +08:00

yazi-config

This crate is part of Yazi, and it is not supposed to be used outside, as there are no guarantees about the stability of its API.