Skip to content
This repository was archived by the owner on Apr 1, 2020. It is now read-only.
This repository was archived by the owner on Apr 1, 2020. It is now read-only.

Adding support for Alt-Shift key bindings #2755

Open
@otto-dev

Description

@otto-dev

Alt-Shift-Xis received as <M-x> in oni, but as <M-X> in neovim (gui). Notice the capital X. This applies to any Alt-Shift combination. init.vim keybindings differentiate between <M-X> (uppercase) keybindings and <M-x> (lowercase) keybindings, i.e. shift pressed / not pressed. nmap <M-X> :something<CR> will only be triggered if shift is pressed.

This can be fixed in onivim by adding the following to your configuration:

    oni.input.resolvers.addResolver((event, key) => {
        if(event.altKey && event.shiftKey) return key.toString().toUpperCase()
        return key;
    })

Oni Version: 0.3.9
Neovim Version (Linux only): 0.3.8
Operating System: Arch Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions