chabou / hyper-pane

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

can't get switching panes to work using arrow keys #14

Closed mmenti closed 7 years ago

mmenti commented 7 years ago

Hi, after trying all kinds of things, I can't get pane switching to work using the keyboard. I have enabled pane-hyper, and switching split panes using the numbers of the panes works, i.e. ctrl+alt+1, ctrl+alt+2 etc works fine, but whatever I try, I can't seem to get crtl+alt+up/down/left/right to work at all.

Hyper 1.3.3, hyper-pane 1.3.0, Dell XPS13 running Ubuntu 16.04. Any help/pointers appreciated, thanks!

chabou commented 7 years ago

Can you give me your config file?

mmenti commented 7 years ago

This zip contains both the hyper-pane index.js and the main .hyper.js - let me know if you need anything else, thanks! config.zip

chabou commented 7 years ago

I'll try to reproduce but I'm suspecting that Ubuntu is catching ctrl+alt+<arrow> for one of its own keybindings. Note: You don't have to modify index.js to modify keys or debug flag. You should add it to your .hyper.jsconfig file under the key config.paneNavigationas (badly) explained in README

mmenti commented 7 years ago

Thanks for the clarification! :) I actually just went back to Tillix to check the config there, where switching panes works using alt-left/alt-right etc (i.e. without the ctrl), and changing the config in .hyper.js to just use alt+right etc also seems to work in Hyper. So I think you're right, I'll take a closer look at it, pretty sure it's not related to hyper-pane itself... thanks for your time and help!

oalhait commented 7 years ago

Actually, I'm having the same issue on macOS Sierra. (2015 rMBP) Here's my config file:

module.exports = {
  config: {
    // default font size in pixels for all tabs
    fontSize: 12,
    // font family with optional fallbacks
    fontFamily: 'Hack, Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',

    // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
    cursorColor: 'rgba(248,28,229,0.8)',

    // `BEAM` for |, `UNDERLINE` for _, `BLOCK` for █
    cursorShape: 'BLOCK',

    // color of the text
    foregroundColor: '#fff',

    // terminal background color
    backgroundColor: 'rgb(238,238,238)',

    // border color (window, tabs)
    borderColor: '#333',

    // custom css to embed in the main window
    css: '',

    // custom css to embed in the terminal window
    termCSS: 'x-row {line-height: 1}',

    // set to `true` if you're using a Linux set up
    // that doesn't shows native menus
    // default: `false` on Linux, `true` on Windows (ignored on macOS)
    showHamburgerMenu: '',

    // set to `false` if you want to hide the minimize, maximize and close buttons
    // additionally, set to `'left'` if you want them on the left, like in Ubuntu
    // default: `true` on windows and Linux (ignored on macOS)
    showWindowControls: '',

    // custom padding (css format, i.e.: `top right bottom left`)
    padding: '10px 8px 10px 8px',

    // the full list. if you're going to provide the full color palette,
    // including the 6 x 6 color cubes and the grayscale map, just provide
    // an array here instead of a color map object
    colors: {
      black: '#000000',
      red: '#ff0000',
      green: '#33ff00',
      yellow: '#ffff00',
      blue: '#0066ff',
      magenta: '#cc00ff',
      cyan: '#00ffff',
      white: '#d0d0d0',
      lightBlack: '#808080',
      lightRed: '#ff0000',
      lightGreen: '#33ff00',
      lightYellow: '#ffff00',
      lightBlue: '#0066ff',
      lightMagenta: '#cc00ff',
      lightCyan: '#00ffff',
      lightWhite: '#ffffff'
    },

    // the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
    // if left empty, your system's login shell will be used by default
    shell: '',

    // for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])
    // by default ['--login'] will be used
    shellArgs: ['--login'],

    // for environment variables
    env: {},

    // set to false for no bell
    bell: false,

    // if true, selected text will automatically be copied to the clipboard
    copyOnSelect: false

    // URL to custom bell
    // bellSoundURL: 'http://example.com/bell.mp3',

    // for advanced config flags please refer to https://hyper.is/#cfg
  },

  // a list of plugins to fetch and install from npm
  // format: [@org/]project[#version]
  // examples:
  //   `hyperpower`
  //   `@company/project`
  //   `project#1.0.1`
  plugins: [
    // 'hyper-one-light',
    'hyperterm-close-on-left',
    'hyperterm-alternatescroll',
    "hyperterm-atom-dark",
        "hyper-pane"
  ],
  // in development, you can create a directory under
  // `~/.hyper_plugins/local/` and include it here
  // to load it and avoid it being `npm install`ed
  localPlugins: []
};
chabou commented 7 years ago

@oalhait It works for me with your config file. Check your OS and other apps global keybindings.

chabou commented 7 years ago

Feel free to comment if your issue is not resolved.