Scroll preview
For cases when previewed file contains few pages it would make sense to introduce command for scrolling preview up and down. It would be something similar to what fzf has. That would also require indicator of current/total line.
This seems unlikely to happen. You can look at https://github.com/gokcehan/lf/issues/610 and https://github.com/gokcehan/lf/issues/568.
Oh, I searched only through opened issues for this. I still don't get all reasoning behind Pager argumentation. In my understanding, preview content is pretty similar to folder content in terms of scrolling: some multiline data which is fully generated on first call.
With ranger you can scroll the preview with the mouse, it would be awesome if lf could do the same!
To iterate why it's not the same as opening the file with a pager, for some binary files I use text output as a preview (ffprobe or mediainfo for videos) and I'd love to be able to scroll that!
(pinging @gokcehan as I think this is a relevant point of discussion still and this is the most informative open issue about the topic)
I do understand that it's incompatible with the preview caching, so that might still be a strong argument against preview scrolling.
Also would like to rebind mouse wheel scroll to be applied on preview instead of file picker
@MinmoTech I'm really tired of saying no to feature requests, so if someone figures out a way to make this work, feel free to send it as a patch and I will let our contributors decide whether or not the patch should be accepted. The only thing I require is that it should somehow not disable the preview optimization (i.e. only read the first portion of the file) for users that are not interested in this behavior. I'm not sure if it is possible or not.
i finally worked out how to get lf set up to do some nice things (xxd for binary files, jq to prettify json, all done via simple file logic in a shell script) but the glaring limitation with preview now is not being able to scroll!
Sure i can open a file in neovim to gain scrolling but my nvim config is a bit heavy at the moment and that's too slow.
I am curious if you could succinctly describe a little more what the preview optimization does. Does it come into play if you define a previewer?