Skip to content

Allow arrow movements relative to current visible window #3969

@SpiritCroc

Description

@SpiritCroc

yazi --debug output

Yazi
    Version  : 26.5.6 (Arch Linux 2026-05-10)
    Debug    : false
    Triple   : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc    : 1.95.0 (59807616 2026-04-14)
    Backtrace: None

Ya
    Version: 26.5.6 (Arch Linux 2026-05-10)

[...]

Please describe the problem you're trying to solve

I got used to moving my cursor with "H"/"M"/"L" key bindings in applications supporting vim-like movements. These would go to the top/center/bottom of the currently visible frame, rather than relative to the open file. It would be nice to have these available in yazi too.

Would you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

Relative movements could e.g. be configured as follows, once the feature exists:

{ on = "<S-H>", run = "arrow 0%-window", desc = "High: Move cursor to visible window top without scrolling" },
{ on = "<S-M>", run = "arrow 50%-window", desc = "Middle: Move cursor to visible window center" },
{ on = "<S-L>", run = "arrow 100%-window", desc = "Low: Move cursor to visible window bottom without scrolling" },

Additional context

No response

Checklist

  • I have searched the existing issues/discussions
  • The latest nightly build doesn't already have this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions