Skip to content

Vertical layout for fzf windows when jj-fzf too narrow #10

@niveK77pur

Description

@niveK77pur

Hello! First off, thank you for this amazing tool! Using fzf makes for such a sweet interaction with jj.

I do have an issue however, where jj-fzf's window is nearly unusable when my terminal window is too narrow. And this happens quite a lot to me, because I often have 2 windows side by side. Below is a screenshot of what jj-fzf looks like.

Image

You can see that the log view on the left shows practically nothing of relevance anymore. The right view also suffers from line wraps making it clunky to see what is even happening.

I haven't looked at the implementation for this tool, but fzf by itself is definitely able to automatically rearrange the query window and the preview window in a horizontal and vertical manner depending on the available space, by specifying --layout flex option (if I am not mistaken now).

Would it be possible to conceive something similar for jj-fzf? In this case, the log view would be at the top, and the preview window at the bottom (possibly even able to hide the preview if there really is not enough space), allowing for more horizontal space to display more relevant information in both views.

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