Replies: 3 comments 3 replies
-
|
There's no builtin API to do so at the moment, but this works for me: local lines = Command("tput"):arg("lines"):output().stdout:match("%d+")
local columns = Command("tput"):arg("columns"):output().stdout:match("%d+")
print(lines, columns)which calls |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
I also tried |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
so it's impossible ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What system are you running Yazi on?
Linux X11
What terminal are you running Yazi in?
wezterm 20240203-110809-5046fc22
yazi --debugoutputYazi Version: 26.1.22 (Arch Linux 2026-01-24) Debug : false Triple : x86_64-unknown-linux-gnu (linux-x86_64) Rustc : 1.93.0 (254b5960 2026-01-19) Ya Version: 26.1.22 (Arch Linux 2026-01-24) Config Init : /home/joseph/.config/yazi/init.lua (2514 chars) Yazi : /home/joseph/.config/yazi/yazi.toml (2146 chars) Keymap : /home/joseph/.config/yazi/keymap.toml (5223 chars) Theme : /home/joseph/.config/yazi/theme.toml (No such file or directory (os error 2)) VFS : /home/joseph/.config/yazi/vfs.toml (No such file or directory (os error 2)) Package : /home/joseph/.config/yazi/package.toml (1394 chars) Dark/light flavor: "" / "" Emulator TERM : Some("xterm-256color") TERM_PROGRAM : Some("WezTerm") TERM_PROGRAM_VERSION: Some("20240203-110809-5046fc22") Brand.from_env : Some(WezTerm) Emulator.detect : Emulator { kind: Left(WezTerm), version: "WezTerm 20240203-110809-5046fc22", light: false, csi_16t: (24, 47), force_16t: false } Adapter Adapter.matches : Iip Dimension.available: Dimension { rows: 41, columns: 148, width: 3552, height: 1927 } Desktop XDG_SESSION_TYPE : Some("x11") WAYLAND_DISPLAY : None DISPLAY : Some(":0.0") SWAYSOCK : None HYPRLAND_INSTANCE_SIGNATURE: None WAYFIRE_SOCKET : None SSH shared.in_ssh_connection: false WSL WSL: false Variables SHELL : Some("/usr/bin/fish") EDITOR : Some("/usr/bin/helix") VISUAL : Some("/usr/bin/helix") YAZI_FILE_ONE : None YAZI_CONFIG_HOME : None YAZI_ZOXIDE_OPTS : None FZF_DEFAULT_OPTS : None FZF_DEFAULT_COMMAND: None Text Opener default : Some(OpenerRule { run: "${EDITOR:-vi} %s", block: true, orphan: false, desc: "$EDITOR", for: None, spread: true }) block-create: Some(OpenerRule { run: "${EDITOR:-vi} %s", block: true, orphan: false, desc: "$EDITOR", for: None, spread: true }) block-rename: Some(OpenerRule { run: "${EDITOR:-vi} %s", block: true, orphan: false, desc: "$EDITOR", for: None, spread: true }) Multiplexers TMUX : false tmux version : tmux 3.6a tmux build flags : enable-sixel=Supported ZELLIJ_SESSION_NAME: None Zellij version : 0.43.1 Dependencies file : 5.46 ueberzugpp : No such file or directory (os error 2) ffmpeg/ffprobe: 8.0.1 / 8.0.1 pdftoppm : 26.01.0 magick : 7.1.2-13 fzf : 0.67.0 fd/fdfind : 10.3.0 / No such file or directory (os error 2) rg : 15.1.0 chafa : 1.16.2 zoxide : 0.9.8 7zz/7z : No such file or directory (os error 2) / 25.01 resvg : 0.46.0 jq : 1.8.1 Clipboard wl-copy/paste: 2.2.1 / 2.2.1 xclip : 0.13 xsel : No such file or directory (os error 2) 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 question
I want to use the plugin
full-borderto get nice rounded borders in yazi. But I want them only if my terminal is larger than 200x50 . I tried adding it to myinit.lua:But it didn't work, saying I try to compare number with nil. Any suggestions?
Anything else?
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions