chabou / hyper-pane

Extension for Hyper.app to enhance pane navigation.
MIT License
188 stars 13 forks source link

Alt Gr shortcut on Windows #29

Closed BenjaminITS closed 5 years ago

BenjaminITS commented 6 years ago

Hello,

Is it a way to disable the Alt Gr shortcut ? I use an azerty keyboard on Windows. And when the plugin is enable I can't use, for example, the shortcut Alt Gr + 6 to make the "|" char.

Thanks

chabou commented 6 years ago

You have to remap default keys. For exemple, using ctrl+shift instead:

module.exports = {
  config: {
    // other configs...
    paneNavigation: {
      hotkeys: {
        navigation: {
          up: 'ctrl+shift+up',
          down: 'ctrl+shift+down',
          left: 'ctrl+shift+left',
          right: 'ctrl+shift+right'
        },
        jump_prefix: 'ctrl+shift', // completed with 1-9 digits
        permutation_modifier: 'alt', // Added to jump and navigation hotkeys for pane permutation
      },
      indicatorPrefix: '^⇧', // Will be completed with pane number
    }
  }
  //...
};

Good to know, on Windows: ctrl+alt === altGr

BenjaminITS commented 6 years ago

It works, perfect.

Thank you