Skip to content

FEATURE: Horizontal preview scroll #4824

Description

@Heck-R

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.73.0 (a24deef)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

On top of the existing vertical scrolling in previews, having horizontal scrolling would be very nice.

I preview arbitrary file content in the preview in multiple use cases (it's also a thing in the commonly suggested fzf-ripgrep combination), and while it is technically possible to see everything with wrap on, the content can be such that it becomes very hard to comprehend with wrap.

I personally mainly wish for the horizontal scroll actions similar to preview-scroll-up and preview-scroll-down (so e.g.: preview-scroll-left and preview-scroll-right), but of course, if the cursor scrolling (with the click + drag and/or shift + scroll) is available by default to complete the existing cursor interactions, that would also be greatly appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions