Key binding issues with next/prev document

Hey there,

I'm trying to set up key bindings to change between documents, similar to how most programs handle this using shift + ctrl/cmd + [/].

I've gotten it to work using ctrl + [/]
[
  {
    "keyString": "]",
    "action": "prev_document_action",
    "ctrlKey": true
  },
  {
    "keyString": "[",
    "action": "next_document_action",
    "ctrlKey": true
  }
]

...but something seems to be broken when using adding the shift key.
[
  {
    "keyString": "]",
    "action": "prev_document_action",
    "ctrlKey": true,
    "shiftKey": true
  },
  {
    "keyString": "[",
    "action": "next_document_action",
    "ctrlKey": true,
    "shiftKey": true
  }
]
This binding does not work at all.

Another I have when just using the ctrl/cmd key is that the cmd key only works once per prev_document_action or next_document_action. If I then change document using the ctrl key, I can then use the cmd key again (but still only once in either direction).

Also, the bindings for prev_document_action/next_document_action seem to be switched around to how I would expect them to behave. I would expect to next_document_action to switch tabs from left to right, and prev_document_action to switch tabs right to left, these are in fact reversed.

I am using 0.4.8 on OSX 10.13.6.

Any ideas on these issues?

Thanks,
Edd

Comments

  • DanikDanik Posts: 764
    Yeah, I have the same issue here, thanks for reporting it. I will investigate! Custom key bindings don't work that great yet...
  • empikaempika Posts: 12
    No worries, ctrl+[/] is fine for now. just don't have the muscle memory like other apps :)
Sign In or Register to comment.