aboutsummaryrefslogtreecommitdiff
path: root/cmd-join-pane.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master' into masterThomas Adam2021-08-21
|\
| * Add args parsing callback for some future work, currently unused.nicm2021-08-21
| |
* | Merge branch 'obsd-master' into masterThomas Adam2021-03-11
|\|
| * Add split-window -Z to start the pane zoomed, GitHub issue 2591.nicm2021-03-11
| |
* | Merge branch 'obsd-master' into masterThomas Adam2021-01-06
|\|
| * Insert joined pane before the target pane with -b, like for split. Fromnicm2021-01-06
| | | | | | | | Takeshi Banse.
* | 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.
* | 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-23
|\|
| * Improve join-pane, move-pane and break-pane:nicm2020-04-22
| | | | | | | | | | | | | | | | | | | | | | - There is no need for join-pane and move-pane to be different. - break-pane can just behave like move-window if the source has only one pane, instead of failing. - Add -a to break-pane like move-window. Also add missing man page bits for previous window-tree.c changes. GitHub issue 2176.
* | 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-21
|\|
| * Break code to convert an argument as a percentage into a common function.nicm2020-03-21
| |
* | Merge branch 'obsd-master'Thomas Adam2020-01-02
|\|
| * Add CMD_FIND_DEFAULT_MARKED to join-pane like move-pane, fromnicm2020-01-02
| | | | | | | | davidegirardi in GitHub issue 2046.
* | Merge branch 'obsd-master'Thomas Adam2019-11-18
|\|
| * Add -f for full size to join-pane (like split-window), from Theo Buehler.nicm2019-11-18
| |
* | 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-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.
| * 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 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-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 Adam2016-10-17
|\|
| * Use the notify name string instead of going via an enum and changenicm2016-10-16
| | | | | | | | existing hooks to use notifys instead.
* | Merge branch 'obsd-master'Thomas Adam2016-10-16
|\|
| * Mass rename struct cmd_q to struct cmdq_item and related.nicm2016-10-16
| |
* | Merge branch 'obsd-master'Thomas Adam2016-10-14
|\|
| * Trying to do hooks generically is way too complicated and unreliable andnicm2016-10-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | confusing, particularly trying to automatically figure out what target hooks should be using. So simplify it: - drop before hooks entirely, they don't seem to be very useful; - commands with special requirements now fire their own after hook (for example, if they change session or window, or if they have -t and -s and need to choose which one the hook uses as current target); - commands with no special requirements can have the CMD_AFTERHOOK flag added and they will use the -t state. At the moment new-session, new-window, split-window fire their own hook, and display-message uses the flag. The remaining commands still need to be looked at.
* | Merge branch 'obsd-master'Thomas Adam2016-10-13
|\|
| * Some improvements and bug fixes for hooks:nicm2016-10-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Prepare the state again before the "after" hooks are run, because the command may have killed or moved windows. - Use the hooks list from the newly prepared target, not the old hooks list (only matters for new-session really). - Correctly detect an invalid current state and ignore it in cmd_find_target ("killw; swapw"). - Change neww, new, killp, killw, splitw, swapp, swapw to update the current state (used if no explicit target is given) to something more useful after they have finished. For example, neww changes it to the newly created window. Hooks are still relatively new and primitive so there are likely to be more changes to come. Parts based on bug reports from Uwe Werler and Iblis Lin.
* | Merge branch 'obsd-master'Thomas Adam2016-10-12
|\| | | | | | | | | | | Conflicts: format.c osdep-openbsd.c
| * Add static in cmd-* and fix a few other nits.nicm2016-10-10
| |
* | Merge branch 'obsd-master'Thomas Adam2016-09-04
|\|
| * Add support for performing a full width split (with splitw -f), rathernicm2016-09-04
| | | | | | | | than splitting the current cell. From Stephen Kent.
* | Merge branch 'obsd-master'Thomas Adam2016-08-28
|\|