jisaacks / MaxPane

Sublime Text plugin to quickly maximize a pane in a multi pane layout without resetting the layout.
MIT License
78 stars 9 forks source link

Resolve conflict with default key bindings #17

Closed deathaxe closed 5 years ago

deathaxe commented 5 years ago

Closes #3 Fixes #9

The currently used ctrl+shift+enter is already assigned to the add_line_before command in Sublime Text 3's Default package.

This commit resolves this conflict by binding the max_pane command to

MacOS: super+k, super+f Windows/Linux: ctrl+k, ctrl+f

as

1) this binding is not currently used by vanilla ST3 or Origami plugin. 2) the sequence ctrl+k, ctrl+... is used for various pane and layout related functions like focus_neighbouring_group, move_to_neighbouring_group or toggle_sidebar in Sublime Text or Origami plugin.

Note: The key bindings for shift_pane and unshift_pane on MacOS are kept unchanged for compatibility reasons with ST2 and iTerm behavior.

New bindings for Linux/Windows are not added because ST3 provides these functions and proper bindings out of the box, which deprecates both functions.