Skip to content
Discussion options

You must be logged in to vote

Okay, I see what's happening. Try this one, and you'll see it works as expected:

echo 'Name               Role
node1.contoso.com  role::db::oracle
node2.contoso.com  role::test
node3.contoso.com  role::db::oracle' | fzf --header-lines 1 --accept-nth 1 --nth 1 --color fg:dim,nth:regular --header-first --header-border --bind 'click-header:transform-nth(
            echo $FZF_CLICK_HEADER_NTH
          )+transform-prompt(
            echo "$FZF_CLICK_HEADER_WORD> "
          )+transform-footer(echo ${FZF_CLICK_HEADER_NTH:-N/A})'

In your command, by using transform-header, you're effectively prepending a number to the header section. It starts with:


Name     Role

But when you click Name, it…

Replies: 1 comment 7 replies

Comment options

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

@junegunn
Comment options

@moritzdietz
Comment options

@junegunn
Comment options

Answer selected by moritzdietz
@moritzdietz
Comment options

@moritzdietz
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
2 participants