feat: yazi support
This commit is contained in:
parent
119613ee58
commit
32a7187214
3 changed files with 15 additions and 0 deletions
12
home/private_dot_config/helix/yazi-picker.sh
Normal file
12
home/private_dot_config/helix/yazi-picker.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
paths=$(yazi --chooser-file=/dev/stdout | while read -r; do printf "%q " "$REPLY"; done)
|
||||
|
||||
if [[ -n "$paths" ]]; then
|
||||
zellij action toggle-floating-panes
|
||||
zellij action write 27 # send <Escape> key
|
||||
zellij action write-chars ":$1 $paths"
|
||||
zellij action write 13 # send <Enter> key
|
||||
else
|
||||
zellij action toggle-floating-panes
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue