From 0f22609f041b8955ffe7c37f2ef1e3613a4c5c98 Mon Sep 17 00:00:00 2001 From: Beesquit Date: Fri, 2 Oct 2026 16:37:05 +0300 Subject: [PATCH] chore: use LFS and hide yazi plugins diffs --- .config/yazi/package.toml | 5 ---- .config/yazi/plugins/smart-paste.yazi/LICENSE | 1 - .../yazi/plugins/smart-paste.yazi/README.md | 28 ------------------- .../yazi/plugins/smart-paste.yazi/main.lua | 14 ---------- .gitattributes | 3 ++ 5 files changed, 3 insertions(+), 48 deletions(-) delete mode 100644 .config/yazi/plugins/smart-paste.yazi/LICENSE delete mode 100644 .config/yazi/plugins/smart-paste.yazi/README.md delete mode 100644 .config/yazi/plugins/smart-paste.yazi/main.lua create mode 100644 .gitattributes diff --git a/.config/yazi/package.toml b/.config/yazi/package.toml index 0d3c491..e21f39f 100644 --- a/.config/yazi/package.toml +++ b/.config/yazi/package.toml @@ -23,10 +23,5 @@ use = "yazi-rs/plugins:jump-to-char" rev = "b9946d9" hash = "7a4b4237223aaa94e589d1c01a23542a" -[[plugin.deps]] -use = "yazi-rs/plugins:smart-paste" -rev = "b9946d9" -hash = "3f8d49413bc8691b4c652eb417a20178" - [flavor] deps = [] diff --git a/.config/yazi/plugins/smart-paste.yazi/LICENSE b/.config/yazi/plugins/smart-paste.yazi/LICENSE deleted file mode 100644 index ea5b606..0000000 --- a/.config/yazi/plugins/smart-paste.yazi/LICENSE +++ /dev/null @@ -1 +0,0 @@ -../LICENSE \ No newline at end of file diff --git a/.config/yazi/plugins/smart-paste.yazi/README.md b/.config/yazi/plugins/smart-paste.yazi/README.md deleted file mode 100644 index 66da8c8..0000000 --- a/.config/yazi/plugins/smart-paste.yazi/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# smart-paste.yazi - -Paste files into the hovered directory or to the CWD if hovering over a file. - -https://github.com/user-attachments/assets/b3f6348e-abbe-42fe-9a67-a96e68f11255 - -## Installation - -```sh -ya pkg add yazi-rs/plugins:smart-paste -``` - -## Usage - -Add this to your `~/.config/yazi/keymap.toml`: - -```toml -[[mgr.prepend_keymap]] -on = "p" -run = "plugin smart-paste" -desc = "Paste into the hovered directory or CWD" -``` - -Note that, the keybindings above are just examples, please tune them up as needed to ensure they don't conflict with your other actions/plugins. - -## License - -This plugin is MIT-licensed. For more information check the [LICENSE](LICENSE) file. diff --git a/.config/yazi/plugins/smart-paste.yazi/main.lua b/.config/yazi/plugins/smart-paste.yazi/main.lua deleted file mode 100644 index 0837a4b..0000000 --- a/.config/yazi/plugins/smart-paste.yazi/main.lua +++ /dev/null @@ -1,14 +0,0 @@ ---- @since 25.5.31 ---- @sync entry -return { - entry = function() - local h = cx.active.current.hovered - if h and h.cha.is_dir then - ya.emit("enter", {}) - ya.emit("paste", {}) - ya.emit("leave", {}) - else - ya.emit("paste", {}) - end - end, -} diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..834b726 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +Pictures/Wallpapers/ filter=lfs diff=lfs merge=lfs -text +.config/yazi/plugins/** -diff +.themes/** -diff