diff --git a/doc/DOCUMENTATION.org b/doc/DOCUMENTATION.org index b660b649a..0d5fc06e7 100644 --- a/doc/DOCUMENTATION.org +++ b/doc/DOCUMENTATION.org @@ -2207,6 +2207,10 @@ Windows manipulation commands (start with ~w~): | ~SPC w w~ | cycle and focus between windows | | ~SPC w W~ | select window using [[https://github.com/abo-abo/ace-window][ace-window]] | | ~SPC w x~ | delete a window and its current buffer (does not delete the file) | +| ~SPC w [~ | shrink window horizontally (enter transient state) | +| ~SPC w ]~ | enlarge window horizontally (enter transient state) | +| ~SPC w {~ | shrink window vertically (enter transient state) | +| ~SPC w }~ | enlarge window vertically (enter transient state) | Split the current window into multiple ones, deleting all others using the following commands: diff --git a/layers/+spacemacs/spacemacs-defaults/keybindings.el b/layers/+spacemacs/spacemacs-defaults/keybindings.el index 6055c2dc2..779955600 100644 --- a/layers/+spacemacs/spacemacs-defaults/keybindings.el +++ b/layers/+spacemacs/spacemacs-defaults/keybindings.el @@ -702,8 +702,12 @@ respond to this toggle." ("v" split-window-right) ("V" split-window-right-and-focus) ("w" other-window)) -(spacemacs/set-leader-keys "w." - 'spacemacs/window-manipulation-transient-state/body) +(spacemacs/set-leader-keys + "w." 'spacemacs/window-manipulation-transient-state/body + "w[" 'spacemacs/window-manipulation-transient-state/spacemacs/shrink-window-horizontally + "w]" 'spacemacs/window-manipulation-transient-state/spacemacs/enlarge-window-horizontally + "w{" 'spacemacs/window-manipulation-transient-state/spacemacs/shrink-window + "w}" 'spacemacs/window-manipulation-transient-state/spacemacs/enlarge-window) ;; end of Window Manipulation Transient State