aboutsummaryrefslogtreecommitdiff
path: root/format.c
Commit message (Collapse)AuthorAge
...
| * Make adding mode formats a function pointer as well.nicm2019-03-07
| |
* | 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.
* | Merge branch 'obsd-master'Thomas Adam2018-09-27
|\|
| * Use same working directory rules for jobs as new windows rather thannicm2018-09-27
| | | | | | | | always starting in home, GitHub issue 1488.
* | Add formats for when window is larger than client, and show offset inNicholas Marriott2018-09-26
| | | | | | | | status-right by default when larger.
* | More of revert.Nicholas Marriott2018-09-26
| |
* | window_printable_flags needs an additional argument.Nicholas Marriott2018-09-25
| |
* | Merge branch 'obsd-master'Thomas Adam2018-08-27
|\|
| * Memory leaks, from Gang Fan in GitHub issue 1453.nicm2018-08-27
| |
* | Merge branch 'obsd-master'Thomas Adam2018-08-26
|\|
| * Add q: format prefix to escape sh(1) special characters. Suggested bynicm2018-08-26
| | | | | | | | someone ages ago and then more recently in GitHub issue 1449.
* | Merge branch 'obsd-master'Thomas Adam2018-08-23
|\|
| * Move job struct into job.c.nicm2018-08-23
| |
* | 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-18
|\|
| * Some tidying and helper functions.nicm2018-08-18
| |
* | Merge branch 'obsd-master'Thomas Adam2018-07-04
|\|
| * Add accessors for grid linedata member, for some future work. From Dannicm2018-07-04
| | | | | | | | Aloni.
* | Merge branch 'obsd-master'Thomas Adam2018-06-27
|\|
| * Allow any punctuation (except :) as separator in s/x/y/, not onlynicm2018-06-27
| | | | | | | | /. From JINNOUCHI Yasushi in GitHub issue 1386.
* | Merge branch 'obsd-master'Thomas Adam2018-05-29
|\|
| * If foo doesn't exist and can't be expanded in #{?foo,a,b} then assume itnicm2018-05-29
| | | | | | | | is false.
* | Merge branch 'obsd-master'Thomas Adam2018-05-22
|\|
| * Allow escaping , and } with # in #{}; GitHub issue 1332.nicm2018-05-22
| |
* | Merge branch 'obsd-master'Thomas Adam2018-04-18
|\|
| * Change how display-message uses the client. Originally it was onlynicm2018-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | intended as the target client where the message should be displayed but at some point (perhaps when -p was added), it was used for format expansion too. This means it can get a bit weird where you have client formats expanding for a client with a different current session than the target session. However, it is nice that display-message can be used to show information about a specific client. So change so that the -c client will be used if the session matches the target session (-t or default), otherwise the best client will be chosen.
* | Merge branch 'obsd-master'Thomas Adam2018-03-08
|\|
| * Add a missing client-detached hook when the server shuts down, and donicm2018-03-08
| | | | | | | | | | not exit until jobs started from run-shell/if-shell have finished (add a job flags member and a flag to indicate other jobs). GitHub issue 1245.
* | Merge branch 'obsd-master'Thomas Adam2018-02-20
|\|
| * Do not leak memory when working out job name in formats.nicm2018-02-20
| |
* | Merge branch 'obsd-master'Thomas Adam2018-01-18
|\|
| * Discard all but the last line when reading from a #() command - thenicm2018-01-18
| | | | | | | | | | callback is just going to be fired again straight away to go through all the lines, it is better just to use the last one straight away.
* | Merge branch 'obsd-master'Thomas Adam2017-11-02
|\|
| * Format for group list of "other sessions" is a bit weird, just list allnicm2017-11-02
| | | | | | | | the sessions in the group.
| * Tweak previous slightly so that current session is chosen if it is innicm2017-11-02
| | | | | | | | the group rather than first.
| * Only show the first member of session groups in tree mode (-G flagnicm2017-11-02
| | | | | | | | disables).
* | 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-09
|\| | | | | | | | | Conflicts: tmux.1
| * Add -F to choose-tree, choose-client, choose-buffer to specify thenicm2017-08-09
| | | | | | | | | | format of each line, as well as adding a couple of formats needed for the default display.
* | Merge branch 'obsd-master'Thomas Adam2017-08-02
|\|
| * Add selection_present format so commands in copy mode can use it, GitHubnicm2017-08-02
| | | | | | | | issue 1028.
* | Merge branch 'obsd-master'Thomas Adam2017-07-27
|\|
| * Add pane_at_left/right/top/bottom formats, from Amos Bird.nicm2017-07-27
| |
* | Merge branch 'obsd-master'Thomas Adam2017-07-07
|\|
| * Add a pane_pipe format to show if pipe-pane is active, GitHub issue 990.nicm2017-07-07
| |
* | Merge branch 'obsd-master'Thomas Adam2017-06-01
|\| | | | | | | | | Conflicts: window-buffer.c
| * Style and spacing nits.nicm2017-05-31
| |