aboutsummaryrefslogtreecommitdiff
path: root/cmd-split-window.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master' into masterThomas Adam2021-10-07
|\
| * Handle splitw -I correctly when used from an attached client, GitHubnicm2021-10-07
| | | | | | | | issue 2917.
* | Merge branch 'obsd-master' into masterThomas Adam2021-08-27
|\|
| * Replace %% in command lists (by copying them) for template arguments ,nicm2021-08-27
| | | | | | | | | | this means they can be used with {} as well. Also make argument processing from an existing vector preserve commands. GitHub issue 2858.
* | Merge branch 'obsd-master' into masterThomas Adam2021-08-21
|\|
| * Rename a member to match what it will be in future.nicm2021-08-21
| |
| * Add args parsing callback for some future work, currently unused.nicm2021-08-21
| |
* | Merge branch 'obsd-master' into masterThomas Adam2021-08-20
|\|
| * Hide struct args behind a couple of accessor functions.nicm2021-08-20
| |
| * Expose args_value struct (will be needed soon) and add some missing frees.nicm2021-08-20
| |
* | Merge branch 'obsd-master' into masterThomas Adam2021-03-11
|\|
| * Add split-window -Z to start the pane zoomed, GitHub issue 2591.nicm2021-03-11
| |
| * 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.
* | 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.
* | Merge branch 'obsd-master'Thomas Adam2020-04-14
|\|
| * Make client -c and -t handling common in cmd-queue.c and try to benicm2020-04-13
| | | | | | | | | | clearer about whether the client is the target client (must have a session) or not.
* | Merge branch 'obsd-master'Thomas Adam2020-04-13
|\|
| * Move cmdq_state into cmd-queue.c.nicm2020-04-13
| |
* | Merge branch 'obsd-master'Thomas Adam2020-04-13
|\|
| * Rename cmdq_shared to cmdq_state which will better reflect what it isnicm2020-04-13
| | | | | | | | (going to be) used for.
* | Merge branch 'obsd-master'Thomas Adam2020-04-13
|\|
| * Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make itsnicm2020-04-13
| | | | | | | | use more clearly defined and preparation for some future work).
* | Merge branch 'obsd-master'Thomas Adam2020-04-13
|\|
| * Make struct cmd local to cmd.c and move it out of tmux.h.nicm2020-04-13
| |
* | Merge branch 'obsd-master'Thomas Adam2020-03-31
|\|
| * Add a way to mark environment variables as "hidden" so they can be usednicm2020-03-31
| | | | | | | | by tmux but are not passed into the environment of new panes.
* | Merge branch 'obsd-master'Thomas Adam2020-03-16
|\|
| * Do not attempt to close a NULL pane when failing to create a new one.nicm2020-03-16
| |
* | Merge branch 'obsd-master'Thomas Adam2019-10-15
|\|
| * Add support for percentage sizes for resize-pane ("-x 10%"). Also changenicm2019-10-15
| | | | | | | | | | split-window and join-pane -l to accept similar percentages and deprecate -p. From Anindya Mukherjee.
* | 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.
* | Merge branch 'obsd-master'Thomas Adam2019-04-28
|\|
| * Support multiple occurances of the same argument. Use this for a newnicm2019-04-28
| | | | | | | | | | | | flag -e to new-window, split-window, respawn-window, respawn-pane to pass environment variables into the newly created process. From Steffen Christgau in GitHub issue 1697.
* | Merge branch 'obsd-master'Thomas Adam2019-04-27
|\|
| * Merge hooks into options and make each one an array option. This allowsnicm2019-04-26
| | | | | | | | | | | | | | multiple commands to be easily bound to one hook. set-hook and show-hooks remain but they are now variants of set-option and show-options. show-options now has a -H flag to show hooks (by default they are not shown).
| * Break new window and pane creation common code from various commands andnicm2019-04-17
| | | | | | | | window.c into a separate file spawn.c.
| * 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.
* | Break new window and pane creation common code from various commands andNicholas Marriott2019-04-07
| | | | | | | | window.c into a separate file spawn.c.
* | 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-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-03-16
|\|
| * Insert full size panes at the right position, from KOIE Hidetaka innicm2018-03-16
| | | | | | | | GitHub issue 1284.
* | Merge branch 'obsd-master'Thomas Adam2018-03-01
|\|
| * Expand formats in window and session names.nicm2018-03-01
| |
* | Merge branch 'obsd-master'Thomas Adam2017-08-30
|\|
| * Pass flags into cmd_find_from_* to fix prefer-unattached, reported bynicm2017-08-30
| | | | | | | | Thomas Sattler.
* | Merge branch 'obsd-master'Thomas Adam2017-07-21
|\|
| * Add -c for respawn-pane and respawn-window, from J Raynor.nicm2017-07-21
| |