Skip to content
Discussion options

You must be logged in to vote

I am not completely sure how I pieced that together.

Now I updated the plugin to:

--- @since 25.5.31
--- @sync entry

local function setup(self, opts) self.open_multi = opts.open_multi end

local function entry(self)
	local h = cx.active.current.hovered
	if h and h.cha.is_dir then
		ya.emit("enter", {})
		ya.emit("quit", {})
	else
		ya.emit("open", { hovered = not self.open_multi })
	end
end

return { entry = entry, setup = setup }

And this works.
Thanks for your support!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@norman-zon
Comment options

Answer selected by norman-zon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants