Skip to content

copy name_without_ext trims folder names containing dots #3335

@JustForFun88

Description

@JustForFun88

What system are you running Yazi on?

Windows

What terminal are you running Yazi in?

wezterm

yazi --debug output

Yazi
    Version: 25.9.15 (bb9e1e97 2025-11-18)
    Debug  : false
    Triple : x86_64-pc-windows-msvc (windows-x86_64)
    Rustc  : 1.93.0-nightly (82ae0ee6 2025-10-31)

Ya
    Version: 25.9.15 (bb9e1e97 2025-11-18)

Emulator
    TERM                : Some("xterm-256color")
    TERM_PROGRAM        : Some("WezTerm")
    TERM_PROGRAM_VERSION: Some("20250308-192419-dd546c9d")
    Brand.from_env      : Some(WezTerm)
    Emulator.detect     : Emulator { kind: Left(WezTerm), light: false, csi_16t: (12, 25), force_16t: true }

Adapter
    Adapter.matches    : Iip
    Dimension.available: Dimension { rows: 52, columns: 209, width: 0, height: 0 }

Desktop
    XDG_SESSION_TYPE           : None
    WAYLAND_DISPLAY            : None
    DISPLAY                    : None
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: None
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

Variables
    SHELL              : None
    EDITOR             : None
    VISUAL             : None
    YAZI_FILE_ONE      : Some("C:\\Program Files\\Git\\usr\\bin\\file.exe")
    YAZI_CONFIG_HOME   : None
    YAZI_ZOXIDE_OPTS   : None
    FZF_DEFAULT_OPTS   : None
    FZF_DEFAULT_COMMAND: None

Text Opener
    default     : Some(OpenerRule { run: "hx %s", block: true, orphan: false, desc: "helix", for: None, spread: true })
    block-create: Some(OpenerRule { run: "hx %s", block: true, orphan: false, desc: "helix", for: None, spread: true })
    block-rename: Some(OpenerRule { run: "hx %s", block: true, orphan: false, desc: "helix", for: None, spread: true })

Multiplexers
    TMUX               : false
    tmux version       : program not found
    tmux build flags   : enable-sixel=Unknown
    ZELLIJ_SESSION_NAME: None
    Zellij version     : program not found

Dependencies
    file          : 5.46
    ueberzugpp    : program not found
    ffmpeg/ffprobe: program not found / program not found
    pdftoppm      : 25.01.0
    magick        : 7.1.2-8
    fzf           : 0.66.0
    fd/fdfind     : 10.3.0 / program not found
    rg            : 15.1.0
    chafa         : program not found
    zoxide        : 0.9.8
    7zz/7z        : program not found / 25.01
    resvg         : 0.45.1
    jq            : 1.8.1

Clipboard
    wl-copy/paste: program not found / program not found
    xclip        : program not found
    xsel         : program not found

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


See https://yazi-rs.github.io/docs/plugins/overview#debugging on how to enable logging or debug runtime errors.

Describe the bug

I ran into an issue where pressing c + n (copy name_without_ext) on folders that have a dot in their name (for example: Input data - 18.11.2025) copies only the part before the dot — so it becomes Input data - 18.11, and the rest gets trimmed. This was quite confusing 🙂.

Minimal reproducer

  1. Create a folder with a dot in the name, for example: Input data - 18.11.2025
  2. Select it in Yazi
  3. Press: c + n

Anything else?

No response

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions