include plugins
This commit is contained in:
parent
ae61234858
commit
cd81d7b2b4
21 changed files with 1201 additions and 0 deletions
13
.config/yazi/plugins/smart-switch.yazi/main.lua
Normal file
13
.config/yazi/plugins/smart-switch.yazi/main.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- @sync entry
|
||||
local function entry(_, job)
|
||||
local cur = cx.active.current
|
||||
for _ = #cx.tabs, job.args[1] do
|
||||
ya.mgr_emit("tab_create", { cur.cwd })
|
||||
if cur.hovered then
|
||||
ya.mgr_emit("reveal", { cur.hovered.url })
|
||||
end
|
||||
end
|
||||
ya.mgr_emit("tab_switch", { job.args[1] })
|
||||
end
|
||||
|
||||
return { entry = entry }
|
Loading…
Add table
Add a link
Reference in a new issue