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

Rename allows to change empty files into empty folders #1705

Closed
2 of 3 tasks
moshpirit opened this issue Sep 29, 2024 · 3 comments
Closed
2 of 3 tasks

Rename allows to change empty files into empty folders #1705

moshpirit opened this issue Sep 29, 2024 · 3 comments
Labels
feature New feature request

Comments

@moshpirit
Copy link

yazi --debug output

Yazi
    Version: 0.3.3 (Arch Linux 2024-09-05)
    Debug  : false
    OS     : linux-x86_64 (unix)

Ya
    Version: 0.3.3 (Arch Linux 2024-09-05)

Emulator
    Emulator.via_env: ("xterm-256color", "")
    Emulator.via_csi: Ok(Kitty)
    Emulator.detect : Kitty

Adapter
    Adapter.matches: Kitty

Desktop
    XDG_SESSION_TYPE           : Some("x11")
    WAYLAND_DISPLAY            : None
    DISPLAY                    : Some(":0")
    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

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

Multiplexers
    TMUX               : false
    tmux version       : 3.5
    ZELLIJ_SESSION_NAME: None
    Zellij version     : 0.40.1

Dependencies
    file             : 5.45
    ueberzugpp       : No such file or directory (os error 2)
    ffmpegthumbnailer: 2.2.3
    magick           : 7.1.1-38
    fzf              : 0.55.0
    fd               : 10.2.0
    rg               : 14.1.1
    chafa            : 1.14.2
    zoxide           : 0.9.6
    7z               : 17.05
    7zz              : No such file or directory (os error 2)
    jq               : 1.7.1


--------------------------------------------------
When reporting a bug, please also upload the `yazi.log` log file - only upload the most recent content by time.
You can find it in the "~/.local/state/yazi" directory.

Please describe the problem you're trying to solve

When creating a directory, I often forget about adding / at the end of the name, so I have to delete the file and create the directory again.

Would you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

I would like to be able to change a file into a folder when renaming it by adding a /.

The only downside I can find is renaming it by mistake, but I think it could be fixed with a confirmation, or just being able to use this feature with empty files (0 bytes).

Additional context

No response

Validations

  • I have searched the existing issues/discussions
  • The latest nightly build of Yazi doesn't already have this feature
@moshpirit moshpirit added the feature New feature request label Sep 29, 2024
@ze0987
Copy link

ze0987 commented Sep 29, 2024

Check the --dir option #1505 as it may provide a better solution to your problem.

@sxyazi
Copy link
Owner

sxyazi commented Sep 30, 2024

Yeah please use create --dir, it's a better solution for achieving that.

Doc of the create command: https://yazi-rs.github.io/docs/configuration/keymap/#manager.create

@sxyazi sxyazi closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2024
Copy link

I'm going to lock this issue because it has been closed for 30 days. ⏳
This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please file a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

3 participants