Skip to content

[Feature Request] Configurable keybindings for the diff viewer #169

Description

@victor-falcon

Currently the interactive diff viewer (lumen diff) has hardcoded keybindings. In particular, next/previous file is bound to ctrl+j / ctrl+k.

These conflict with keys I already use elsewhere in my terminal/multiplexer, and there is no way to rebind them. The config schema (~/.config/lumen/lumen.config.json) only supports provider, model, api_key, theme, wrap, and draft.commit_types — nothing for keybindings.

Request

Allow customizing diff-viewer keybindings via the config file. For example, I would like to remap next/previous file to ] / [.

A possible shape:

{
  "diff": {
    "keybindings": {
      "next_file": "]",
      "prev_file": "["
    }
  }
}

Any config-driven mechanism would work — the key point is being able to override the hardcoded defaults.

Version

lumen 2.30.0

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