yazi/yazi-config/preset
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
..
keymap-default.toml feat!: make help menu a command palette (#4074) 2026-06-22 23:57:29 +08:00
README.md feat: new base field for the Url userdata (#2492) 2025-03-18 17:06:20 +08:00
theme-dark.toml feat!: make help menu a command palette (#4074) 2026-06-22 23:57:29 +08:00
theme-light.toml feat!: make help menu a command palette (#4074) 2026-06-22 23:57:29 +08:00
vfs-default.toml fix: add preset VFS config file to avoid TOML parsing errors (#3414) 2025-12-08 16:24:19 +08:00
yazi-default.toml feat: add show_icons and truncate_paths options to [confirm] 2026-07-04 21:39:28 +02:00

Default Configuration

Important

If you're using a stable release of Yazi instead of the newest nightly build, make sure you're checking these files out from the shipped tag, not the newest main branch.

This directory contains the default configuration files for Yazi:

These files are already included with Yazi when you install the release, so you don't need to manually download or copy them to your Yazi configuration directory.

However, if you want to customize certain configurations:

  • Create a yazi.toml in your config directory to override certain settings in yazi-default.toml, so either:
    • ~/.config/yazi/yazi.toml on Unix-like systems
    • %AppData%\yazi\config\yazi.toml on Windows
  • Create a keymap.toml in your config directory to override certain settings in keymap-default.toml, so either:
    • ~/.config/yazi/keymap.toml on Unix-like systems
    • %AppData%\yazi\config\keymap.toml on Windows
  • Create a theme.toml in your config directory to override certain settings in theme-light.toml and theme-dark.toml, so either:
    • ~/.config/yazi/theme.toml on Unix-like systems
    • %AppData%\yazi\config\theme.toml on Windows

For the user's theme.toml file, you can only apply the same color scheme to both the light and dark themes.

If you want more granular control over colors, specify two different flavors for light and dark modes under the [flavor] section of your theme.toml, and override them in your respective flavor instead.

Learn more