AutoYADM commit: 2025-03-15 02:00:06
This commit is contained in:
parent
6b99c84a29
commit
8ce2157c2b
5 changed files with 62 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
|||
local M = {}
|
||||
require("custom-shell"):setup({
|
||||
history_path = "default",
|
||||
save_history = true,
|
||||
})
|
||||
require("git"):setup()
|
||||
|
||||
|
|
|
@ -81,12 +81,14 @@ run = "plugin open-with-cmd"
|
|||
desc = "Open with command"
|
||||
|
||||
[[manager.prepend_keymap]]
|
||||
on = ["'", ";"]
|
||||
run = 'plugin custom-shell -- auto --interactive'
|
||||
on = [";"]
|
||||
# on = ["'", ";"]
|
||||
run = 'plugin custom-shell -- auto --interactive --block=false'
|
||||
desc = "custom-shell as default, interactive"
|
||||
|
||||
[[manager.prepend_keymap]]
|
||||
on = ["'", ":"]
|
||||
on = [":"]
|
||||
# on = ["'", ":"]
|
||||
run = 'plugin custom-shell -- auto --interactive --block'
|
||||
desc = "custom-shell as default, interactive, block"
|
||||
|
||||
|
@ -125,7 +127,7 @@ run = "plugin chmod"
|
|||
desc = "Chmod on selected files"
|
||||
|
||||
[[manager.prepend_keymap]]
|
||||
on = "F"
|
||||
on = ["g", "f"]
|
||||
run = "plugin jump-to-char"
|
||||
desc = "Jump to char"
|
||||
|
||||
|
@ -230,6 +232,34 @@ on = ["R", "D"]
|
|||
run = "plugin sudo -- remove --permanently"
|
||||
desc = "sudo delete"
|
||||
|
||||
[[manager.prepend_keymap]]
|
||||
on = "F"
|
||||
run = "plugin smart-filter"
|
||||
desc = "Smart filter"
|
||||
|
||||
[[manager.prepend_keymap]]
|
||||
on = [ "I" ]
|
||||
run = "plugin bypass"
|
||||
desc = "Recursively enter child directory, skipping children with only a single subdirectory"
|
||||
[[manager.prepend_keymap]]
|
||||
on = [ "M" ]
|
||||
run = "plugin bypass --args=reverse"
|
||||
desc = "Recursively enter parent directory, skipping parents with only a single subdirectory"
|
||||
|
||||
[[manager.prepend_keymap]]
|
||||
on = [ "k", "g" ]
|
||||
run = "plugin vcs-files"
|
||||
desc = "Show Git file changes"
|
||||
|
||||
|
||||
# INPUT
|
||||
|
||||
|
||||
[[input.prepend_keymap]]
|
||||
on = "<Esc>"
|
||||
run = "close"
|
||||
desc = "Cancel input"
|
||||
|
||||
[[input.prepend_keymap]]
|
||||
on = "l"
|
||||
run = "forward --end-of-word"
|
||||
|
|
|
@ -78,6 +78,26 @@ use = "TD-Sky/sudo"
|
|||
rev = "af70636"
|
||||
hash = "a94dcbe9266512806c677138e8591ddb"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:smart-filter"
|
||||
rev = "cb6165b"
|
||||
hash = "f0c4b41b5d19a3144958383333eff6e7"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "Rolv-Apneseth/bypass"
|
||||
rev = "ecb1f7f"
|
||||
hash = "905054b2df08ff79af223e0b6f249fa3"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:vcs-files"
|
||||
rev = "cb6165b"
|
||||
hash = "5e85dd0baca18119f4d712d81b09eb7c"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:git"
|
||||
rev = "cb6165b"
|
||||
hash = "ee5fa7e64db72d6b10c2315de97c9cc7"
|
||||
|
||||
[[flavor.deps]]
|
||||
use = "ashen-org/ashen:ashen"
|
||||
rev = "7a53969"
|
||||
|
|
|
@ -3,3 +3,4 @@ zsh -ic 'chmod +x get_git_provider_url.fish;exit'
|
|||
zsh -ic 'mksh abook;exit'
|
||||
zsh -ic 'mksh bootstrap-in-dir;exit'
|
||||
zsh -ic 'mksh strap;exit'
|
||||
zsh -ic 'ya pack -a yazi-rs/plugins:git;exit'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[manager]
|
||||
show_hidden = true
|
||||
linemode = "size"
|
||||
# linemode = "git"
|
||||
title_format = "{cwd}"
|
||||
|
||||
|
||||
|
@ -17,12 +17,14 @@ prepend_previewers = [
|
|||
{ mime = "application/x-xz", run = "ouch" },
|
||||
]
|
||||
append_previewers = [{ name = "*", run = "hexyl" }]
|
||||
prepend_fetchers = [
|
||||
{ id = "git", name = "*", run = "git" },
|
||||
{ id = "git", name = "*/", run = "git" },
|
||||
]
|
||||
|
||||
[opener]
|
||||
extract = [
|
||||
{ run = 'ouch d -y "%*"', desc = "Extract here with ouch", for = "windows" },
|
||||
{ run = 'ouch d -y "$@"', desc = "Extract here with ouch", for = "unix" },
|
||||
]
|
||||
open = [
|
||||
{ run = 'xdg-open "$@"', desc = "Open", orphan = true }
|
||||
]
|
||||
open = [{ run = 'xdg-open "$@"', desc = "Open", orphan = true }]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue