From 2cd3272dac8d31958d3009143247f83e3eaca143 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Wed, 12 Feb 2025 12:50:06 -0500 Subject: [PATCH] AutoYADM commit: 2025-02-12 12:50:06 --- .config/yazi/init.lua | 1 + .config/yazi/keymap.toml | 10 ++++++++-- .config/yazi/package.toml | 10 ++++++++++ .config/yazi/yazi.toml | 9 +++++++++ 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.config/yazi/init.lua b/.config/yazi/init.lua index ec388663..d560fa3d 100644 --- a/.config/yazi/init.lua +++ b/.config/yazi/init.lua @@ -2,3 +2,4 @@ require("custom-shell"):setup({ history_path = "default", save_history = true, }) +require("git"):setup() diff --git a/.config/yazi/keymap.toml b/.config/yazi/keymap.toml index 84b69447..34714e6b 100644 --- a/.config/yazi/keymap.toml +++ b/.config/yazi/keymap.toml @@ -60,9 +60,15 @@ prepend_keymap = [ "g", "i", ], run = "plugin lazygit", desc = "run lazygit" }, + { on = "", run = [ + "plugin copy-file-contents", + ], desc = "Copy contents of file" }, + { on = [ + "c", + "r", + ], run = "plugin path-from-root", desc = "Copies path from git root" }, + ] - - [input] prepend_keymap = [ { on = "l", run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" }, diff --git a/.config/yazi/package.toml b/.config/yazi/package.toml index 194c5c40..353a0e67 100644 --- a/.config/yazi/package.toml +++ b/.config/yazi/package.toml @@ -43,6 +43,16 @@ use = "AnirudhG07/plugins-yazi:copy-file-contents" rev = "524c52c" hash = "27c50e6bc15c09096505b805b238ade0" +[[plugin.deps]] +use = "aresler/path-from-root" +rev = "68277d2" +hash = "ada10d1213f2117878e0fd90df708619" + +[[plugin.deps]] +use = "yazi-rs/plugins:git" +rev = "8945e54" +hash = "771f18427fb75fb19990ce602bb322f4" + [[flavor.deps]] use = "ashen-org/ashen:ashen" rev = "ded1f4e" diff --git a/.config/yazi/yazi.toml b/.config/yazi/yazi.toml index 595a51e7..ea5dd315 100644 --- a/.config/yazi/yazi.toml +++ b/.config/yazi/yazi.toml @@ -17,3 +17,12 @@ extract = [ { run = 'ouch d -y "%*"', desc = "Extract here with ouch", for = "windows" }, { run = 'ouch d -y "$@"', desc = "Extract here with ouch", for = "unix" }, ] +[[plugin.prepend_fetchers]] +id = "git" +name = "*" +run = "git" + +[[plugin.prepend_fetchers]] +id = "git" +name = "*/" +run = "git"