Skip to content

Remove padding from Kitty while using Yazi #1844

Answered by sxyazi
vdawg-git asked this question in 1. Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vdawg-git
Comment options

Answer selected by vdawg-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants