Sort deleted files by deletion timestamp
ya env output
Yazi
Version: 26.8.15 (Arch Linux 2026-08-19)
Debug : false
Triple : x86_64-unknown-linux-gnu (linux-x86_64)
Rustc : 1.97.1 (8bab26f4 2026-07-14)
Backtrace: None
Ya
Version: 26.8.15 (Arch Linux 2026-08-19)
Debug : false
Triple : x86_64-unknown-linux-gnu (linux-x86_64)
Rustc : 1.97.1 (8bab26f4 2026-07-14)
Config
Init : /home/user/.config/yazi/init.lua (3802 chars)
Yazi : /home/user/.config/yazi/yazi.toml (3404 chars)
Keymap : /home/user/.config/yazi/keymap.toml (4048 chars)
Theme : /home/user/.config/yazi/theme.toml (2199 chars)
VFS : /home/user/.config/yazi/vfs.toml (No such file or directory (os error 2))
Package : /home/user/.config/yazi/package.toml (976 chars)
Dark/light flavor: ArcSwapAny("") / ArcSwapAny("")
Emulator
TERM : Some("xterm-kitty")
TERM_PROGRAM : None
TERM_PROGRAM_VERSION: None
Brand.from_env : Some(Kitty)
Emulator.probe : Emulator { brand: Kitty, version: "kitty(0.48.2)", csi_u: Some(0), kgp: true, sixel: false, background: Some([65535, 65535, 65535]), color_scheme: Some(true), csi_16t: (7, 14), force_16t: false, osc_5522: true, cursor_blink: false, cursor_shape: Some(1), mux: None }
Adapter
Drivers.matches: Kgp
TERM.dimension : Dimension { cols: 152, rows: 98, width: 1064, height: 1372 }
Desktop
XDG_SESSION_TYPE : Some("wayland")
WAYLAND_DISPLAY : Some("wayland-0")
DISPLAY : Some(":1")
NIRI_SOCKET : None
SWAYSOCK : None
HYPRLAND_INSTANCE_SIGNATURE: None
WAYFIRE_SOCKET : None
SSH
shared.in_ssh_connection: false
WSL
WSL: false
Variables
SHELL : Some("/bin/bash")
EDITOR : Some("nvim")
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(3), run: NonEmptyString("${EDITOR:-vi} %s"), block: true, orphan: false, desc: "$EDITOR", for: Unix, spread: true }))
block-create: Some(OpenerRuleArc(OpenerRule { id: Id(3), run: NonEmptyString("${EDITOR:-vi} %s"), block: true, orphan: false, desc: "$EDITOR", for: Unix, spread: true }))
block-rename: Some(OpenerRuleArc(OpenerRule { id: Id(3), run: NonEmptyString("${EDITOR:-vi} %s"), block: true, orphan: false, desc: "$EDITOR", 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 : No such file or directory (os error 2)
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-29
fzf : 0.74.3
fd/fdfind : 10.4.2 / No such file or directory (os error 2)
rg : 15.2.0
chafa : No such file or directory (os error 2)
zoxide : 0.10.0
7zz/7z : No such file or directory (os error 2) / 26.02
resvg : No such file or directory (os error 2)
jq : No such file or directory (os error 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
Thank you for the recycle bin implementation in yazi that was missing until now; it makes it now the only necessary file manager on your computer.
However, one thing I find missing is the ability to sort the files in the order (or rather reverse order) of their deletion. If you have files that have accumulated for weeks or months, you are more likely to want to restore a newly deleted file rather than one that you haven’t touched in a while. This is a constant need when I used other file managers and all of them that I know on every OS can sort the most recent deleted files. Unfortunately none of the existing sort possibilities yet implemented in yazi (by file birth or modification timestamp) works the same in the recycle bin. Especially if you have several files with the same name, you are more likely to want to restore the last deleted one (or maybe the oldest); and the other timestamps might be misleading.
Would you be willing to contribute this feature?
- Yes, I'll give it a shot
Describe the solution you'd like
In the recycle bin, add the option to show the deleted timestamp as a column and allow to sort by it, like in other file managers.
One can even make this sorting permanent with the Folder Rules “plugin” option.
Maybe it can be also added as a spotter information, but the main need is to have it as a sortable column.
Additional context
As for sorting files… randomly, I don’t find any case where it’s useful, unless you are bored. Maybe it was an Easter egg implemented in the software?
Checklist
- I have searched the existing issues/discussions
- The latest nightly build doesn't already have this feature
Source: sxyazi/yazi