From 510d4d1071be27c722e3ca5d081c93d25c99acdc Mon Sep 17 00:00:00 2001 From: sxyazi Date: Thu, 7 Nov 2024 23:09:09 +0800 Subject: [PATCH] docs: add `@sync entry` metadata to sync plugins --- docs/tips.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/tips.md b/docs/tips.md index 441f9c8b..8d60669f 100644 --- a/docs/tips.md +++ b/docs/tips.md @@ -64,6 +64,7 @@ to exiting input directly, without entering Vi mode, making it behave like a reg Save these lines as `~/.config/yazi/plugins/smart-enter.yazi/init.lua`: ```lua +--- @sync entry return { entry = function() local h = cx.active.current.hovered @@ -89,6 +90,7 @@ which means both will only target the currently hovered file. If you still want Save these lines as `~/.config/yazi/plugins/smart-paste.yazi/init.lua`: ```lua +--- @sync entry return { entry = function() local h = cx.active.current.hovered @@ -220,6 +222,7 @@ Moved to https://github.com/yazi-rs/plugins/tree/main/hide-preview.yazi Save these lines as `~/.config/yazi/plugins/arrow.yazi/init.lua`: ```lua +--- @sync entry return { entry = function(_, args) local current = cx.active.current @@ -266,6 +269,7 @@ return { entry = entry } ```lua +--- @sync entry local function entry(_, args) local parent = cx.active.parent if not parent then return end