aboutsummaryrefslogtreecommitdiff
path: root/layout-set.c
Commit message (Collapse)AuthorAge
* Add split-window -Z to start the pane zoomed, GitHub issue 2591.nicm2021-03-11
|
* Change so main-pane-width and height can be given as a percentage.nicm2020-04-22
|
* Make a best effort to set xpixel and ypixel for each pane and addnicm2019-11-28
| | | | formats for them.
* Make layout_fix_offsets take a window like layout_fix_panes.nicm2019-07-15
|
* Fix sizing of main-vertical and main-horizontal layouts, GitHub issue 1736.nicm2019-05-14
|
* Unbreak main-vertical and main-horizontal layouts.nicm2019-04-26
|
* Rewrite main-vertical and horizontal to use the common spread out codenicm2019-04-17
| | | | | and to handle the case where the panes won't fit into the existing window size.
* Set the window size as well as the layout size when using the presetnicm2019-04-17
| | | | layouts.
* Fix size check for splitw -f and top level pane size for tiled layout,nicm2019-04-04
| | | | problems reported by Thomas Sattler.
* Support for windows larger than visible on the attached client. This hasnicm2018-10-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Initialize the size of new panes created by the even-* layout correctly;nicm2017-12-31
| | | | reported by Andreas Kahari and Anton Lindqvist.
* Add a common function for spreading out cells and use it for the twonicm2017-11-15
| | | | | even layouts and to add a -E flag to select-layout to spread out cells evenly without changing parent cells.
* Notify layout changed when choosing predefined layouts, from Joshua Brot.nicm2017-05-15
|
* Some other stuff that can be local to one file.nicm2016-10-11
|
* Loads more static, except for cmd-*.c and window-*.c.nicm2016-10-10
|
* Fix minimum size when pane status line is enabled, reported by Y Petremann.nicm2016-08-03
|
* I no longer use my SourceForge address so replace it.nicm2016-01-19
|
* Move struct options into options.c.nicm2015-10-27
|
* Remove some old prototypes and unused functions.nicm2015-08-29
|
* Some more long lines.nicm2014-04-17
|
* Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen.Nicholas Marriott2011-11-09
|
* Prevent tiled producing a corrupt layout when only one column is needed,Nicholas Marriott2011-03-07
| | | | from Karl Ferdinand Ebert.
* Add other-pane-height and other-pane-width options, allowing the widthNicholas Marriott2010-12-19
| | | | | or height of the smaller panes in the main-horizontal and main-vertical layouts to be set. Mostly from David Goodlad.
* In the built-in layouts, distribute the panes more evenly. Set theNicholas Marriott2010-12-08
| | | | default value of main-pane-width to 80, rather than 81. By Micah Cowan.
* Add a tiled layout, originally from Liam Bedford a while ago, fixed upNicholas Marriott2010-04-25
| | | | by me.
* Fix divide by zero on small windows with main-* layouts.Nicholas Marriott2010-02-03
|
* Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott2009-12-03
| | | | | time now I've configured emacs to make them displayed in really annoying colours...
* If select-layout is not given an argument, repply the last layout used in theNicholas Marriott2009-07-28
| | | | window, if any.
* Kill some dead stores and fix a null pointer deref, found by clang.Nicholas Marriott2009-07-20
|
* Improved layout code.Nicholas Marriott2009-07-19
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.