Skip to content

Action / key-binding to zoom / maximize preview pane #372

Open

Description

@tbnorth

Is your request due to an existing bug?

No, it is not.

What feature do you want in rovr?

I want an action / key-binding to zoom / maximize preview pane so I can examine the previewed file more easily.

I have forked and branched the repo and will give this a shot myself, but creating a ticket here for tracking.

Describe any alternatives you've considered

Not aware of any alternatives.

Are there any other file managers with this feature?

Not that I know of.

Additional context

No response

Activity

  1. NSPC911 commented on Oct 22, 2026

    @NSPC911
    Owner

    Okay, so I took a look at Textual's documentation, and there is an action for maximising the focused widget
    https://textual.textualize.io/api/screen/#textual.screen.Screen.action_maximize

    This means you can do

    [preview]
    "alt+p" = "maximize"

    but the preview needs to be the focused widget to activate this keybind. Pressing this again doesn't exit maximised mode; only Esc does, or a keybind bound to minimize. a action_toggle_maximize(query: str) on Application should be reasonable, so that

    [app]
    "alt+p" = "toggle_maximize('PreviewContainer')"

    is possible

  2. added
    difficulty: easythis feature is easy to implement, or this bug is easy to fix
    enhancementenhanced something by removing or adding something
    on Oct 22, 2026
  3. brownterryn commented on Oct 22, 2026

    @brownterryn

    2. Okay, so I took a look at Textual's documentation, and there is an action for maximising the focused widget
    https://textual.textualize.io/api/screen/#textual.screen.Screen.action_maximize

    Thanks I'd missed this and my solution applying a class is crashing for non-directory text previews and directory previews to long to fit on the screen. Not that I want to preview directories. Images there's no crash but the image isn't re-rendered so will look at that. Crash is in textual rendering, fwiw. I will play more with that action.

  4. added 3 commits that reference this issue on Oct 22, 2026
    50a5120
    7203c99
    5994f23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty: easythis feature is easy to implement, or this bug is easy to fixenhancementenhanced something by removing or adding somethingfeature-requestnew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions