From 18e3848110da0a59843058927ea04b496f5db2a5 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 25 Nov 2024 13:30:08 +0100 Subject: update mpv config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- .config/mpv/scripts/yanky.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.config/mpv/scripts/yanky.lua') diff --git a/.config/mpv/scripts/yanky.lua b/.config/mpv/scripts/yanky.lua index ded6ba0..be9d308 100644 --- a/.config/mpv/scripts/yanky.lua +++ b/.config/mpv/scripts/yanky.lua @@ -12,6 +12,10 @@ end function yankpath() local path = mp.get_property_native("path") + if path ~= "^http" then + yank(path) + return + end local cwd = mp.get_property_native("working-directory") yank(require("mp.utils").join_path(cwd, path)) end -- cgit 1.4.1