Skip to content
Discussion options

You must be logged in to vote

I'd like to know if it is possible to provide explorer multiple path so that one tree is open for every path given.

It is possible, but not via option, so you need to override finder function (see related.1):

M.explorer = {
finder = "explorer",

---@param opts snacks.picker.explorer.Config
---@type snacks.picker.finder
function M.explorer(opts, ctx)
local state = M.get_state(ctx.picker)
ctx.picker.matcher.opts.keep_parents = false
if state:setup(ctx) then
ctx.picker.ma…

Replies: 5 comments 4 replies

Comment options

@drowning-cat
Comment options

Answer selected by notfound4
Comment options

You must be logged in to vote
2 replies
@drowning-cat
Comment options

@notfound4
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@drowning-cat
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants