sxyazi / yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.
https://yazi-rs.github.io
MIT License
16.87k stars 393 forks source link

Toggle yazi and terminal #1951

Open Fildo7525 opened 23 hours ago

Fildo7525 commented 23 hours ago

yazi --debug output

Yazi
    Version: 0.3.3 (VERGEN_IDEMPOTENT_OUTPUT 2024-11-25)
    Debug  : false
    OS     : linux-x86_64 (unix)

Ya
    Version: 0.3.3 (VERGEN_IDEMPOTENT_OUTPUT 2024-11-25)

Emulator
    Emulator.via_env: ("screen-256color", "")
    Emulator.via_csi: Ok(Unknown([]))
    Emulator.detect : Unknown([])

Adapter
    Adapter.matches: X11

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("/usr/bin/nvim")
    VISUAL             : None
    YAZI_FILE_ONE      : None
    YAZI_CONFIG_HOME   : None

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

Multiplexers
    TMUX               : false
    tmux version       : tmux 3.2a
    ZELLIJ_SESSION_NAME: None
    Zellij version     : No such file or directory (os error 2)

Dependencies
    file             : 5.41
    ueberzugpp       : No such file or directory (os error 2)
    ffmpegthumbnailer: No such file or directory (os error 2)
    magick           : No such file or directory (os error 2)
    fzf              : 0.29
    fd               : No such file or directory (os error 2)
    rg               : 13.0.0
    chafa            : No such file or directory (os error 2)
    zoxide           : No such file or directory (os error 2)
    7z               : No such file or directory (os error 2)
    7zz              : No such file or directory (os error 2)
    jq               : 1.6

--------------------------------------------------
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 "/home/fildo7525/.local/state/yazi" directory.

Please describe the problem you're trying to solve

Let's say you want to be in one tab and run the program you wrote. That will block Yazi until the program finishes the execution. If I want to see the output, there is no way to do so. I could also change to a different directory in the second tab to do other stuff there while the program runs in the first tab.

Would you be willing to contribute this feature?

Describe the solution you'd like

I would like to have something similar to what is in Midnight Commander. After invoking a keymap a terminal and its output will be displayed. Running a code in the terminal will not block yazi.

Additional context

No response

Validations

sxyazi commented 13 hours ago

I haven't used Midnight Commander myself. Could you explain in more detail what this feature is like? It would be really helpful if there's a video demo.

Fildo7525 commented 23 minutes ago

This is what I meant:

https://github.com/user-attachments/assets/300dc9f3-76b0-4db0-b4f7-a7efa131dd38

You can enter commands and switch to the terminal nothing is blocked. If you switch to the terminal you can run other commands.