Skip to content

KEY_CONFIG.md vim keybindings code snippet has the left key double mapped to open help #1037

@work-in-progress-danny

Description

@work-in-progress-danny

When copying the basic vim keybindings snippet from the ./KEY_CONFIG.md docs I ran into a bug where the h key was double mapped to open_help and move_left. I suggest extending the snippet by remapping open_help to H like so:

(
    focus_right: Some(( code: Char('l'), modifiers: ( bits: 0,),)),
    focus_left: Some(( code: Char('h'), modifiers: ( bits: 0,),)),
    focus_above: Some(( code: Char('k'), modifiers: ( bits: 0,),)),
    focus_below: Some(( code: Char('j'), modifiers: ( bits: 0,),)),
    
    move_left: Some(( code: Char('h'), modifiers: ( bits: 0,),)),
    move_right: Some(( code: Char('l'), modifiers: ( bits: 0,),)),
    move_up: Some(( code: Char('k'), modifiers: ( bits: 0,),)),
    move_down: Some(( code: Char('j'), modifiers: ( bits: 0,),)),

    open_help: Some(( code: Char('H'), modifiers: ( bits: 0,),)),
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions