sorting via mimetype
Author: hexed1Created Sep 3, 2026Updated Sep 3, 2026
Labelsfeature
ya env output
Yazi
Version: 26.9.1 (Arch Linux 2026-09-02)
Debug : false
Triple : x86_64-unknown-linux-gnu (linux-x86_64)
Rustc : 1.98.0 (88d9e12a 2026-08-18)
Backtrace: None
Ya
Version: 26.9.1 (Arch Linux 2026-09-02)
Debug : false
Triple : x86_64-unknown-linux-gnu (linux-x86_64)
Rustc : 1.98.0 (88d9e12a 2026-08-18)
Config
Init : /home/hexed/.config/yazi/init.lua (2331 chars)
Yazi : /home/hexed/.config/yazi/yazi.toml (3345 chars)
Keymap : /home/hexed/.config/yazi/keymap.toml (21521 chars)
Theme : /home/hexed/.config/yazi/theme.toml (34 chars)
VFS : /home/hexed/.config/yazi/vfs.toml (No such file or directory (os error 2))
Package : /home/hexed/.config/yazi/package.toml (2497 chars)
Dark/light flavor: ArcSwapAny("th") / ArcSwapAny("")
Emulator
TERM : Some("xterm-kitty")
TERM_PROGRAM : None
TERM_PROGRAM_VERSION: None
Brand.from_env : Some(Kitty)
Emulator.probe : Emulator { brand: Kitty, version: ArcSwapAny("kitty(0.48.2)"), csi_u: Some(0), kgp: true, kgp_shm: true, sixel: false, background: Some([1285, 1542, 2313]), color_scheme: Some(false), csi_16t: (13, 26), force_16t: false, osc_5522: true, cursor_blink: false, cursor_shape: Some(1), mux: None, probe: Probe { id: Id(0), completed: false }, started: false }
Adapter
Drivers.matches: Kgp
TERM.dimension : Dimension { cols: 192, rows: 50, width: 2496, height: 1300 }
Desktop
XDG_SESSION_TYPE : Some("wayland")
WAYLAND_DISPLAY : Some("wayland-1")
DISPLAY : Some(":1")
NIRI_SOCKET : None
SWAYSOCK : None
HYPRLAND_INSTANCE_SIGNATURE: Some("efb50993780079460b0cbed1363e2166a2de1d9f_1788397859_1449165327")
WAYFIRE_SOCKET : None
SSH
shared.in_ssh_connection: false
WSL
WSL: false
Variables
SHELL : Some("/bin/fish")
EDITOR : None
VISUAL : None
YAZI_FILE_ONE : None
YAZI_CONFIG_HOME : None
YAZI_ZOXIDE_OPTS : None
SSH_AUTH_SOCK : None
FZF_DEFAULT_OPTS : None
FZF_DEFAULT_COMMAND: None
Text Opener
default : Some(OpenerRuleArc(OpenerRule { id: Id(25), run: "nvim %s", block: true, orphan: false, desc: "edit", for: Unix, spread: true }))
block-create: Some(OpenerRuleArc(OpenerRule { id: Id(25), run: "nvim %s", block: true, orphan: false, desc: "edit", for: Unix, spread: true }))
block-rename: Some(OpenerRuleArc(OpenerRule { id: Id(25), run: "nvim %s", block: true, orphan: false, desc: "edit", for: Unix, spread: true }))
Multiplexers
tmux version : No such file or directory (os error 2)
tmux build flags : enable-sixel=Unknown
ZELLIJ_SESSION_NAME: None
Zellij version : 0.45.1
Dependencies
file : 5.48
ueberzugpp : No such file or directory (os error 2)
ffmpeg/ffprobe: 9.0.1 / 9.0.1
pdftoppm : 26.08.0
magick : 7.1.2-30
fzf : 0.74.3
fd/fdfind : 10.5.0 / No such file or directory (os error 2)
rg : 15.2.0
chafa : 1.18.2
zoxide : 0.10.0
7zz/7z : No such file or directory (os error 2) / 26.02
resvg : 0.48.1
jq : 1.8.2
Clipboard
wl-copy/paste: 2.3.0 / 2.3.0
xclip : No such file or directory (os error 2)
xsel : No such file or directory (os error 2)
Routine
`file -bL --mime-type`: text/plainPlease describe the problem you're trying to solve
I suggest adding sorting so that files of the same type are located next to each other
Would you be willing to contribute this feature?
- Yes, I'll give it a shot
Describe the solution you'd like
Sort by extention |
flac
gif
iso
jpg
mp3
mp4
zip
sort by mime application/iso application/zip audio/flac audio/mpeg image/gif image/jpeg video/mp4
Additional context
No response
Checklist
- I have searched the existing issues/discussions
- The latest nightly build doesn't already have this feature
Source: sxyazi/yazi