core: add resize_split binding with default keys

On macOS, use Cmd+Ctrl+Arrow keys as default bindings for resizing by 10
points in the given direction.
This commit is contained in:
Gregory Anders
2023-11-05 19:50:58 -06:00
parent e7745dc820
commit 0a2d435481
4 changed files with 46 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ pub const KeyEncoder = @import("input/KeyEncoder.zig");
pub const InspectorMode = Binding.Action.InspectorMode;
pub const SplitDirection = Binding.Action.SplitDirection;
pub const SplitFocusDirection = Binding.Action.SplitFocusDirection;
pub const SplitResizeDirection = Binding.Action.SplitResizeDirection;
// Keymap is only available on macOS right now. We could implement it
// in theory for XKB too on Linux but we don't need it right now.