yazi plugins

This commit is contained in:
Henrik Bakken
2025-05-22 13:09:00 +02:00
parent 25a22346f8
commit 174967bd98
3 changed files with 18 additions and 0 deletions
+3
View File
@@ -111,3 +111,6 @@ sudo wget -O rainbowsmoke.jpg -P /usr/share/backgrounds/ultrawide https://superu
# set up vdirsyncer with google calendar using
# https://vdirsyncer.pimutils.org/en/stable/config.html#google
# yazi plugins
ya pack -a 'pirafrank/what-size'
+11
View File
@@ -167,4 +167,15 @@ def zoxide_completer [context: string] {
}
}
# yazi helper
def --env y [...args] {
let tmp = (mktemp -t "yazi-cwd.XXXXXX")
yazi ...$args --cwd-file $tmp
let cwd = (open $tmp)
if $cwd != "" and $cwd != $env.PWD {
cd $cwd
}
rm -fp $tmp
}
source ~/.oh-my-posh.nu
+4
View File
@@ -0,0 +1,4 @@
[[manager.prepend_keymap]]
on = "<C-s>"
run = "plugin what-size"
desc = "Calc size of selection or cwd"