junegunn / fzf.vim

fzf :heart: vim
MIT License
9.62k stars 584 forks source link

Cannot scroll with preview #1114

Open IgorGee opened 4 years ago

IgorGee commented 4 years ago

I see #1078 was merged, so I'm confused why this won't work. I have fzf@0.22.0 as well as the latest code for this plugin.

I tried fzf preview scrolling in a regular terminal, and it worked fine.

If it helps, scrolling within the preview of fzf.vim is possible when using the keyboard shortcuts Shift + Up/Down.

leoluz commented 3 years ago

@IgorGee Tks for the Shift + up/down tip! I guess I'll go with it instead of hacking the command to add the --bind to fzf.

It would be great if fzf.vim was able to handle this and provide a proper configuration allowing users to define their own mappings for preview pageup/pagedown.

Drowze commented 2 years ago

Just checked myself in a few scenarios (under MacOS) I can also report some oddities:

Using default Terminal.app: does not work, shift+up/down simply goes up and down the list of files. Using iterm2 (with no custom settings as far as I'm aware): works! I'm able to scroll the preview with it. Using Alacritty (with no custom settings for shift+up/down): does not work, pressing shift+up outputs ;2A on the terminal, while pressing shift+down outputs ;2B.

I understand Alacritty not working (it probably depends on some custom keybindings), but I'm confused as to whether Terminal.app doesn't work by default.

jcalvopinam commented 6 months ago

I wanna share a couple of scenarios that I found interesting, I'm using iTerm v2.14 (453) and fzf v0.49.0.