aboutsummaryrefslogtreecommitdiff
path: root/server-fn.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master' into masterThomas Adam2021-08-17
|\
| * Set the right session if detach-on-destroy is off.nicm2021-08-17
| |
* | Merge branch 'obsd-master' into masterThomas Adam2021-08-14
|\|
| * Change focus to be driven by events rather than walking all panes at endnicm2021-08-13
| | | | | | | | | | of event loop, this way the ordering of in and out can be enforced. GitHub issue 2808.
* | Merge branch 'obsd-master' into masterThomas Adam2021-02-01
|\|
| * Add a no-detached choice to detach-on-destroy which detaches only ifnicm2021-02-01
| | | | | | | | | | there are no other detached sessions to switch to, from Sencer Selcuk in GitHub issue 2553.
* | Merge branch 'obsd-master' into masterThomas Adam2021-01-04
|\|
| * Add a variant of remain-on-exit that only keeps the pane if the programnicm2021-01-04
| | | | | | | | failed, GitHub issue 2513.
* | Merge branch 'obsd-master'Thomas Adam2020-07-30
|\|
| * Trim newline from ctime, from Thomas Adam.nicm2020-07-30
| |
* | Merge branch 'obsd-master'Thomas Adam2020-07-04
|\|
| * kill-window -a cannot just walk the list of windows because ifnicm2020-07-04
| | | | | | | | | | | | renumber-windows is on, the window it wants to keep could be moved. Change to renumber afterwards and also behave better if the window is linked into the session twice. GitHub issue 2287.
| * Add a client flag 'active-pane' which stores the active pane in thenicm2020-05-16
| | | | | | | | | | | | | | | | | | client and allows it to be changed independently from the real active pane stored in the window. This is can be used with session groups which allow an independent current window (although it would be nice to have a flag for this too and remove session groups). The client active pane is only really useful interactively, many things (hooks, window-style, zooming) still use the window active pane.
| * Do not hoke into struct window_pane from the tty code and instead setnicm2020-05-16
| | | | | | | | | | | | | | everything up in tty_ctx. Provide a way to initialize the tty_ctx from a callback and use it to let popups draw directly through input_parse in the same way as panes do, rather than forcing a full redraw on every change.
* | Add a client flag 'active-pane' which stores the active pane in the client andNicholas Marriott2020-05-14
| | | | | | | | | | | | | | | | | | allows it to be changed independently from the real active pane stored in the window. This is can be used with session groups which allow an independent current window (although it would be nice to have a flag for this too and remove session groups). The client active pane is only really useful interactively, many things (hooks, window-style, zooming) still use the window active pane.
* | Do not hoke into struct window_pane from the tty code and instead setNicholas Marriott2020-05-01
| | | | | | | | | | | | everything up in tty_ctx. Provide a way to initialize the tty_ctx from a callback and use it to let popups draw directly through input_parse in the same way as panes do, rather than forcing a full redraw on every change.
* | Merge branch 'obsd-master'Thomas Adam2020-04-16
|\|
| * Show signal name when process exits rather than number.nicm2020-04-16
| |
* | Merge branch 'obsd-master'Thomas Adam2019-12-12
|\|
| * Rewrite the code for reading and writing files. Now, if the client isnicm2019-12-12
| | | | | | | | | | | | | | | | | | not attached, the server process asks it to open the file, similar to how works for stdin, stdout, stderr. This makes special files like /dev/fd/X work (used by some shells). stdin, stdout and stderr and control mode are now just special cases of the same mechanism. This will also make it easier to use for other commands that read files such as source-file.
* | Merge branch 'obsd-master'Thomas Adam2019-06-20
|\|
| * Add a per-pane option set. Pane options inherit from window options (sonicm2019-06-20
| | | | | | | | | | | | | | | | | | | | | | | | there should be no change to existing behaviour) and are set and shown with set-option -p and show-options -p. Change remain-on-exit and window-style/window-active-style to be pane options (some others will be changed later). This makes select-pane -P and -g unnecessary so no longer document them (they still work) and no longer document set-window-option and show-window-options in favour of set-option -w and show-options -w.
* | Merge branch 'obsd-master'Thomas Adam2019-05-03
|\|
| * Allow panes to be empty (no command), output can be piped to them withnicm2019-05-03
| | | | | | | | split-window or display-message -I.
| * 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-12
|\|
| * DECRC and DECSC apparently need to preserve origin mode as well, basednicm2019-03-12
| | | | | | | | on a fix from Marc Reisner.
* | 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.
| * 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.
* | 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-19
|\|
| * Add a client redraw-window flag instead of the redraw-all flag and fornicm2018-08-19
| | | | | | | | all just use the three flags together (window, borders, status).
* | Merge branch 'obsd-master'Thomas Adam2018-08-18
|\|
| * SESSION_UNATTACHED flag is no longer necessary now we have an attachednicm2018-08-18
| | | | | | | | count instead.
* | Merge branch 'obsd-master'Thomas Adam2018-04-10
|\|
| * Add x and X to choose-tree (with a confirmation prompt) to kill annicm2018-04-10
| | | | | | | | item. Suggested by Matt Zagrabelny.
* | Merge branch 'obsd-master'Thomas Adam2018-02-28
|\|
| * Add -Z flag to choose-tree, choose-client, choose-buffer tonicm2018-02-28
| | | | | | | | | | | | automatically zoom the pane when the mode is entered and unzoom when it exits, assuming the pane is not already zoomed. Add -Z to the default key bindings.
* | Need compat for queue.h.Nicholas Marriott2017-10-20
| |
* | 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-29
|\|
| * Check for complete keys before escape prefix, allows keys to be definednicm2017-08-29
| | | | | | | | with a leading escape. GitHub issue 1048.
* | Merge branch 'obsd-master'Thomas Adam2017-07-12
|\| | | | | | | | | | | | | | | Conflicts: cmd-pipe-pane.c proc.c tmux.c window.c
| * proc_send_s now seems unnecessary.nicm2017-07-12
| |
* | Merge branch 'obsd-master'Thomas Adam2017-07-10
|\|
| * Some extra logging to show why tmux might exit.nicm2017-07-09
| |
* | Merge branch 'obsd-master'Thomas Adam2017-05-12
|\|