summaryrefslogtreecommitdiffstats
path: root/window.c
AgeCommit message (Collapse)Author
2019-03-19Merge branch 'obsd-master'Thomas Adam
2019-03-18Free temporary screens when writing format.nicm
2019-03-18Merge branch 'obsd-master'Thomas Adam
2019-03-18Extend the #[] style syntax and use that together with previous formatnicm
changes to allow the status line to be entirely configured with a single option. Now that it is possible to configure their content, enable the existing code that lets the status line be multiple lines in height. The status option can now take a value of 2, 3, 4 or 5 (as well as the previous on or off) to configure more than one line. The new status-format array option configures the format of each line, the default just references the existing status-* options, although some of the more obscure status options may be eliminated in time. Additions to the #[] syntax are: "align" to specify alignment (left, centre, right), "list" for the window list and "range" to configure ranges of text for the mouse bindings. The "align" keyword can also be used to specify alignment of entries in tree mode and the pane status lines.
2019-03-18Merge branch 'obsd-master'Thomas Adam
2019-03-18Merge branch 'obsd-master'Thomas Adam
2019-03-18Mode init needs to be fired with the mode on the list or it will not benicm
resized correctly.
2019-03-18Add format variables for the default formats for the various modesnicm
(tree_mode_format and so on) and add a -a flag to display-message to list variables with values.
2019-03-14Merge branch 'obsd-master'Thomas Adam
2019-03-14Add a wrapper (struct style) around styles rather than using thenicm
grid_cell directly. There will be some non-cell members soon.
2019-03-12Merge branch 'obsd-master'Thomas Adam
2019-03-12Fix resizing of control clients, should be ignored until SIZECHANGED flag set.nicm
2019-03-12Merge branch 'obsd-master'Thomas Adam
2019-03-12Allow multiple modes to be open in a pane. A stack of open modes is keptnicm
and the previous restored when the top is exited. If a mode that is already on the stack is entered, the existing instance is moved to the top as the active mode rather than being opened new.
2019-03-07Merge branch 'obsd-master'Thomas Adam
2019-03-07Add a separate mode struct for the active window mode if any.nicm
2018-12-18Merge branch 'obsd-master'Thomas Adam
2018-12-18Pass window into mode functions.nicm
2018-11-30Merge branch 'obsd-master'Thomas Adam
2018-11-30Clear PANE_EXITED flag when starting new child process in case the panenicm
has been respawned.
2018-11-19Merge branch 'obsd-master'Thomas Adam
2018-11-19evbuffer_new and bufferevent_new can both fail (when malloc fails) andnicm
return NULL. GitHub issue 1547.
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.
2018-09-26Revert "Add a B flag to mark windows bigger than the client."Nicholas Marriott
This reverts commit b4e74f4310d90affd4e1a4a7328082ac4beb5461.
2018-09-25Change the B into a +.Nicholas Marriott
2018-09-25Add a B flag to mark windows bigger than the client.Nicholas Marriott
2018-09-10window_get_active_at needs to check visible also.Nicholas Marriott
2018-09-10Bring back window_pane_visible to stop input going to panes which areNicholas Marriott
hidden by zoom.
2018-08-20Support for windows larger than the client.Nicholas Marriott
This adds 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. 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). 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-width -x or -y. 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 higher memory use if you make a window that big. The minimum size is the size required for the current layout including borders. This change allows some code improvements, most notably that since windows can now never be cropped, that code can be removed from the layout code, and since panes can now never be outside the size of the window, window_pane_visible can be removed.
2018-08-05calloc the mode data instead of malloc and initialize everything.nicm
2018-08-02Merge branch 'obsd-master'Thomas Adam
2018-08-02Log command arguments.nicm
2018-05-24Merge branch 'obsd-master'Thomas Adam
2018-05-24Merge branch 'obsd-master'Thomas Adam
2018-05-24Make server_client_get_cwd used (almost) everywhere we need to work outnicm
the cwd, and do not fall back to "." as it is pretty useless. GitHub issue 1331.
2018-05-24Improve logging of the environment etc for new panes.nicm
2018-03-16Merge branch 'obsd-master'Thomas Adam
2018-03-16Insert full size panes at the right position, from KOIE Hidetaka innicm
GitHub issue 1284.
2017-11-10Merge branch 'obsd-master'Thomas Adam
2017-11-09If we successfully change the directory, set PWD too to give the shell anicm
hint in case of symlinks.
2017-10-20Merge branch 'obsd-master'Thomas Adam
Conflicts: server-fn.c
2017-10-12Show exit status and time in the remain-on-exit pane text, mostly fromnicm
Timo Boettcher in GitHub issue 1103.
2017-08-28Merge branch 'obsd-master'Thomas Adam
2017-08-28Do not forbid targets to specify non-visible panes - the checks fornicm
visibility are better where the target is used. GitHub issue 1049.
2017-07-14Merge branch 'obsd-master'Thomas Adam
2017-07-14Because ignore SIGCHLD early, letting signal_del restore it doesn't worknicm
correctly, so set it explicitly back to default (and the others for good measure).
2017-07-12Merge branch 'obsd-master'Thomas Adam
Conflicts: cmd-pipe-pane.c proc.c tmux.c window.c
2017-07-12Block signals between forking and clearing signal handlers (or callingnicm
event_reinit) - if the child gets a signal and fires the libevent signal handler during this period it could write a signal into the parent's signal pipe. GitHub issue 1001 from Aaron van Geffen.
2017-07-12Move signal code into proc.c.nicm
2017-07-03Merge branch 'obsd-master'Thomas Adam