summaryrefslogtreecommitdiffstats
path: root/layout-set.c
AgeCommit message (Collapse)Author
2021-03-11Add split-window -Z to start the pane zoomed, GitHub issue 2591.nicm
2020-04-22Change so main-pane-width and height can be given as a percentage.nicm
2019-11-28Make a best effort to set xpixel and ypixel for each pane and addnicm
formats for them.
2019-07-15Make layout_fix_offsets take a window like layout_fix_panes.nicm
2019-05-14Fix sizing of main-vertical and main-horizontal layouts, GitHub issue 1736.nicm
2019-04-26Unbreak main-vertical and main-horizontal layouts.nicm
2019-04-17Rewrite main-vertical and horizontal to use the common spread out codenicm
and to handle the case where the panes won't fit into the existing window size.
2019-04-17Set the window size as well as the layout size when using the presetnicm
layouts.
2019-04-04Fix size check for splitw -f and top level pane size for tiled layout,nicm
problems reported by Thomas Sattler.
2018-10-18Support for windows larger than visible on the attached client. This hasnicm
been a limitation for a long time. There are two new options, window-size and default-size, and a new command, resize-window. The force-width and force-height options and the session_width and session_height formats have been removed. The new window-size option tells tmux how to work out the size of windows: largest means it picks the size of the largest session, smallest the smallest session (similar to the old behaviour) and manual means that it does not automatically resize windows. The default is currently largest but this may change. aggressive-resize modifies the choice of session for largest and smallest as it did before. If a window is in a session attached to a client that is too small, only part of the window is shown. tmux attempts to keep the cursor visible, so the part of the window displayed is changed as the cursor moves (with a small delay, to try and avoid excess redrawing when applications redraw status lines or similar that are not currently visible). The offset of the visible portion of the window is shown in status-right. Drawing windows which are larger than the client is not as efficient as those which fit, particularly when the cursor moves, so it is recommended to avoid using this on slow machines or networks (set window-size to smallest or manual). The resize-window command can be used to resize a window manually. If it is used, the window-size option is automatically set to manual for the window (undo this with "setw -u window-size"). resize-window works in a similar way to resize-pane (-U -D -L -R -x -y flags) but also has -a and -A flags. -a sets the window to the size of the smallest client (what it would be if window-size was smallest) and -A the largest. For the same behaviour as force-width or force-height, use resize-window -x or -y, and "setw -u window-size" to revert to automatic sizing.. If the global window-size option is set to manual, the default-size option is used for new windows. If -x or -y is used with new-session, that sets the default-size option for the new session. The maximum size of a window is 10000x10000. But expect applications to complain and much higher memory use if making a window excessively big. The minimum size is the size required for the current layout including borders. The refresh-client command can be used to pan around a window, -U -D -L -R moves up, down, left or right and -c returns to automatic cursor tracking. The position is reset when the current window is changed.
2017-12-31Initialize the size of new panes created by the even-* layout correctly;nicm
reported by Andreas Kahari and Anton Lindqvist.
2017-11-15Add a common function for spreading out cells and use it for the twonicm
even layouts and to add a -E flag to select-layout to spread out cells evenly without changing parent cells.
2017-05-15Notify layout changed when choosing predefined layouts, from Joshua Brot.nicm
2016-10-11Some other stuff that can be local to one file.nicm
2016-10-10Loads more static, except for cmd-*.c and window-*.c.nicm
2016-08-03Fix minimum size when pane status line is enabled, reported by Y Petremann.nicm
2016-01-19I no longer use my SourceForge address so replace it.nicm
2015-10-27Move struct options into options.c.nicm
2015-08-29Remove some old prototypes and unused functions.nicm
2014-04-17Some more long lines.nicm
2011-11-09Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen.Nicholas Marriott
2011-03-07Prevent tiled producing a corrupt layout when only one column is needed,Nicholas Marriott
from Karl Ferdinand Ebert.
2010-12-19Add other-pane-height and other-pane-width options, allowing the widthNicholas Marriott
or height of the smaller panes in the main-horizontal and main-vertical layouts to be set. Mostly from David Goodlad.
2010-12-08In the built-in layouts, distribute the panes more evenly. Set theNicholas Marriott
default value of main-pane-width to 80, rather than 81. By Micah Cowan.
2010-04-25Add a tiled layout, originally from Liam Bedford a while ago, fixed upNicholas Marriott
by me.
2010-02-03Fix divide by zero on small windows with main-* layouts.Nicholas Marriott
2009-12-03Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott
time now I've configured emacs to make them displayed in really annoying colours...
2009-07-28If select-layout is not given an argument, repply the last layout used in theNicholas Marriott
window, if any.
2009-07-20Kill some dead stores and fix a null pointer deref, found by clang.Nicholas Marriott
2009-07-19Improved layout code.Nicholas Marriott
Each window now has a tree of layout cells associated with it. In this tree, each node is either a horizontal or vertical cell containing a list of other cells running from left-to-right or top-to-bottom, or a leaf cell which is associated with a pane. The major functional changes are: - panes may now be split arbitrarily both horizontally (splitw -h, C-b %) and vertically (splitw -v, C-b "); - panes may be resized both horizontally and vertically (resizep -L/-R/-U/-D, bound to C-b left/right/up/down and C-b M-left/right/up/down); - layouts are now applied and then may be modified by resizing or splitting panes, rather than being fixed and reapplied when the window is resized or panes are added; - manual-vertical layout is no longer necessary, and active-only layout is gone (but may return in future); - the main-pane layouts now reduce the size of the main pane to fit all panes if possible. Thanks to all who tested.