Skip to content
Discussion options

You must be logged in to vote

I want to make mini.pick open all marked files when I execute choose actions (choose_marked, choose_in_*). For me, opening files as buffers/splits/tabs is a lot more useful than populating the quickfix list. Any advice? I was trying to use source.choose_marked and mini_pick.default_choose_marked but I'm not sure how.

default_choose_marked is indeed designed to populate quickfix list if there is at least one recognizable buffer/file item.

The way to go is indeed to set config.source.choose_marked to act like choosing every input item. Something like this seems to work:

require('mini.pick').setup({
  source = {
    choose_marked = function(items)
      for _, item in ipairs(items) do

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by echasnovski
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
question Further information is requested mini.pick
3 participants