i be working

This commit is contained in:
2026-03-13 12:21:18 +00:00
parent 442284c92f
commit 24bad1f5c4
7 changed files with 108 additions and 8 deletions
+4
View File
@@ -75,6 +75,10 @@ status is-interactive; and begin
if test "$TERM" != dumb
fzf --fish | source
bind --erase \ct
bind -M insert --erase \ct
bind \cf fzf-file-widget
bind -M insert \cf fzf-file-widget
end
# add completions generated by Home Manager to $fish_complete_path
+10 -1
View File
@@ -1,8 +1,17 @@
function y
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
# In Zellij + Alacritty, force Yazi away from graphical adapters and into Chafa.
# This gives text/blocks previews instead of broken/blank image panes.
if set -q ZELLIJ
env -u DISPLAY -u WAYLAND_DISPLAY -u SWAYSOCK -u HYPRLAND_INSTANCE_SIGNATURE -u WAYFIRE_SOCKET TERM=xterm-256color yazi $argv --cwd-file="$tmp"
else
yazi $argv --cwd-file="$tmp"
end
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
end
+15
View File
@@ -0,0 +1,15 @@
function yazi --wraps yazi --description "Yazi wrapper that forces Chafa inside Zellij"
if set -q ZELLIJ
begin
set -e DISPLAY
set -e WAYLAND_DISPLAY
set -e SWAYSOCK
set -e HYPRLAND_INSTANCE_SIGNATURE
set -e WAYFIRE_SOCKET
set -lx TERM xterm-256color
command yazi $argv
end
else
command yazi $argv
end
end