Skip to content
Discussion options

You must be logged in to vote

You don’t need the hack, define enter in the actions map and add a prefix to it:

actions = {
  ["enter"] = { fn = FzfLua.actions.file_edit, prefix = "select-all" }
}

In your case:

actions = {
  ['enter'] = {
    fn = function(selected, opts)
      opts.copen = false
      actions.file_sel_to_qf(selected, opts)
      actions.file_edit({ selected[1] }, opts)
    end,
    prefix = "select-all",
  }
},

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nguyenvukhang
Comment options

You must be logged in to vote
0 replies
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