aboutsummaryrefslogtreecommitdiff
path: root/cmd.c
Commit message (Collapse)AuthorAge
...
* Sync OpenBSD patchset 335:Tiago Cunha2009-09-20
| | | | | | run-shell command to run a shell command without opening a window, sending stdout to output mode.
* Sync OpenBSD patchset 302:Tiago Cunha2009-08-31
| | | | | | | Add a new display-panes command, with two options (display-panes-colour and display-panes-time), which displays a visual indication of the number of each pane.
* Sync OpenBSD patchset 294:Tiago Cunha2009-08-25
| | | | | | | | | | | | | Add a choose-client command and extend choose-{session,window} to accept a template. After a choice is made, %% (or %1) in the template is replaced by the name of the session, window or client suitable for -t and the result executed as a command. So, for example, "choose-window "killw -t '%%'"" will kill the selected window. The defaults if no template is given are (as now) select-window for choose-window, switch-client for choose-session, and detach-client for choose-client (now bound to D).
* Sync OpenBSD patchset 289:Tiago Cunha2009-08-24
| | | | | | The cursession member in struct cmd_ctx is always either curclient->session or NULL when curclient is also NULL, so just eliminate it.
* 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 200:Tiago Cunha2009-07-30
| | | | | | | | | | | | | | | | Merge pane number into the target specification for pane commands. Instead of using -p index, a target pane is now addressed with the normal -t window form but suffixed with a period and a pane index, for example :0.2 or mysess:mywin.1. An unadorned number such as -t 1 is tried as a pane index in the current window, if that fails the same rules are followed as for a target window and the current pane in that window used. As a side-effect this now means that swap-pane can swap panes between different windows. Note that this changes the syntax of the break-pane, clear-history, kill-pane, resize-pane, select-pane and swap-pane commands.
* Sync OpenBSD patchset 197:Tiago Cunha2009-07-30
| | | | | | | | | | | Add an additional heuristic to work out the current session when run from the command line. The name of all slave ptys in the server is known, so if the client was run on a tty, look for any sessions containing that tty and use the most recently created. This is more reliable than looking at $TMUX if windows have been moved or linked between sessions.
* 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 178:Tiago Cunha2009-07-25
| | | | | cmd_find_index should return -2 on error.
* Sync OpenBSD patchset 164:Tiago Cunha2009-07-23
| | | | | | | | | | Tidy the target parsing code a bit and correct the behaviour so that as before a string with no colon as a target window is first looked up as a window then as a session, noted by Iain Morgan. Also attempt to clarify the description of the target specification in the man page.
* No paths.h in cmd.c; add _PATH_DEV for Solaris.Nicholas Marriott2009-07-21
|
* - New command display-message (alias display) to display a message in theTiago Cunha2009-07-17
| | | | | | | | status line (bound to "i" by default). - Add support for including the window index, pane index, and window name in status-left, or status-right. - Bump protocol version.
* Changed the wrong thing here.Nicholas Marriott2009-07-17
|
* Return -1 not NULL on error, pointed out by Roy Marples.Nicholas Marriott2009-07-15
|
* Add a -k flag to unlink-window which makes it behave the same as the oldNicholas Marriott2009-07-15
| | | | | | kill-window - if a window is linked into only one session it unlinked and destroyed.
* Tidy up and improve target (-t) argument parsing:Nicholas Marriott2009-07-14
| | | | | | | | | | | | | | | - move the code back into cmd.c and merge with the existing functions where possible; - accept "-tttyp0" as well as "-t/dev/ttyp0" for clients; - when looking up session names, try an exact match first, and if that fails look for it as an fnmatch pattern and then as the start of a name - if more that one session matches an error is given; so if there is one session called "mysession", -tmysession, -tmysess, -tmysess* are equivalent but if there is also "mysession2", the last two are errors; - similarly for windows, if the argument is not a valid index or exact window name match, try it against the window names as an fnmatch pattern and a prefix.
* New command, if-shell (alias if). Executes the tmux command in the secondNicholas Marriott2009-07-09
| | | | | | | | | argument if the shell command in the first succeeds, for example: if "[ -e ~/.tmux.conf.alt ]" "source .tmux.conf.alt" Written by Tiago Cunha, many thanks.
* Fix $Id$.Nicholas Marriott2009-07-08
|
* Don't let ambiguous commands override an exact alias match: eg if commandsNicholas Marriott2009-07-08
| | | | | | "abc-1", "abc-2", "abc-3" exist and "abc-3" has the alias "abc", "tmux abc" should execute abc-3, not complain about the command being ambiguous.
* Restore $Id$ and add script to do so.Nicholas Marriott2009-06-25
|
* Print a better message than '(null)' if no command is specified ("tmux \;").Nicholas Marriott2009-06-25
|
* select-layout command and some key bindings.Nicholas Marriott2009-05-16
|
* clear-history command.Nicholas Marriott2009-05-14
|
* Space trimmage mega-diff.Nicholas Marriott2009-05-04
|
* previous-layout command.Nicholas Marriott2009-04-30
|
* Merge resize-pane-{up,down} into resize-pane.Nicholas Marriott2009-04-30
|
* - confirm-before command.Tiago Cunha2009-04-27
| | | | | | - Bound "&" and "x" by default to confirm-before "kill-window" and confirm-before "kill-pane", respectively.
* rotate-window command.Nicholas Marriott2009-04-03
|
* swap-pane command.Nicholas Marriott2009-04-02
|
* 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.
* break-pane command to split a pane off into a new window; bound to ! by default.Nicholas Marriott2009-03-07
|
* copy-buffer command.Tiago Cunha2009-02-03
|
* load-buffer commandTiago Cunha2009-01-25
|
* Pass return code from _exec; allow command sequences to work from the ↵Nicholas Marriott2009-01-19
| | | | command line.
* find-window command.Nicholas Marriott2009-01-18
|
* Support command sequences separated by " ; ". Also clean up command printing.Nicholas Marriott2009-01-18
|
* suspend-client command and suspend client when ^Z key binding is used.Nicholas Marriott2009-01-18
|
* Two new commands, choose-window and choose-session which work only when ↵Nicholas Marriott2009-01-15
| | | | bound to a key and allow the window or session to be selected from a list.
* switch-pane is now select-pane.Nicholas Marriott2009-01-14
|
* up-pane and down-pane commands.Nicholas Marriott2009-01-14
|
* kill-pane command.Nicholas Marriott2009-01-13
|
* Commands to resize panes; also a pane generic cmd, not used yet.Nicholas Marriott2009-01-12
|
* 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).
* save-buffer command, from Tiago Cunha.Nicholas Marriott2009-01-11
|
* Server locking. set-password and lock-server commands, plus automatic locking.Nicholas Marriott2009-01-11
|
* Clock mode.Nicholas Marriott2009-01-10
|
* Trim spaces.Nicholas Marriott2009-01-10
|
* New command, server-info, to show server info + terminal details. Also tweak ↵Nicholas Marriott2009-01-10
| | | | term stuff a bit.
* Complete option names as well.Nicholas Marriott2009-01-06
|
* source-file command from Tiago Cunha.Nicholas Marriott2008-12-15
|