Skip to content

How do I get $FZF_POS in an action? #1902

Answered by phanen
nyngwang asked this question in Q&A
Discussion options

You must be logged in to vote
require('fzf-lua').tabs {
  actions = {
    ['ctrl-g'] = {
      fn = function(selected, opts)
        local entry, pos = selected[1], tonumber(selected[2])
      end,
      field_index = '{} $FZF_POS',
    },
  },
}

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@nyngwang
Comment options

@phanen
Comment options

Answer selected by nyngwang
@nyngwang
Comment options

@ibhagwan
Comment options

@nyngwang
Comment options

@ibhagwan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants