Skip to content

Bulk rename with edit opener set to orphan doesn't work #4341

Description

@quunnb

What system are you running Yazi on?

Linux X11

What terminal are you running Yazi in?

alacritty 0.17.0-dev (3d658d2e)

ya env output

Yazi
    Version: 26.9.1 (8ebf930 2026-09-09)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.98.1 (48a229ce 2026-09-01)
    Backtrace: None

Ya
    Version: 26.9.1 (8ebf930 2026-09-09)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.98.1 (48a229ce 2026-09-01)

Config
    Init             : /home/ami/.config/yazi/init.lua (No such file or directory (os error 2))
    Yazi             : /home/ami/.config/yazi/yazi.toml (103 chars)
    Keymap           : /home/ami/.config/yazi/keymap.toml (No such file or directory (os error 2))
    Theme            : /home/ami/.config/yazi/theme.toml (No such file or directory (os error 2))
    VFS              : /home/ami/.config/yazi/vfs.toml (No such file or directory (os error 2))
    Package          : /home/ami/.config/yazi/package.toml (No such file or directory (os error 2))
    Dark/light flavor: ArcSwapAny("") / ArcSwapAny("")

Emulator
    TERM                : Some("alacritty")
    TERM_PROGRAM        : None
    TERM_PROGRAM_VERSION: None
    Brand.from_env      : None
    Emulator.probe      : Emulator { brand: Unknown, version: ArcSwapAny(""), csi_u: Some(0), kgp: false, kgp_shm: false, sixel: true, background: Some([9509, 14135, 15163]), color_scheme: None, csi_16t: (0, 0), force_16t: false, osc_5522: false, cursor_blink: true, cursor_shape: None, mux: None, probe: Probe { id: Id(0), completed: false }, started: false }

Adapter
    Drivers.matches: Sixel
    TERM.dimension : Dimension { cols: 155, rows: 39, width: 1860, height: 975 }

Desktop
    XDG_SESSION_TYPE           : Some("tty")
    WAYLAND_DISPLAY            : None
    DISPLAY                    : Some(":0")
    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("emacsclient -r -u -a emacs")
    VISUAL             : Some("emacsclient -r -u -a emacs")
    YAZI_FILE_ONE      : None
    YAZI_CONFIG_HOME   : None
    YAZI_ZOXIDE_OPTS   : None
    SSH_AUTH_SOCK      : None
    FZF_DEFAULT_OPTS   : Some("\n  --color=fg:-1,fg+:#CFD4C6,bg:-1,bg+:#45575B\n  --color=hl:#BDC9C0,hl+:#BB888C,info:#afaf87,marker:#BB888C\n  --color=prompt:#BB888C,spinner:#BB888C,pointer:#BB888C,header:#87afaf\n  --color=border:#262626,label:#aeaeae,query:#d9d9d9\n  --border=\"rounded\" --border-label=\"\" --preview-window=\"border-rounded\" --prompt=\"> \"\n  --marker=\">\" --pointer=\"\" --separator=\"\" --scrollbar=\"\"\n\"--bind=alt-n:preview-down,alt-p:preview-up\"\n  --color=fg:-1,fg+:#CFD4C6,bg:-1,bg+:#45575B\n  --color=hl:#BDC9C0,hl+:#BB888C,info:#afaf87,marker:#BB888C\n  --color=prompt:#BB888C,spinner:#BB888C,pointer:#BB888C,header:#87afaf\n  --color=border:#262626,label:#aeaeae,query:#d9d9d9\n  --border=\"rounded\" --border-label=\"\" --preview-window=\"border-rounded\" --prompt=\"> \"\n  --marker=\">\" --pointer=\"\" --separator=\"\" --scrollbar=\"\"\n\"--bind=alt-n:preview-down,alt-p:preview-up\"")
    FZF_DEFAULT_COMMAND: Some("rg --files")

Text Opener
    default     : Some(OpenerRuleArc(OpenerRule { id: Id(24), run: "${EDITOR:-vi} %s", block: false, orphan: true, desc: "$EDITOR", for: Unix, spread: true }))
    block-create: Some(OpenerRuleArc(OpenerRule { id: Id(21), run: "clear; exiftool %s1; echo 'Press enter to exit'; read _", block: true, orphan: false, desc: "Show EXIF", for: Unix, spread: false }))
    block-rename: Some(OpenerRuleArc(OpenerRule { id: Id(21), run: "clear; exiftool %s1; echo 'Press enter to exit'; read _", block: true, orphan: false, desc: "Show EXIF", for: Unix, spread: false }))

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-31
    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.03
    resvg         : 0.48.1
    jq            : 1.8.2

Clipboard
    wl-copy/paste: No such file or directory (os error 2) / No such file or directory (os error 2)
    xclip        : 0.13
    xsel         : 1.2.1

Routine
    `file -bL --mime-type`: text/plain

Describe the bug

Invoking bulk rename when edit opener is set to orphan results in yazi only showing the exif info of the bulkrename tmp file.

Minimal reproducer

  1. Save as ~/.config/yazi/yazi.toml
[opener]
edit = [
	{ run = "${EDITOR:-vi} %s", desc = "$EDITOR",      for = "unix", orphan = true },
  1. Open yazi and try to bulk rename a bunch of files

Output:

ExifTool Version Number         : 13.55
File Name                       : bulk-rename-1788957799372437
Directory                       : /tmp/yazi-1000
File Size                       : 8 bytes
File Modification Date/Time     : 2026:09:09 15:43:19+03:00
File Access Date/Time           : 2026:09:09 15:43:19+03:00
File Inode Change Date/Time     : 2026:09:09 15:43:19+03:00
File Permissions                : -rw-r--r--
File Type                       : TXT
File Type Extension             : txt
MIME Type                       : text/plain
MIME Encoding                   : us-ascii
Newlines                        : Unix LF
Line Count                      : 2
Word Count                      : 2
Press enter to exit

Anything else?

No response

Checklist

  • I tried the latest nightly build, and the issue is still reproducible
  • I updated the environment information (ya env) field to the nightly that I tried
  • I can reproduce it after disabling all custom configs/plugins (mv ~/.config/yazi ~/.config/yazi-backup)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions