aboutsummaryrefslogtreecommitdiff
path: root/window.c
Commit message (Collapse)AuthorAge
...
| * Break new window and pane creation common code from various commands andnicm2019-04-17
| | | | | | | | window.c into a separate file spawn.c.
* | Break new window and pane creation common code from various commands andNicholas Marriott2019-04-07
| | | | | | | | window.c into a separate file spawn.c.
* | Merge branch 'obsd-master'Thomas Adam2019-03-19
|\|
| * Free temporary screens when writing format.nicm2019-03-18
| |
* | Merge branch 'obsd-master'Thomas Adam2019-03-18
|\|
| * Extend the #[] style syntax and use that together with previous formatnicm2019-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'obsd-master'Thomas Adam2019-03-18
|\|
| * Mode init needs to be fired with the mode on the list or it will not benicm2019-03-18
| | | | | | | | resized correctly.
* | Merge branch 'obsd-master'Thomas Adam2019-03-18
|\|
| * Add format variables for the default formats for the various modesnicm2019-03-18
| | | | | | | | | | (tree_mode_format and so on) and add a -a flag to display-message to list variables with values.
* | Merge branch 'obsd-master'Thomas Adam2019-03-14
|\|
| * Add a wrapper (struct style) around styles rather than using thenicm2019-03-14
| | | | | | | | grid_cell directly. There will be some non-cell members soon.
* | Merge branch 'obsd-master'Thomas Adam2019-03-12
|\|
| * Fix resizing of control clients, should be ignored until SIZECHANGED flag set.nicm2019-03-12
| |
* | Merge branch 'obsd-master'Thomas Adam2019-03-12
|\|
| * Allow multiple modes to be open in a pane. A stack of open modes is keptnicm2019-03-12
| | | | | | | | | | | | 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.
* | Merge branch 'obsd-master'Thomas Adam2019-03-07
|\|
| * Add a separate mode struct for the active window mode if any.nicm2019-03-07
| |
* | Merge branch 'obsd-master'Thomas Adam2018-12-18
|\|
| * Pass window into mode functions.nicm2018-12-18
| |
* | Merge branch 'obsd-master'Thomas Adam2018-11-30
|\|
| * Clear PANE_EXITED flag when starting new child process in case the panenicm2018-11-30
| | | | | | | | has been respawned.
* | Merge branch 'obsd-master'Thomas Adam2018-11-19
|\|
| * evbuffer_new and bufferevent_new can both fail (when malloc fails) andnicm2018-11-19
| | | | | | | | return NULL. GitHub issue 1547.
| * 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.
| * calloc the mode data instead of malloc and initialize everything.nicm2018-08-05
| |
* | Revert "Add a B flag to mark windows bigger than the client."Nicholas Marriott2018-09-26
| | | | | | | | This reverts commit b4e74f4310d90affd4e1a4a7328082ac4beb5461.
* | Change the B into a +.Nicholas Marriott2018-09-25
| |
* | Add a B flag to mark windows bigger than the client.Nicholas Marriott2018-09-25
| |
* | window_get_active_at needs to check visible also.Nicholas Marriott2018-09-10
| |
* | Bring back window_pane_visible to stop input going to panes which areNicholas Marriott2018-09-10
| | | | | | | | hidden by zoom.
* | Support for windows larger than the client.Nicholas Marriott2018-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'obsd-master'Thomas Adam2018-08-02
|\|
| * Log command arguments.nicm2018-08-02
| |
* | Merge branch 'obsd-master'Thomas Adam2018-05-24
|\|
| * Make server_client_get_cwd used (almost) everywhere we need to work outnicm2018-05-24
| | | | | | | | | | the cwd, and do not fall back to "." as it is pretty useless. GitHub issue 1331.
* | Merge branch 'obsd-master'Thomas Adam2018-05-24
|\|
| * Improve logging of the environment etc for new panes.nicm2018-05-24
| |
* | Merge branch 'obsd-master'Thomas Adam2018-03-16
|\|
| * Insert full size panes at the right position, from KOIE Hidetaka innicm2018-03-16
| | | | | | | | GitHub issue 1284.
* | Merge branch 'obsd-master'Thomas Adam2017-11-10
|\|
| * If we successfully change the directory, set PWD too to give the shell anicm2017-11-09
| | | | | | | | hint in case of symlinks.
* | Merge branch 'obsd-master'Thomas Adam2017-10-20
|\| | | | | | | | | Conflicts: server-fn.c
| * Show exit status and time in the remain-on-exit pane text, mostly fromnicm2017-10-12
| | | | | | | | Timo Boettcher in GitHub issue 1103.
* | Merge branch 'obsd-master'Thomas Adam2017-08-28
|\|
| * Do not forbid targets to specify non-visible panes - the checks fornicm2017-08-28
| | | | | | | | visibility are better where the target is used. GitHub issue 1049.
* | Merge branch 'obsd-master'Thomas Adam2017-07-14
|\|
| * Because ignore SIGCHLD early, letting signal_del restore it doesn't worknicm2017-07-14
| | | | | | | | | | correctly, so set it explicitly back to default (and the others for good measure).
* | Merge branch 'obsd-master'Thomas Adam2017-07-12
|\| | | | | | | | | | | | | | | Conflicts: cmd-pipe-pane.c proc.c tmux.c window.c
| * Block signals between forking and clearing signal handlers (or callingnicm2017-07-12
| | | | | | | | | | | | 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.