Skip to content

[Feature] also set entity style for git.yaziΒ #75

@PFiS1737

Description

@PFiS1737

yazi --debug output

Yazi
    Version: 25.2.11 (Arch Linux 2025-02-16)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.84.1 (e71f9a9a 2025-01-27)

Ya
    Version: 25.2.11 (Arch Linux 2025-02-16)

Emulator
    TERM                : Some("xterm-kitty")
    TERM_PROGRAM        : None
    TERM_PROGRAM_VERSION: None
    Brand.from_env      : Some(Kitty)
    Emulator.detect     : Emulator { kind: Left(Kitty), light: false, cell_size: Some((14, 31)) }

Adapter
    Adapter.matches: Kgp

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

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

Neovim
    NVIM          : false
    Neovim version: 0.10.4

Variables
    SHELL           : Some("/bin/fish")
    EDITOR          : Some("nvim")
    VISUAL          : None
    YAZI_FILE_ONE   : None
    YAZI_CONFIG_HOME: None
    YAZI_ZOXIDE_OPTS: None
    FZF_DEFAULT_OPTS: Some("\n    --ansi\n    --reverse\n    --height 60%\n    --border rounded\n    --info hidden\n    --prompt \'\u{f002} \'\n    --pointer \'\u{f054} \'\n    --marker \'\u{f4a7} \'\n    --bind \'ctrl-a:toggle-all\'\n    --preview \'_fzf_preview {}\'\n\t--preview-window \'up,60%,border-bottom\' \n    --color fg:-1\n    --color fg+:-1\n    --color bg:-1\n    --color bg+:gray\n    --color hl:red\n    --color hl+:red\n    --color info:blue\n    --color prompt:cyan\n    --color pointer:red\n    --color marker:green\n    --color spinner:green\n    --color header:green\n    --color gutter:-1")

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

Multiplexers
    TMUX               : false
    tmux version       : tmux 3.5a
    tmux build flags   : enable-sixel=Unknown
    ZELLIJ_SESSION_NAME: None
    Zellij version     : 0.41.2

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

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

Please describe the problem you're trying to solve

We could consider making the entity style (usually only fg) set according to the git status, which makes it more noticeable β€” something that some editors also do.

preview:

Image

Would you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

I have recently been working on enhancing git.yazi, but encountered some issues.
More details can be found at sxyazi/yazi#2419 (solved).

I'll submit a PR after all things are ready (more options and features)

Additional context

No response

Checklist

  • I have searched the existing issues/discussions

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions