Closed kuremu closed 2 months ago
Sets FZF_HEADERCLICK_ROW and FZF_HEADERCLICK_LINE env vars with coordinates of last click inside and relative to the header.
FZF_HEADERCLICK_ROW
FZF_HEADERCLICK_LINE
printf "header1\nheader2\nheader3\na\nb\nc" | fzf --header-lines=3 --bind "header-click:transform-prompt(echo \${FZF_HEADERCLICK_LINE}x\${FZF_HEADERCLICK_COLUMN})"
Could be useful for eg. selecting a sort column. I think it could just as easily add a FZF_HEADERCLICK_WORD var as well.
FZF_HEADERCLICK_WORD
Here is a more complex demo with an interactive keyboard (invoke like cat /usr/share/dict/words | python keyboard.py).
cat /usr/share/dict/words | python keyboard.py
sleep-deprived typo in the commit, i'm going to submit it again
Sets
FZF_HEADERCLICK_ROW
andFZF_HEADERCLICK_LINE
env vars with coordinates of last click inside and relative to the header.printf "header1\nheader2\nheader3\na\nb\nc" | fzf --header-lines=3 --bind "header-click:transform-prompt(echo \${FZF_HEADERCLICK_LINE}x\${FZF_HEADERCLICK_COLUMN})"
Could be useful for eg. selecting a sort column. I think it could just as easily add a
FZF_HEADERCLICK_WORD
var as well.Here is a more complex demo with an interactive keyboard (invoke like
cat /usr/share/dict/words | python keyboard.py
).