-
What system are you running Yazi on?Linux Wayland What terminal are you running Yazi in?Kitty Describe the questionHaving padding for the terminal shell is nice. For a TUI program like Yazi To get around this I found this snippet for Neovim: vim.cmd([[
augroup kitty_mp
autocmd!
au VimLeave * if !empty($KITTY_WINDOW_ID) | :silent !kitty @ set-spacing padding=24 margin=0
au VimEnter * if !empty($KITTY_WINDOW_ID) | :silent !kitty @ set-spacing padding=0 margin=0
au BufEnter * if !empty($KITTY_WINDOW_ID) | :silent !kitty @ set-spacing padding=0 margin=0
augroup END
]]) Is there a way to have this with the Anything else?No response Validations
|
Beta Was this translation helpful? Give feedback.
Answered by
sxyazi
Oct 28, 2024
Replies: 1 comment 1 reply
-
If you're using the Shell wrapper I think you can just add it to the wrapper: @@ -1,6 +1,8 @@
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
+ kitty @ set-spacing padding=0 margin=0
yazi "$@" --cwd-file="$tmp"
+ kitty @ set-spacing padding=24 margin=0
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
builtin cd -- "$cwd"
fi |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
vdawg-git
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're using the Shell wrapper I think you can just add it to the wrapper: