summaryrefslogtreecommitdiffstats
path: root/cmd-split-window.c
AgeCommit message (Collapse)Author
2010-07-02Sync OpenBSD patchset 730:Tiago Cunha
Store the current working directory in the session, change the default-path option to default to empty and make that mean that the stored session CWD is used.
2010-01-08Sync OpenBSD patchset 604:Tiago Cunha
New command, join-pane, to split and move an existing pane into the space (like splitw then movep, or the reverse of breakp).
2010-01-08Sync OpenBSD patchset 601:Tiago Cunha
Use the specified pane for size calculations. Doh.
2010-01-08Sync OpenBSD patchset 600:Tiago Cunha
Change split-window to accept a pane target (it should be split-pane but renaming the command would be annoying).
2009-12-04Sync OpenBSD patchset 581:Tiago Cunha
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...
2009-11-22Sync OpenBSD patchset 558:Tiago Cunha
When -h and -p are given to split-window, calculate the percentage size using the width instead of the height.
2009-11-14Sync OpenBSD patchset 539:Tiago Cunha
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.
2009-09-22Sync OpenBSD patchset 342:Tiago Cunha
Use KEYC_NONE constant instead of 0 on init.
2009-09-16Sync from OpenBSD:Nicholas Marriott
== 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.
2009-09-02Adjust OpenBSD patchset 305 to the portable version.Tiago Cunha
2009-09-02Sync OpenBSD patchset 305:Tiago Cunha
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.
2009-08-25Sync OpenBSD patchset 296:Tiago Cunha
Print -l and -p when showing command, pointed out by Tiago Cunha.
2009-08-16Sync OpenBSD patchset 254:Tiago Cunha
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.
2009-08-09Sync OpenBSD patchset 231:Tiago Cunha
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.
2009-07-28Sync OpenBSD patchset 181:Tiago Cunha
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.
2009-07-23Sync OpenBSD patchset 165:Tiago Cunha
window_add_pane cannot fail, so remove the unused cause argument and don't bother to check for a NULL return.
2009-07-20Sync OpenBSD patchset 142:Tiago Cunha
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.
2009-07-14Having fixed flags for single-character getopt options is a bit hard toNicholas Marriott
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.
2009-07-08Fix $Id$.Nicholas Marriott
2009-07-08The fix for default-path (use target session options instead of global options)Nicholas Marriott
is required here as well, doh.
2009-06-25Restore $Id$ and add script to do so.Nicholas Marriott
2009-06-25lines variable can be -1 (to be ignored), so should be signed. Found by lint.Nicholas Marriott
2009-05-04Space trimmage mega-diff.Nicholas Marriott
2009-04-03rotate-window command.Nicholas Marriott
2009-04-01- Allow switching to hidden windows (for active-only layout).Nicholas Marriott
- Don't update unnecessarily for other layouts when changing active pane doesn't matter.
2009-04-01Basic horizontal splitting and layout management. Still some redraw and otherNicholas Marriott
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.
2009-03-04Put socket path in $TMUX.Nicholas Marriott
2009-01-23Better error messages for fork.Nicholas Marriott
2009-01-21Bring back -p and -l to splitw to specify height as % or nlines.Nicholas Marriott
2009-01-19Pass return code from _exec; allow command sequences to work from the ↵Nicholas Marriott
command line.
2009-01-18Support command sequences separated by " ; ". Also clean up command printing.Nicholas Marriott
2009-01-14Multiple window splitting.Nicholas Marriott
2009-01-12Make the window pane code handle panes of different sizes, and add a -l and ↵Nicholas Marriott
-p arguments to split-window to specify the new window size in lines or as a percentage.
2009-01-11Codes no longer needed.Nicholas Marriott
2009-01-11Window splitting. Two vertical panes fixed 50% each. This is a huge diff, ↵Nicholas Marriott
still a couple of bugs (notably heap corruption somewhere causing segfault on exit).