Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File sorting by modification time (mtime) stopped working #2219

Closed
2 of 3 tasks
QuantenToast opened this issue Jan 18, 2025 · 2 comments
Closed
2 of 3 tasks

File sorting by modification time (mtime) stopped working #2219

QuantenToast opened this issue Jan 18, 2025 · 2 comments
Labels
invalid This doesn't seem right

Comments

@QuantenToast
Copy link

What system are you running Yazi on?

Linux Wayland

What terminal are you running Yazi in?

kitty 0.38.1

yazi --debug output

Yazi
    Version: 0.4.3 (0a5c9b6 2025-01-18)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.84.0 (9fc6b431 2025-01-07)

Ya
    Version: 0.4.2 (Arch Linux 2025-01-12)

Emulator
    Brand.from_env      : Some(Kitty)
    Emulator.detect     : Emulator { kind: Left(Kitty), light: false, cell_size: Some((12, 28)) }
    Emulator.detect_full: Ok(Emulator { kind: Left(Kitty), light: false, cell_size: Some((12, 28)) })

Adapter
    Adapter.matches: Kgp

Desktop
    XDG_SESSION_TYPE           : Some("wayland")
    WAYLAND_DISPLAY            : Some("wayland-1")
    DISPLAY                    : Some(":1")
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: Some("0dc7367a7006cc3cc877d52bf34c4998144bff84_1737210451_1538644313")
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

NVIM
    NVIM          : false
    Neovim version: 0.10.3

Variables
    SHELL           : Some("/usr/bin/fish")
    EDITOR          : Some("nvim")
    VISUAL          : Some("nvim")
    YAZI_FILE_ONE   : None
    YAZI_CONFIG_HOME: None
    YAZI_ZOXIDE_OPTS: None
    FZF_DEFAULT_OPTS: Some("--height 20%")

Text Opener
    default     : Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: true, desc: "$EDITOR", for_: None, spread: true })
    block-create: Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: true, desc: "$EDITOR", for_: None, spread: true })
    block-rename: Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: true, desc: "$EDITOR", for_: None, spread: true })

Multiplexers
    TMUX               : 0
    tmux version       : tmux 3.5a
    tmux build flags   : enable-sixel=Unknown
    ZELLIJ_SESSION_NAME: None
    Zellij version     : No such file or directory (os error 2)

Dependencies
    file          : 5.46
    ueberzugpp    : 2.9.6
    ffmpeg/ffprobe: 7.1 / 7.1
    pdftoppm      : 25.01.0
    magick        : 7.1.1-43
    fzf           : 0.57.0
    fd/fdfind     : 10.2.0 / No such file or directory (os error 2)
    rg            : 14.1.1
    chafa         : 1.14.5
    zoxide        : 0.9.6
    7z/7zz        : 24.09 / No such file or directory (os error 2)
    jq            : 1.7.1

Clipboard
    wl-copy/paste: 2.2.1 / 2.2.1
    xclip        : 0.13
    xsel         : 1.2.1

Describe the bug

A couple of days ago, I started to notice, that sorting by mtime stopped working for me.
I didn't change my config before it stopped working.

If it is relevant: The behavior doesn't change depending on whether the files are on ext4 or btrfs.

I confirmed this issue on two Arch Linux installs; however, it does work in a Kali VM.

I tested with the latest Arch package from the extra repository (0.4.2) and the latest nightly release (see my yazi --debug).

The issue does go away if the config is "deleted" (renamed), as mentioned before, however, I don't think I can relate a config change I dit to the issue.

Minimal reproducer

As far as I am aware, all that is needed is:

  • Install yazi
  • do something to the configuration
  • Try to sort files by mtime

Anything else?

Here is a short video demonstrating the behavior:

test.mp4

Here is my config (renamed to .txt because of attachment restrictions):

yazi.txt

keymap.txt

smart-enter-init.txt

Checklist

  • I tried the latest nightly build, and the issue is still reproducible
  • I updated the debug information (yazi --debug) input box to the nightly that I tried
  • I can reproduce it after disabling all custom configs/plugins (mv ~/.config/yazi ~/.config/yazi-backup)
@QuantenToast QuantenToast added the bug Something isn't working label Jan 18, 2025
@sxyazi
Copy link
Owner

sxyazi commented Jan 18, 2025

I see

{ on = [ ",", "m" ], run = [ "sort modified --reverse=no", "linemode mtime" ], desc = "Sort by modified time" },
{ on = [ ",", "M" ], run = [ "sort modified --reverse", "linemode mtime" ],    desc = "Sort by modified time (reverse)" },

in your keymap.toml. sort modified has been renamed to sort mtime in Yazi 0.4, so you need to change it in your config file, see #1772 for more details

Closing as expected

@sxyazi sxyazi closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2025
@sxyazi sxyazi added invalid This doesn't seem right and removed bug Something isn't working labels Jan 18, 2025
@QuantenToast
Copy link
Author

Thank you!
The other necessary config changes came up as a notification, this one didn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants