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

[Feature Request] Enhance status line configuration #2312

Closed
3 tasks done
PFiS1737 opened this issue Feb 10, 2025 · 2 comments · May be fixed by #2313
Closed
3 tasks done

[Feature Request] Enhance status line configuration #2312

PFiS1737 opened this issue Feb 10, 2025 · 2 comments · May be fixed by #2313
Labels
invalid This doesn't seem right

Comments

@PFiS1737
Copy link

yazi --debug output

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

Ya
    Version: 25.2.7 (Arch Linux 2025-02-09)

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)) }
    Emulator.detect_full: Ok(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.01.0
    magick        : 7.1.1-43
    fzf           : 0.57.0
    fd/fdfind     : 10.2.0 / No such file or directory (os error 2)
    rg            : 14.1.1
    chafa         : 1.14.5
    zoxide        : 0.9.6
    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

I'm having trouble customizing the status line:

  1. Using the existing configuration, I can't achieve the following effect because separator_open and separator_close force me to add separators at both ends.

Image

  1. I want to customize the formatting of certain fields (like the mode and position) but it can't be done through the configuration file.

Would you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

I’m currently trying to use a UI plugin and have achieved some results, but there’s an issue: I want to stay in sync with the upstream for other aspects, such as the handling of certain fields. This forces me to check the source files after every update to ensure everything is up to date.

I believe the best way to solve this problem is to make these aspects configurable, and I will submit a pull request for this.

Additional context

No response

Checklist

  • I have searched the existing issues/discussions
  • The latest nightly build doesn't already have this feature
@sxyazi
Copy link
Owner

sxyazi commented Feb 10, 2025

Duplicate of #1228

The goal of theme.toml is to keep it as simple as possible, and more complex customization should be handled by the plugin system.

If you don't want to deal with issues related to being out of sync with the upstream, you can use a plugin like yatline.yazi or yaziline.yazi.

Closing as duplicate and not planned

@sxyazi sxyazi closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2025
@sxyazi sxyazi added invalid This doesn't seem right and removed feature New feature request labels Feb 10, 2025
@PFiS1737
Copy link
Author

Alright, thanks for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants