yazi plugins
This commit is contained in:
@@ -111,3 +111,6 @@ sudo wget -O rainbowsmoke.jpg -P /usr/share/backgrounds/ultrawide https://superu
|
|||||||
|
|
||||||
# set up vdirsyncer with google calendar using
|
# set up vdirsyncer with google calendar using
|
||||||
# https://vdirsyncer.pimutils.org/en/stable/config.html#google
|
# https://vdirsyncer.pimutils.org/en/stable/config.html#google
|
||||||
|
|
||||||
|
# yazi plugins
|
||||||
|
ya pack -a 'pirafrank/what-size'
|
||||||
|
|||||||
@@ -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
|
source ~/.oh-my-posh.nu
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
[[manager.prepend_keymap]]
|
||||||
|
on = "<C-s>"
|
||||||
|
run = "plugin what-size"
|
||||||
|
desc = "Calc size of selection or cwd"
|
||||||
Reference in New Issue
Block a user