aboutsummaryrefslogtreecommitdiff
path: root/cmd-split-window.c
Commit message (Collapse)AuthorAge
...
* Sync OpenBSD patchset 600:Tiago Cunha2010-01-08
| | | | | | Change split-window to accept a pane target (it should be split-pane but renaming the command would be annoying).
* Sync OpenBSD patchset 581:Tiago Cunha2009-12-04
| | | | | | | Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
* Sync OpenBSD patchset 558:Tiago Cunha2009-11-22
| | | | | | When -h and -p are given to split-window, calculate the percentage size using the width instead of the height.
* Sync OpenBSD patchset 539:Tiago Cunha2009-11-14
| | | | | | Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the command entry structs and a couple of functions to check/set the flags.
* Sync OpenBSD patchset 342:Tiago Cunha2009-09-22
| | | | | Use KEYC_NONE constant instead of 0 on init.
* Sync from OpenBSD:Nicholas Marriott2009-09-16
| | | | | | | | | | | == Rather than constructing an entire termios struct from ttydefaults.h, just let forkpty do it and then alter the bits that should be changed after fork. A little neater and more portable. == This should fix problems caused by glibc's broken ttydefaults.h file.
* Adjust OpenBSD patchset 305 to the portable version.Tiago Cunha2009-09-02
|
* Sync OpenBSD patchset 305:Tiago Cunha2009-09-02
| | | | | | | | | | | | | | When using tmux as a login shell, there is currently no way to specify a shell to be used as a login shell inside tmux, so add a default-shell session option. This sets the shell invoked as a login shell when the default-command option is empty. The default option value is whichever of $SHELL, getpwuid(getuid())'s pw_shell or /bin/sh is valid first. Based on a diff from martynas@, changed by me to be a session option rather than a window option.
* Sync OpenBSD patchset 296:Tiago Cunha2009-08-25
| | | | | Print -l and -p when showing command, pointed out by Tiago Cunha.
* Sync OpenBSD patchset 254:Tiago Cunha2009-08-16
| | | | | | | When creating a new session from the command-line where there is an external terminal, copy the termios(4) special characters and use them for new windows created in the new session. Suggested by Theo.
* Sync OpenBSD patchset 231:Tiago Cunha2009-08-09
| | | | | | | | | | | | | | | | | Infrastructure and commands to manage the environment for processes started within tmux. There is a global environment, copied from the external environment when the server is started and each session has an (initially empty) session environment which overrides it. New commands set-environment and show-environment manipulate or display the environments. A new session option, update-environment, is a space-separated list of variables which are updated from the external environment into the session environment every time a new session is created - the default is DISPLAY.
* Sync OpenBSD patchset 181:Tiago Cunha2009-07-28
| | | | | | | | | | | | | | | | | Make all messages sent between the client and server fixed size. This is the first of two changes to make the protocol more resilient and less sensitive to other changes in the code, particularly with commands. The client now packs argv into a buffer and sends it to the server for parsing, rather than doing it itself and sending the parsed command data. As a side-effect this also removes a lot of now-unused command marshalling code. Mixing a server without this change and a client with or vice versa will cause tmux to hang or crash, please ensure that tmux is entirely killed before upgrading.
* Sync OpenBSD patchset 165:Tiago Cunha2009-07-23
| | | | | | window_add_pane cannot fail, so remove the unused cause argument and don't bother to check for a NULL return.
* Sync OpenBSD patchset 142:Tiago Cunha2009-07-20
| | | | | | | | | | | | | | | | | | | | | | | | Each window now has a tree of layout cells associated with it. In this tree, each node is either a horizontal or vertical cell containing a list of other cells running from left-to-right or top-to-bottom, or a leaf cell which is associated with a pane. The major functional changes are: - panes may now be split arbitrarily both horizontally (splitw -h, C-b %) and vertically (splitw -v, C-b "); - panes may be resized both horizontally and vertically (resizep -L/-R/-U/-D, bound to C-b left/right/up/down and C-b M-left/right/up/down); - layouts are now applied and then may be modified by resizing or splitting panes, rather than being fixed and reapplied when the window is resized or panes are added; - manual-vertical layout is no longer necessary, and active-only layout is gone (but may return in future); - the main-pane layouts now reduce the size of the main pane to fit all panes if possible. Thanks to all who tested.
* Having fixed flags for single-character getopt options is a bit hard toNicholas Marriott2009-07-14
| | | | | | | | | | maintain and is only going to get worse as more are used. So instead, add a new uint64_t member to cmd_entry which is a bitmask of upper and lowercase options accepted by the command. This means new single character options can be used without the need to add it explicitly to the list.
* Fix $Id$.Nicholas Marriott2009-07-08
|
* The fix for default-path (use target session options instead of global options)Nicholas Marriott2009-07-08
| | | | | is required here as well, doh.
* Restore $Id$ and add script to do so.Nicholas Marriott2009-06-25
|
* lines variable can be -1 (to be ignored), so should be signed. Found by lint.Nicholas Marriott2009-06-25
|
* Space trimmage mega-diff.Nicholas Marriott2009-05-04
|
* rotate-window command.Nicholas Marriott2009-04-03
|
* - Allow switching to hidden windows (for active-only layout).Nicholas Marriott2009-04-01
| | | | | - Don't update unnecessarily for other layouts when changing active pane doesn't matter.
* Basic horizontal splitting and layout management. Still some redraw and otherNicholas Marriott2009-04-01
| | | | | | | | | | | issues - particularly, don't mix with manual pane resizing and be careful when viewing from multiple clients; generally cycling the layout a few times will fix most problems. Getting this in for testing while I think about how to deal with manual mode. Split window as normal and cycle the layouts with C-b space. Some of the layouts will work better when swap-pane comes along.
* Put socket path in $TMUX.Nicholas Marriott2009-03-04
|
* Better error messages for fork.Nicholas Marriott2009-01-23
|
* Bring back -p and -l to splitw to specify height as % or nlines.Nicholas Marriott2009-01-21
|
* Pass return code from _exec; allow command sequences to work from the ↵Nicholas Marriott2009-01-19
| | | | command line.
* Support command sequences separated by " ; ". Also clean up command printing.Nicholas Marriott2009-01-18
|
* Multiple window splitting.Nicholas Marriott2009-01-14
|
* Make the window pane code handle panes of different sizes, and add a -l and ↵Nicholas Marriott2009-01-12
| | | | -p arguments to split-window to specify the new window size in lines or as a percentage.
* Codes no longer needed.Nicholas Marriott2009-01-11
|
* Window splitting. Two vertical panes fixed 50% each. This is a huge diff, ↵Nicholas Marriott2009-01-11
still a couple of bugs (notably heap corruption somewhere causing segfault on exit).