sainnhe / tmux-fzf

Use fzf to manage your tmux work environment!
MIT License
974 stars 50 forks source link

A way to set preview to starting lines #52

Open kkharji opened 2 years ago

kkharji commented 2 years ago

Dear @sainnhe, Thanks for your amazing work on tmux-fzf. I really enjoy using it.

I'm having a preview issue since I first started using the tmux-fzf, that is preview starts in the middle or by the end instead the first line.

Is there away you know of or configuration I missed to make preview start from the first lines

Thanks

sainnhe commented 2 years ago

It's controlled by :follow option.

https://github.com/sainnhe/tmux-fzf/blob/1801dd525b39154745ea668fb6916035023949e3/scripts/.envs#L20

Try to upgrade your fzf.

kkharji commented 2 years ago

🤔 I believe my Tmux is up to date no? 3.2a also fzf is 0.30

my fzf opts are

[
           "-p" "-w" "70%" "-h" "50%" "-m"
             "--height 60%"
            "--preview-window=right:60%"
            "--bind='ctrl-d:preview-half-page-down'"
            "--bind='ctrl-u:preview-half-page-up'"
            "--bind='ctrl-space:toggle-preview'"
            "--bind='alt-space:toggle-preview'"
            "--bind=',:toggle-preview'"
            "--preview-window=right:65%:nocycle:nofollow"
            "--reverse"
            "--scroll-off=8"
            "--cycle"
            "--no-info"
            "--no-bold"
            "--border=rounded"
            "--preview-window=:nofollow"
          ]
sainnhe commented 2 years ago

You set it to nofollow

"--preview-window=:nofollow"
kkharji commented 2 years ago

Yah I added that thinking it would changed it and show first lines. but didn't have any effect.