aboutsummaryrefslogtreecommitdiff
path: root/cmd-split-window.c
Commit message (Collapse)AuthorAge
* 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
| |
* | Merge branch 'obsd-master'Thomas Adam2017-05-31
|\| | | | | | | | | | | | | Conflicts: Makefile.am cfg.c server-client.c
| * Rewrite of choose mode, both to simplify and tidy the code and to addnicm2017-05-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | some modern features. Now the common code is in mode-tree.c, which provides an API used by the three modes now separated into window-{buffer,client,tree}.c. Buffer mode shows buffers, client mode clients and tree mode a tree of sessions, windows and panes. Each mode has a common set of key bindings plus a few that are specific to the mode. Other changes are: - each mode has a preview pane: for buffers this is the buffer content (very useful), for others it is a preview of the pane; - items may be sorted in different ways ('O' key); - multiple items may be tagged and an operation applied to all of them (for example, to delete multiple buffers at once); - in tree mode a command may be run on the selected item (session, window, pane) or on tagged items (key ':'); - displayed items may be filtered in tree mode by using a format (this is used to implement find-window) (key 'f'); - the custom format (-F) for the display is no longer available; - shortcut keys change from 0-9, a-z, A-Z which was always a bit weird with keys used for other uses to 0-9, M-a to M-z. Now that the code is simpler, other improvements will come later. Primary key bindings for each mode are documented under the commands in the man page (choose-buffer, choose-client, choose-tree). Parts written by Thomas Adam.
* | Merge branch 'obsd-master'Thomas Adam2017-04-25
|\|
| * Do not update TERM into config file parsing has finished.nicm2017-04-25
| |
* | Merge branch 'obsd-master'Thomas Adam2017-04-22
|\|
| * Get rid of the extra layer of flags and cmd_prepare() and just store thenicm2017-04-22
| | | | | | | | | | | | CMD_FIND_* flags in the cmd_entry and call it for the command. Commands with special requirements call it themselves and update the target for hooks to use.
| * Mouse bindings and hooks set up an initial current state when running anicm2017-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | command. This is used for the session, window and pane for all commands in the command sequence if there is no -t or -s. However, using it for all commands in the command sequence means that if the active pane or current session is changed, subsequent commands still use the previous state. So make commands which explicitly change the current state (such as neww and selectp) update it themselves for later commands. Commands which may invalidate the state (like killp) are already OK because an invalid state will be ignored. Also fill in the current state for all key bindings rather than just the mouse, so that any omissions are easier to spot.
* | Merge branch 'obsd-master'Thomas Adam2017-04-21
|\|
| * Add cmd_find_from_winlink_pane and use it in a couple of places, andnicm2017-04-21
| | | | | | | | make functions that can't fail void.
* | Merge branch 'obsd-master'Thomas Adam2017-03-09
|\|
| * Move server_fill_environ into environ.c and move some other common codenicm2017-03-09
| | | | | | | | into it.
* | Merge branch 'obsd-master'Thomas Adam2017-03-08
|\|
| * Add a helper function for the most common format_create/defaults/expandnicm2017-03-08
| | | | | | | | pattern.