aboutsummaryrefslogtreecommitdiff
path: root/cmd.c
Commit message (Collapse)AuthorAge
* Sync OpenBSD patchset 1135:Tiago Cunha2012-06-18
| | | | | | Do not crash when the current session has no window, fixes a bug reported by Giorgio Lando. Fix from Thomas Adam.
* Sync OpenBSD patchset 1099:Tiago Cunha2012-04-24
| | | | | Do not return a buffer on the stack, mentioned by jsg a while ago.
* Sync OpenBSD patchset 1095:Tiago Cunha2012-04-24
| | | | | Fix printing commands with no arguments, from Benjamin Poirier.
* Sync OpenBSD patchset 1035:Tiago Cunha2012-03-03
| | | | | | | Add move-pane command (like join-pane but allows the same window). Also -b flag to join-pane and move-pane to place the pane to the left or above. From George Nachman.
* Sync OpenBSD patchset 1028:Tiago Cunha2012-02-15
| | | | | Don't die if fail to get root directory, from Ben Boeckel.
* Adjust function name to the portable version.Tiago Cunha2012-02-02
|
* Sync OpenBSD patchset 1021:Tiago Cunha2012-02-02
| | | | | | | | | | | Provide defined ways to set the various default-path possibilities: ~ for home directory, . for server start directory, - for session start directory and empty for the pane's working directory (the default). All can also be used as part of a relative path (eg -/foo). Also provide -c flags to neww and splitw to override default-path setting. Based on a diff from sthen. ok sthen
* Sync OpenBSD patchset 1017:Tiago Cunha2012-01-31
| | | | | | Give each window a unique id, like panes but prefixed with @. Based on work from George Nachman.
* Sync OpenBSD patchset 1002:Tiago Cunha2012-01-20
| | | | | Add some const and fix a warning.
* Sync OpenBSD patchset 993:Tiago Cunha2011-12-30
| | | | | | | Allow $HOME as default-path in tmux.conf so the same config file can be used on different machines regardless of where the user's home directory is. ok nicm
* Change the way the working directory for new processes is discovered. IfNicholas Marriott2011-12-09
| | | | | | | | | | | | | | | | | default-path isn't empty, it is used. Otherwise: 1) If tmux neww is run from the command line, the working directory of the client is used. 2) Otherwise use some platform specific code to retrieve the current working directory of the process in the active pane. 3) If that fails, the directory where the session was created is used. Idea and support code, Linux, Solaris, FreeBSD bits by Romain Francoise, OpenBSD bits by me.
* PatchSet 924Nicholas Marriott2011-06-23
| | | | | | | | | | | Date: 2011/06/05 12:19:03 Author: nicm Branch: HEAD Tag: (none) Log: Add a respawn-pane command, from Marcel Partap.
* PatchSet 923Nicholas Marriott2011-06-23
| | | | | | | | | | | | Date: 2011/06/05 11:53:05 Author: nicm Branch: HEAD Tag: (none) Log: Get rid of the layout string code which tries to walk through the layout hierarchy and instead just look at what panes are actually in the window.
* Sync OpenBSD patchset 906:Tiago Cunha2011-05-18
| | | | | Fix a memory leak if cmd_pane_session succeeds, from Tiago Cunha.
* |PatchSet 884Nicholas Marriott2011-04-06
| | | | | | | | | | | | |Date: 2011/04/06 22:51:31 |Author: nicm |Branch: HEAD |Tag: (none) |Log: |Change so that an empty session name always means the current sessions |even if given with, for example, -t '', and explicitly forbid empty |session names and those containing a : when they are created.
* |PatchSet 882Nicholas Marriott2011-04-06
| | | | | | | | | | | | |Date: 2011/04/05 20:37:01 |Author: nicm |Branch: HEAD |Tag: (none) |Log: |Add a flag to cmd_find_session so that attach-session can prefer |unattached sessions when choosing the most recently used (if -t is not |given). Suggested by claudio@.
* PatchSet 870Nicholas Marriott2011-04-06
| | | | | | | | | | | | Date: 2011/03/27 21:27:26 Author: nicm Branch: HEAD Tag: (none) Log: Give each pane created in a tmux server a unique id (starting from 0), put it in the TMUX_PANE environment variable and accept it as a target. Suggested by and with testing and tweaks from Ben Boeckel.
* Sync OpenBSD patchset 848:Tiago Cunha2011-02-14
| | | | | Set $TMUX without the session when background jobs are run.
* Sync OpenBSD patchset 829:Tiago Cunha2011-01-07
| | | | | | | | | | | | | | | | | | | | | | Clean up and simplify tmux command argument parsing. Originally, tmux commands were parsed in the client process into a struct with the command data which was then serialised and sent to the server to be executed. The parsing was later moved into the server (an argv was sent from the client), but the parse step and intermediate struct was kept. This change removes that struct and the separate parse step. Argument parsing and printing is now common to all commands (in arguments.c) with each command left with just an optional check function (to validate the arguments at parse time), the exec function and a function to set up any key bindings (renamed from the old init function). This is overall more simple and consistent. There should be no changes to any commands behaviour or syntax although as this touches every command please watch for any unexpected changes.
* Global paste buffers instead of per-session which renders copy-buffer useless.Tiago Cunha2010-12-30
| | | | | As a consequence buffer-limit is now a server option.
* Sync OpenBSD patchset 806:Tiago Cunha2010-12-22
| | | | | | | | | | | Store sessions in an RB tree by name rather than a list, this is tidier and allows them to easily be shown sorted in various lists (list-sessions/choose-sessions). Keep a session index which is used in a couple of places internally but make it an ever-increasing number rather than filling in gaps with new sessions.
* |---------------------Nicholas Marriott2010-12-06
| | | | | | | | | | | | | | | | | | |PatchSet 781 |Date: 2010/10/29 21:11:57 |Author: nicm |Branch: HEAD |Tag: (none) |Log: |We now send argv to the server after parsing it in the client to get the |command, so the client should not modify it. Instead, take a copy. Fixes |parsing command lists, reported by mcbride@. | |Members: | cmd-list.c:1.5->1.6 | cmd.c:1.45->1.46 | tmux.h:1.244->1.245
* Sync OpenBSD patchset 780:Tiago Cunha2010-10-24
| | | | | | Add a last-pane command (bound to ; by default). Requested ages ago by somebody whose name I have forgotten.
* Sync OpenBSD patchset 774:Tiago Cunha2010-10-24
| | | | | | Fall back on normal session choice method if $TMUX exists but is invalid rather than rejecting.
* Sync OpenBSD patchset 735:Tiago Cunha2010-07-17
| | | | | | Make pane/window wrapping more logical (so with 10 windows, +10 from window 5 stays in the same place), and tidy the code. From Tiago Cunha.
* Sync OpenBSD patchset 726:Tiago Cunha2010-06-22
| | | | | Add a choose-buffer command for easier use of the paste buffer stack.
* Sync OpenBSD patchset 725:Tiago Cunha2010-06-22
| | | | | | Extend the -t:+ and -t:- window targets for next and previous window to accept an offset such as -t:+2. From Tiago Cunha.
* Sync OpenBSD patchset 697:Tiago Cunha2010-05-14
| | | | | | | Identical behaviour to select-prompt can now be obtained with command-prompt, so remove select-prompt and change ' to be bound to command-prompt -p index "select-window -t :%%".
* Support up, down, left, right movement through panes with -UDLR flags toNicholas Marriott2010-03-15
| | | | | | | | select-pane. Also remove up- and down-pane: equivalent behaviour is now available using -t :.+ and -t :.-.
* Sync OpenBSD patchset 611:Tiago Cunha2010-01-22
| | | | | | | | Permit !, + and - to be used for window targets to specify last window (!), or next and previous window by number (+ and -). Also tidy an if in cmd-new-window.c.
* Sync OpenBSD patchset 604:Tiago Cunha2010-01-08
| | | | | | New command, join-pane, to split and move an existing pane into the space (like splitw then movep, or the reverse of breakp).
* Sync OpenBSD patchset 584:Tiago Cunha2009-12-10
| | | | | | Permit panes to be referred to as "top", "bottom", "top-left" etc, if the right pane can be identified.
* 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 577:Tiago Cunha2009-12-02
| | | | | | New command, capture-pane, which copies the entire pane contents to a paste buffer. From Jonathan Alvarado.
* Sync OpenBSD patchset 559:Tiago Cunha2009-11-22
| | | | | | Use home from struct passwd if HOME is empty as well as if it is NULL, and fix a style nit. Both from Tiago Cunha.
* Sync OpenBSD patchset 546:Tiago Cunha2009-11-19
| | | | | | | | | | Add a per-client log of status line messages displayed while that client exists. A new message-limit session option sets the maximum number of entries and a command, show-messages, shows the log (bound to ~ by default). This (and prompt history) might be better as a single global log but until there are global options it is easier for them to be per client.
* Sync OpenBSD patchset 485:Tiago Cunha2009-11-04
| | | | | | | | | | Add an activity time for clients, like for sessions, and change session and client lookup to pick the most recently used rather than the most recently created - this is much more useful when used interactively and (because the activity time is set at creation) should have no effect on source-file. Based on a problem reported by Jan Johansson.
* Sync OpenBSD patchset 484:Tiago Cunha2009-11-04
| | | | | | | If it isn't available explicitly, work out the current client in a similar way to the current session - build a list of the possibilities then pick the newest.
* Sync OpenBSD patchset 483:Tiago Cunha2009-11-04
| | | | | | | | | | Change session and client activity and creation time members to have more meaningful names. Also, remove the code to try and update the session activity time for the command client when a command message is received as is pointless because it des not have a session.
* Sync OpenBSD patchset 479:Tiago Cunha2009-11-02
| | | | | | | | | | When matching the session names with -t, look for exact matches first before trying partial matches. Avoids problems where two ambiguous matches are present before an exact match (eg foo1, foo2, foo would give an error on trying -tfoo), reported by Natacha Port? natbsd at instinctive dot eu.
* Sync OpenBSD patchset 467:Tiago Cunha2009-10-28
| | | | | tabs are better; ok nicm
* Sync OpenBSD patchset 411:Tiago Cunha2009-10-15
| | | | | | cmd_find_client shouldn't die when there is an empty slot in the clients array. DOH.
* Don't let cmd_lookup_client find clients w/o a session.Nicholas Marriott2009-10-14
|
* Sync OpenBSD patchset 387:Tiago Cunha2009-10-12
| | | | | | | | | | | | | Add a pipe-pane command to allow a pane to be piped to a shell command, for example: pipe-pane 'cat >~/out' No arguments stops outputing and closes the pipe; the -o flag toggles a pipe and on and off (useful for key bindings). Suggested by espie@.
* Sync OpenBSD patchset 377:Tiago Cunha2009-10-12
| | | | | Split list-panes off from list-windows.
* Sync OpenBSD patchset 364:Tiago Cunha2009-10-07
| | | | | Fix comment.
* Sync OpenBSD patchset 362:Tiago Cunha2009-10-06
| | | | | | | Remove scroll mode which is now redundant, copy mode should be used instead. The = key binding now does nothing.
* Sync OpenBSD patchset 360:Tiago Cunha2009-10-06
| | | | | | | | If no target client is specified to commands which accept one, try to guess the current client, in a similar manner to how sessions already work: if the current session can be established and has only one client, use that; otherwise use the most recently created client.
* Sync OpenBSD patchset 353:Tiago Cunha2009-09-25
| | | | | | New lock-client and lock-session commands to lock an individual client or all clients attached to a session respectively.
* Sync OpenBSD patchset 347:Tiago Cunha2009-09-23
| | | | | | | | | | | | | | | | Remove the internal tmux locking and instead detach each client and run the command specified by a new option "lock-command" (by default "lock -np") in each client. This means each terminal has to be unlocked individually but simplifies the code and allows the system password to be used to unlock. Note that the set-password command is gone, so it will need to be removed from configuration files, and the -U command line flag has been removed. This is the third protocol version change so again it is best to stop the tmux server before upgrading.