AutoYADM commit: 2025-03-15 02:00:06

This commit is contained in:
Daniel Fichtinger 2025-03-15 02:00:06 -04:00
parent 6b99c84a29
commit 8ce2157c2b
5 changed files with 62 additions and 9 deletions

View file

@ -1,6 +1,6 @@
local M = {}
require("custom-shell"):setup({ require("custom-shell"):setup({
history_path = "default", history_path = "default",
save_history = true, save_history = true,
}) })
require("git"):setup()

View file

@ -81,12 +81,14 @@ run = "plugin open-with-cmd"
desc = "Open with command" desc = "Open with command"
[[manager.prepend_keymap]] [[manager.prepend_keymap]]
on = ["'", ";"] on = [";"]
run = 'plugin custom-shell -- auto --interactive' # on = ["'", ";"]
run = 'plugin custom-shell -- auto --interactive --block=false'
desc = "custom-shell as default, interactive" desc = "custom-shell as default, interactive"
[[manager.prepend_keymap]] [[manager.prepend_keymap]]
on = ["'", ":"] on = [":"]
# on = ["'", ":"]
run = 'plugin custom-shell -- auto --interactive --block' run = 'plugin custom-shell -- auto --interactive --block'
desc = "custom-shell as default, interactive, block" desc = "custom-shell as default, interactive, block"
@ -125,7 +127,7 @@ run = "plugin chmod"
desc = "Chmod on selected files" desc = "Chmod on selected files"
[[manager.prepend_keymap]] [[manager.prepend_keymap]]
on = "F" on = ["g", "f"]
run = "plugin jump-to-char" run = "plugin jump-to-char"
desc = "Jump to char" desc = "Jump to char"
@ -230,6 +232,34 @@ on = ["R", "D"]
run = "plugin sudo -- remove --permanently" run = "plugin sudo -- remove --permanently"
desc = "sudo delete" 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]] [[input.prepend_keymap]]
on = "l" on = "l"
run = "forward --end-of-word" run = "forward --end-of-word"

View file

@ -78,6 +78,26 @@ use = "TD-Sky/sudo"
rev = "af70636" rev = "af70636"
hash = "a94dcbe9266512806c677138e8591ddb" 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]] [[flavor.deps]]
use = "ashen-org/ashen:ashen" use = "ashen-org/ashen:ashen"
rev = "7a53969" rev = "7a53969"

View file

@ -3,3 +3,4 @@ zsh -ic 'chmod +x get_git_provider_url.fish;exit'
zsh -ic 'mksh abook;exit' zsh -ic 'mksh abook;exit'
zsh -ic 'mksh bootstrap-in-dir;exit' zsh -ic 'mksh bootstrap-in-dir;exit'
zsh -ic 'mksh strap;exit' zsh -ic 'mksh strap;exit'
zsh -ic 'ya pack -a yazi-rs/plugins:git;exit'

View file

@ -1,6 +1,6 @@
[manager] [manager]
show_hidden = true show_hidden = true
linemode = "size" # linemode = "git"
title_format = "{cwd}" title_format = "{cwd}"
@ -17,12 +17,14 @@ prepend_previewers = [
{ mime = "application/x-xz", run = "ouch" }, { mime = "application/x-xz", run = "ouch" },
] ]
append_previewers = [{ name = "*", run = "hexyl" }] append_previewers = [{ name = "*", run = "hexyl" }]
prepend_fetchers = [
{ id = "git", name = "*", run = "git" },
{ id = "git", name = "*/", run = "git" },
]
[opener] [opener]
extract = [ extract = [
{ run = 'ouch d -y "%*"', desc = "Extract here with ouch", for = "windows" }, { run = 'ouch d -y "%*"', desc = "Extract here with ouch", for = "windows" },
{ run = 'ouch d -y "$@"', desc = "Extract here with ouch", for = "unix" }, { run = 'ouch d -y "$@"', desc = "Extract here with ouch", for = "unix" },
] ]
open = [ open = [{ run = 'xdg-open "$@"', desc = "Open", orphan = true }]
{ run = 'xdg-open "$@"', desc = "Open", orphan = true }
]