Skip to content

Resize Wezterm panes using Arrow Keys #226

Answered by mrjones2014
hadynz asked this question in Q&A
Discussion options

You must be logged in to vote

Hm, that's not a case I'd thought about.

I think to support your case in a backwards compatible way, I could update it to work like so:

smart_splits.apply_to_config(config, {
  -- if specified like this, share the same direction keys
  direction_keys = { 'h', 'j', 'k', 'l' },
  -- but you could also do this
  direction_keys = {
    move = { 'h', 'j', 'k', 'l' },
    resize = { 'Up', 'Down', 'Left', 'Right' },
  },
  modifiers = {
    move = 'CTRL', -- modifier to use for pane movement, e.g. CTRL+h to move left
    resize = 'META', -- modifier to use for pane resize, e.g. META+h to resize to the left
  }
})

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mrjones2014
Comment options

@hadynz
Comment options

@mrjones2014
Comment options

Answer selected by mrjones2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants