feat: yazi support
This commit is contained in:
parent
119613ee58
commit
32a7187214
3 changed files with 15 additions and 0 deletions
|
@ -9,6 +9,7 @@ hidden = false
|
|||
|
||||
[keys.normal]
|
||||
C-r = ":reload-all"
|
||||
C-y = ":sh zellij run -c -f -x 10% -y 10% --width 80% --height 80% -- bash ~/.config/helix/yazi-picker.sh open"
|
||||
|
||||
[keys.normal.C-m]
|
||||
t = ":sh run_test_under_cursor"
|
||||
|
|
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
|
|
@ -34,6 +34,7 @@ sudo port install \
|
|||
wget \
|
||||
xz \
|
||||
zellij \
|
||||
yazi \
|
||||
zk \
|
||||
zsh
|
||||
|
||||
|
@ -48,6 +49,7 @@ sudo apt install \
|
|||
tmux \
|
||||
tree \
|
||||
wget \
|
||||
yazi \
|
||||
-y
|
||||
{{ end }}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue