junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
63.72k stars 2.37k forks source link

Scrolling down with mouse inside `less` #1568

Open OliverJAsh opened 5 years ago

OliverJAsh commented 5 years ago

Using iTerm2, I have enabled this setting: "Scroll wheel sends arrow keys when in alternate screen mode".

image

This enables me to scroll inside less using my trackpad or mouse (see https://stackoverflow.com/a/37610820/5932012).

However, when I invoke less from within fzf, this does not work. Instead, crazy things happen:

fzf --bind "enter:execute(echo {} | xargs less)"

Untitled

Scrolling does work inside the list and preview windows, however.

OliverJAsh commented 5 years ago

The --no-mouse option seems to workaround this issue. Not sure if it's an actual fix, though.

antoniopantaleo commented 1 year ago

Hi everyone! As of today I'm using version 0.33 of fzf, and still got this annoying bug. I'm under macOS Monterey 12.2, using zsh and iTerm2 (build 3.4.16).

I can't use the --no-mouse workaround due to my use case.

Is there anyone else who would work on this? Or has this issue been forget?