yazi: add plugins
This commit is contained in:
parent
fcacf4a84a
commit
3712da4322
2
.gitignore
vendored
2
.gitignore
vendored
@ -50,3 +50,5 @@ home/user/.config/sway/variables.d/*
|
|||||||
|
|
||||||
home/user/.config/alacritty/config.d/*
|
home/user/.config/alacritty/config.d/*
|
||||||
!home/user/.config/alacritty/config.d/.gitkeep
|
!home/user/.config/alacritty/config.d/.gitkeep
|
||||||
|
|
||||||
|
home/user/.config/yazi/plugins/
|
||||||
|
|||||||
@ -11,3 +11,5 @@ function Linemode:size_and_mtime()
|
|||||||
local size = self._file:size()
|
local size = self._file:size()
|
||||||
return string.format("%s %s", size and ya.readable_size(size) or "-", time)
|
return string.format("%s %s", size and ya.readable_size(size) or "-", time)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
require("git"):setup()
|
||||||
|
|||||||
@ -2,3 +2,22 @@
|
|||||||
on = [ "c", "e" ]
|
on = [ "c", "e" ]
|
||||||
run = "shell -- flipbit x %h"
|
run = "shell -- flipbit x %h"
|
||||||
desc = "Toggle execution mode on file"
|
desc = "Toggle execution mode on file"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = "M"
|
||||||
|
run = "plugin mount"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = "F"
|
||||||
|
run = "plugin jump-to-char"
|
||||||
|
desc = "Jump to char"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = "l"
|
||||||
|
run = "plugin smart-enter"
|
||||||
|
desc = "Enter the child directory, or open the file"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = [ "c", "m" ]
|
||||||
|
run = "plugin chmod"
|
||||||
|
desc = "Chmod on selected files"
|
||||||
|
|||||||
27
home/user/.config/yazi/package.toml
Normal file
27
home/user/.config/yazi/package.toml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
[[plugin.deps]]
|
||||||
|
use = "masaki39/git"
|
||||||
|
rev = "2f72da1"
|
||||||
|
hash = "ab9df3b5436af53de798d9d887bdadcd"
|
||||||
|
|
||||||
|
[[plugin.deps]]
|
||||||
|
use = "yazi-rs/plugins:mount"
|
||||||
|
rev = "bfdc423"
|
||||||
|
hash = "46cbdc05596a3ecd730b288e28c7079d"
|
||||||
|
|
||||||
|
[[plugin.deps]]
|
||||||
|
use = "yazi-rs/plugins:jump-to-char"
|
||||||
|
rev = "bfdc423"
|
||||||
|
hash = "7a4b4237223aaa94e589d1c01a23542a"
|
||||||
|
|
||||||
|
[[plugin.deps]]
|
||||||
|
use = "yazi-rs/plugins:smart-enter"
|
||||||
|
rev = "bfdc423"
|
||||||
|
hash = "187cc58ba7ac3befd49c342129e6f1b6"
|
||||||
|
|
||||||
|
[[plugin.deps]]
|
||||||
|
use = "yazi-rs/plugins:chmod"
|
||||||
|
rev = "bfdc423"
|
||||||
|
hash = "5b1c276b75cae91cbbdbe7863f39a540"
|
||||||
|
|
||||||
|
[flavor]
|
||||||
|
deps = []
|
||||||
@ -19,3 +19,13 @@ edit = [
|
|||||||
open = [
|
open = [
|
||||||
{ run = "xdg-open %s1", desc = "Open" },
|
{ run = "xdg-open %s1", desc = "Open" },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[plugin.prepend_fetchers]]
|
||||||
|
group = "git"
|
||||||
|
url = "*"
|
||||||
|
run = "git"
|
||||||
|
|
||||||
|
[[plugin.prepend_fetchers]]
|
||||||
|
group = "git"
|
||||||
|
url = "*/"
|
||||||
|
run = "git"
|
||||||
|
|||||||
3
install-hooks/yazi/post-install
Executable file
3
install-hooks/yazi/post-install
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
ya pkg install
|
||||||
Loading…
x
Reference in New Issue
Block a user