Nicholas Marriott
48c36d628a
No paths.h in cmd.c; add _PATH_DEV for Solaris.
2009-07-21 13:07:50 +00:00
Tiago Cunha
ae7dda10ce
- New command display-message (alias display) to display a message in the
...
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.
2009-07-17 18:32:54 +00:00
Nicholas Marriott
770ea563ee
Changed the wrong thing here.
2009-07-17 15:56:46 +00:00
Nicholas Marriott
d6908dd9c2
Return -1 not NULL on error, pointed out by Roy Marples.
2009-07-15 17:46:09 +00:00
Nicholas Marriott
ac2ab6501d
Add a -k flag to unlink-window which makes it behave the same as the old
...
kill-window - if a window is linked into only one session it unlinked and
destroyed.
2009-07-15 17:45:29 +00:00
Nicholas Marriott
d358a352c0
Tidy up and improve target (-t) argument parsing:
...
- 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.
2009-07-14 06:42:06 +00:00
Nicholas Marriott
eee3dd297e
New command, if-shell (alias if). Executes the tmux command in the second
...
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.
2009-07-09 18:14:18 +00:00
Nicholas Marriott
2ddcb51df3
Fix $Id$.
2009-07-08 18:03:03 +00:00
Nicholas Marriott
a182502af0
Don't let ambiguous commands override an exact alias match: eg if commands
...
"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.
2009-07-08 18:01:55 +00:00
Nicholas Marriott
a5830b9603
Restore $Id$ and add script to do so.
2009-06-25 16:21:32 +00:00
Nicholas Marriott
b9155e835a
Print a better message than '(null)' if no command is specified ("tmux \;").
2009-06-25 15:56:39 +00:00
Nicholas Marriott
1001902143
select-layout command and some key bindings.
2009-05-16 11:48:47 +00:00
Nicholas Marriott
96ca072482
clear-history command.
2009-05-14 16:56:23 +00:00
Nicholas Marriott
143aa718e5
Space trimmage mega-diff.
2009-05-04 17:58:27 +00:00
Nicholas Marriott
044e6f7660
previous-layout command.
2009-04-30 21:17:06 +00:00
Nicholas Marriott
cdf472f2de
Merge resize-pane-{up,down} into resize-pane.
2009-04-30 06:01:24 +00:00
Tiago Cunha
058772e4e6
- confirm-before command.
...
- Bound "&" and "x" by default to confirm-before "kill-window" and
confirm-before "kill-pane", respectively.
2009-04-27 13:21:16 +00:00
Nicholas Marriott
325d43e417
rotate-window command.
2009-04-03 17:21:46 +00:00
Nicholas Marriott
8216f7b3d9
swap-pane command.
2009-04-02 23:28:16 +00:00
Nicholas Marriott
b6450b167b
Basic horizontal splitting and layout management. Still some redraw and other
...
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-04-01 18:21:42 +00:00
Nicholas Marriott
56f80a5b09
break-pane command to split a pane off into a new window; bound to ! by default.
2009-03-07 09:29:54 +00:00
Tiago Cunha
4213ff8faa
copy-buffer command.
2009-02-03 17:21:19 +00:00
Tiago Cunha
f62ed6aaa3
load-buffer command
2009-01-25 19:00:10 +00:00
Nicholas Marriott
93230a64bc
Pass return code from _exec; allow command sequences to work from the command line.
2009-01-19 18:23:40 +00:00
Nicholas Marriott
3efd1f5014
find-window command.
2009-01-18 17:20:52 +00:00
Nicholas Marriott
a15f8fc4a6
Support command sequences separated by " ; ". Also clean up command printing.
2009-01-18 14:40:48 +00:00
Nicholas Marriott
8ea49712fd
suspend-client command and suspend client when ^Z key binding is used.
2009-01-18 12:09:42 +00:00
Nicholas Marriott
d29ca39e0e
Two new commands, choose-window and choose-session which work only when bound to a key and allow the window or session to be selected from a list.
2009-01-15 19:27:31 +00:00
Nicholas Marriott
d1eb153368
switch-pane is now select-pane.
2009-01-14 19:56:55 +00:00
Nicholas Marriott
3f51dcdfc3
up-pane and down-pane commands.
2009-01-14 19:41:15 +00:00
Nicholas Marriott
f85559144f
kill-pane command.
2009-01-13 06:50:10 +00:00
Nicholas Marriott
c35a50b21a
Commands to resize panes; also a pane generic cmd, not used yet.
2009-01-12 19:23:14 +00:00
Nicholas Marriott
162bacdcd9
Window splitting. Two vertical panes fixed 50% each. This is a huge diff, still a couple of bugs (notably heap corruption somewhere causing segfault on exit).
2009-01-11 23:31:46 +00:00
Nicholas Marriott
d78bc5dfc4
save-buffer command, from Tiago Cunha.
2009-01-11 23:14:57 +00:00
Nicholas Marriott
e3feb067a5
Server locking. set-password and lock-server commands, plus automatic locking.
2009-01-11 00:48:42 +00:00
Nicholas Marriott
88ab74ac20
Clock mode.
2009-01-10 19:35:40 +00:00
Nicholas Marriott
a1b43faa43
Trim spaces.
2009-01-10 01:51:22 +00:00
Nicholas Marriott
fb6c8ecae6
New command, server-info, to show server info + terminal details. Also tweak term stuff a bit.
2009-01-10 01:30:38 +00:00
Nicholas Marriott
4af8db90e8
Complete option names as well.
2009-01-06 17:04:56 +00:00
Nicholas Marriott
5445918b3e
source-file command from Tiago Cunha.
2008-12-15 21:21:56 +00:00
Nicholas Marriott
5c3d973a4a
Import OpenBSD's getopt(3) to workaround broken glibc version.
2008-12-10 20:25:42 +00:00
Nicholas Marriott
62457bce0b
Trim.
2008-09-26 06:45:28 +00:00
Nicholas Marriott
df2b3bcf44
Fix stupid GNU getopt behaviour.
2008-09-25 23:28:15 +00:00
Nicholas Marriott
33aa931541
Support OS X by moving to gettimeofday(2) and adding poll compat from OpenSSH.
2008-08-28 17:45:30 +00:00
Nicholas Marriott
403b1b27ab
Handle exact match properly.
2008-07-19 10:07:50 +00:00
Nicholas Marriott
e5cf8594e8
long for pid.
2008-07-01 20:35:16 +00:00
Nicholas Marriott
d90d646ca8
Zombie windows, requested by Will Maier.
2008-06-29 07:04:31 +00:00
Nicholas Marriott
571935c823
Handle bad session/client properly.
2008-06-27 17:10:01 +00:00
Nicholas Marriott
b87789707b
Oops, forgot to commit move-window. Also add select-prompt to allow index to be typed.
2008-06-25 20:43:14 +00:00
Nicholas Marriott
7836298f29
Allow use of alt keys. move-window command.
2008-06-25 20:33:20 +00:00