History log of /openbsd-src/usr.bin/tmux/cmd-split-window.c (Results 26 – 50 of 115)
Revision Date Author Comments
# 8a00c84c 24-May-2018 nicm <nicm@openbsd.org>

Make server_client_get_cwd used (almost) everywhere we need to work out
the cwd, and do not fall back to "." as it is pretty useless. GitHub
issue 1331.


# e7b8083a 16-Mar-2018 nicm <nicm@openbsd.org>

Insert full size panes at the right position, from KOIE Hidetaka in
GitHub issue 1284.


# 89b49179 01-Mar-2018 nicm <nicm@openbsd.org>

Expand formats in window and session names.


# 0772530e 30-Aug-2017 nicm <nicm@openbsd.org>

Pass flags into cmd_find_from_* to fix prefer-unattached, reported by
Thomas Sattler.


# 579ab1e8 21-Jul-2017 nicm <nicm@openbsd.org>

Add -c for respawn-pane and respawn-window, from J Raynor.


# a42faf7d 30-May-2017 nicm <nicm@openbsd.org>

Rewrite of choose mode, both to simplify and tidy the code and to add
some modern features.

Now the common code is in mode-tree.c, which provides an API used by the
three modes now separated into wi

Rewrite of choose mode, both to simplify and tidy the code and to add
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.

show more ...


# ff7b5ef0 25-Apr-2017 nicm <nicm@openbsd.org>

Do not update TERM into config file parsing has finished.


# bf0d297e 22-Apr-2017 nicm <nicm@openbsd.org>

Get rid of the extra layer of flags and cmd_prepare() and just store the
CMD_FIND_* flags in the cmd_entry and call it for the command. Commands
with special requirements call it themselves and updat

Get rid of the extra layer of flags and cmd_prepare() and just store the
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.

show more ...


# 0e2c9d0f 22-Apr-2017 nicm <nicm@openbsd.org>

Mouse bindings and hooks set up an initial current state when running a
command. This is used for the session, window and pane for all commands
in the command sequence if there is no -t or -s.

Howev

Mouse bindings and hooks set up an initial current state when running a
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.

show more ...


# 1adc95eb 21-Apr-2017 nicm <nicm@openbsd.org>

Add cmd_find_from_winlink_pane and use it in a couple of places, and
make functions that can't fail void.


# 720ef0b5 09-Mar-2017 nicm <nicm@openbsd.org>

Move server_fill_environ into environ.c and move some other common code
into it.


# e35be1bb 08-Mar-2017 nicm <nicm@openbsd.org>

Add a helper function for the most common format_create/defaults/expand
pattern.


# f241812a 27-Feb-2017 nicm <nicm@openbsd.org>

If splitw -b is used, insert the new pane before the current one in the
pane list. This means the numbering is in order (for example for
display-panes) and fixes a problem with redrawing the active p

If splitw -b is used, insert the new pane before the current one in the
pane list. This means the numbering is in order (for example for
display-panes) and fixes a problem with redrawing the active pane
borders.

show more ...


# 134e9c11 03-Feb-2017 nicm <nicm@openbsd.org>

Add a window or pane id "tag" to each format tree and use it to separate
jobs, this means that if the same job is used for different windows or
panes (for example in pane-border-format), it will be r

Add a window or pane id "tag" to each format tree and use it to separate
jobs, this means that if the same job is used for different windows or
panes (for example in pane-border-format), it will be run separately for
each pane.

show more ...


# 2ae124fe 16-Oct-2016 nicm <nicm@openbsd.org>

Use the notify name string instead of going via an enum and change
existing hooks to use notifys instead.


# 68e0a7f2 16-Oct-2016 nicm <nicm@openbsd.org>

Mass rename struct cmd_q to struct cmdq_item and related.


# 765b9a58 16-Oct-2016 nicm <nicm@openbsd.org>

Rewrite command queue handling. Each client still has a command queue,
but there is also now a global command queue. Instead of command queues
being dispatched on demand from wherever the command hap

Rewrite command queue handling. Each client still has a command queue,
but there is also now a global command queue. Instead of command queues
being dispatched on demand from wherever the command happens to be
added, they are now all dispatched from the top level server
loop. Command queues may now also include callbacks as well as commands,
and items may be inserted after the current command as well as at the end.

This all makes command queues significantly more predictable and easier
to use, and avoids the complex multiple nested command queues used by
source-file, if-shell and friends.

A mass rename of struct cmdq to a better name (cmdq_item probably) is
coming.

show more ...


# 45436ca5 13-Oct-2016 nicm <nicm@openbsd.org>

Trying to do hooks generically is way too complicated and unreliable and
confusing, particularly trying to automatically figure out what target
hooks should be using. So simplify it:

- drop before h

Trying to do hooks generically is way too complicated and unreliable and
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.

show more ...


# 788e192f 13-Oct-2016 nicm <nicm@openbsd.org>

Some improvements and bug fixes for hooks:

- 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 pr

Some improvements and bug fixes for hooks:

- 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.

show more ...


# dc1f0f5f 10-Oct-2016 nicm <nicm@openbsd.org>

Add static in cmd-* and fix a few other nits.


# 824e896b 04-Sep-2016 nicm <nicm@openbsd.org>

Add support for performing a full width split (with splitw -f), rather
than splitting the current cell. From Stephen Kent.


# 48af06c9 06-Jun-2016 nicm <nicm@openbsd.org>

Insert new panes after the pane being split in the list rather than
always after the active pane. This is more sensible when doing it with
commands rather than keys.


# 98ca8272 19-Jan-2016 nicm <nicm@openbsd.org>

I no longer use my SourceForge address so replace it.


# 8d471e80 14-Dec-2015 nicm <nicm@openbsd.org>

Instead of combined flags for -c, -s, -t, split into different sets
using an enum and simplify the parsing code.


# c057646b 13-Dec-2015 nicm <nicm@openbsd.org>

Use member names in cmd_entry definitions so I stop getting confused
about the order.


12345