Feature request: Similar to bindable preview()
action, a bindable preview-window()
action
#2666
Closed
5 of 10 tasks
Labels
man fzf
)Info
Problem / Steps to reproduce
I love, love, love the new
preview-window
options (base scroll/offset/denom). I've been adding them to my workflow. I find myself sometimes not using them when I'd like to because I have an alternatepreview()
action bound, but the preview window settings are different for them.As an example, imagine using fzf to explore a merge conflict. Your preview window jumps to the offset in the file with the merge conflict:
--preview-window=+{2}/2
. You've bound keys to change the preview to show other indices, however - something like--bind=ctrl-l:preview(git show :1:({1}),ctrl-r:preview(git show :2:{1})
. But the field index expression in yourpreview-window
hasn't changed. Even if your search result has the desired lines for each index, you can't change thepreview-window
option to use different field index expressions.Let me know if this hasn't been clear, and I can put together a more concrete example.
If this doesn't match your vision for the tool, that's great too - I trust your vision for the tool much more than my own. Thanks for making something that brings so much joy to my development experience, dozens of times a day!
The text was updated successfully, but these errors were encountered: