Commit Graph

1326 Commits

Author SHA1 Message Date
Nicholas Marriott
81181bfb72 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 15:47:49 +00:00
Nicholas Marriott
2ddcb51df3 Fix $Id$. 2009-07-08 18:03:03 +00:00
Nicholas Marriott
b7a272fe6d Add a section summarising how options work, make the distinction between window
and session options clearer, and fix the incorrect synopses and descriptions of
show-options and show-window-options.
2009-07-08 17:57:07 +00:00
Nicholas Marriott
084d07f4eb Just appending -l to $SHELL to create a login shell is wrong: -l is not POSIX,
and some people may use shells which do not support it. Instead, make an empty
default-command option mean a login shell, and fork it with a - in argv[0]
which is the method used by login(1).

Also fix the automatic-rename code to handle this correctly and to strip a
leading - if present.
2009-07-08 05:26:45 +00:00
Nicholas Marriott
69e150b7e3 Add a section summarising how options work, make the distinction between window
and session options clearer, and fix the incorrect synopses and descriptions of
show-options and show-window-options.
2009-07-06 19:50:04 +00:00
Nicholas Marriott
9f0653386b $Id$. 2009-07-01 23:06:32 +00:00
Nicholas Marriott
22d1b9412e Using -l to specify a login shell is non-POSIX and causes problems with shells
that do not support it. Instead, set an empty default-command to invoke $SHELL
with - prefixed to argv[0], and make this the default setting.
2009-07-01 19:42:55 +00:00
Nicholas Marriott
eed4f7600d Fix $Id$. 2009-06-29 22:04:51 +00:00
Nicholas Marriott
796b2e3ec9 Add missing spaces before some alias closing brackets, otherwise they are
shown in the wrong style.
2009-06-29 22:02:20 +00:00
Nicholas Marriott
916669a244 Add missing spaces before some alias closing brackets, otherwise they are
shown in the wrong style.
2009-06-26 22:47:06 +00:00
Nicholas Marriott
a5830b9603 Restore $Id$ and add script to do so. 2009-06-25 16:21:32 +00:00
Nicholas Marriott
28bcf774e5 New session option, status-utf8, to control the interpretation of top-bit-set
characters in status-left and status-right (if on, they are treated as UTF-8;
otherwise passed through).
2009-06-25 15:48:25 +00:00
Nicholas Marriott
5b3db7b56c Sync man page with OpenBSD. 2009-06-25 15:30:29 +00:00
Nicholas Marriott
7e796dea03 Change find-window and monitor-content to use fnmatch(3). For convenience and
compatibility, *s are implicitly added at the start and end of the pattern.

Also display the line number and the entire line in the results, and lose the
nasty section_string function and the now empty util.c file.

Initially from Tiago Cunha.
2009-06-24 22:49:56 +00:00
Jason McIntyre
7b4077ef87 tweak previous; 2009-06-24 08:13:22 +00:00
Nicholas Marriott
013b88dfc3 Mention LC_ALL, LC_CTYPE. 2009-06-23 23:26:08 +00:00
Nicholas Marriott
6d2830a473 Add some common config file examples to the quick start section. 2009-06-23 22:13:11 +00:00
Jason McIntyre
0ba85cc326 zap trailing whitespace; 2009-06-04 13:36:25 +00:00
Nicholas Marriott
655a1aea6c Do not set the window title by default (make set-titles option default to off),
wiping over the title is rude and annoying. Agreed by several.
2009-06-03 17:04:16 +00:00
Nicholas Marriott
6521427a45 New session option, status-utf8, to control the interpretation of top-bit-set
characters in status-left and status-right (if on, they are treated as UTF-8;
otherwise passed through).
2009-06-03 16:54:26 +00:00
Nicholas Marriott
41d985ace3 Add missing documentation for the -a flag used to move to next/previous window
with alert.
2009-06-03 15:58:40 +00:00
Nicholas Marriott
e659aa86b9 Add a section summarising the status line. There are quite a number of status
line options, it is something many want to configure, and the meaning of some
bits weren't really documented.
2009-06-03 15:47:14 +00:00
Jason McIntyre
5823854b5e undo a mistake found by sobrado; 2009-06-03 09:29:06 +00:00
Jason McIntyre
646cfa6983 some cleanup; ok nicm 2009-06-03 06:49:05 +00:00
Nicholas Marriott
3f76a973ee Recent code to try and detect if a terminal supports UTF-8 by printing to it
fails spectacularly on (at least) sparc64, so disable it for now. Thanks to
naddy and Josh Elsasser for help and testing.
2009-06-02 23:39:32 +00:00
Igor Sobrado
a35630838f sort options alphabetically. 2009-06-02 16:46:00 +00:00
Pierre-Yves Ritschard
dc373abba8 spawn login shells by default, adapt manpage bits as well.
ok nicm@
2009-06-02 15:55:32 +00:00
Nicholas Marriott
29d4016572 Update the man page with some recent changes to the code:
- SIGUSR1 recreates the socket;
- guesswork to work out if the terminal supports UTF-8;
- a paste key for the command prompt;
- main-horizontal layout to match main-vertical, and options to configure the
  size of the large pane;
- clear-history command;
- select-layout command.
2009-06-01 23:51:00 +00:00
Nicholas Marriott
35876eaab9 Import tmux, a terminal multiplexor allowing (among other things) a single
terminal to be switched between several different windows and programs
displayed on one terminal be detached from one terminal and moved to another.

ok deraadt pirofti
2009-06-01 22:58:49 +00:00
Tiago Cunha
80af85a102 - New window option monitor-content to search for a string in a window, and
highlight the status line if it matches.
- To make this possible, the function cmd_find_window_search from
  cmd-find-window.c had to be moved to window.c and renamed window_pane_search.
- While there use three new functions in server.c to check for bell, activity,
  and content, to avoid too much nesting.
2009-05-19 13:32:55 +00:00
Nicholas Marriott
c21ffbc772 left-vertical -> main-vertical.
Also update CHANGES/TODO.
2009-05-18 21:58:40 +00:00
Nicholas Marriott
143aa718e5 Space trimmage mega-diff. 2009-05-04 17:58:27 +00:00
Nicholas Marriott
cdf472f2de Merge resize-pane-{up,down} into resize-pane. 2009-04-30 06:01:24 +00:00
Tiago Cunha
53dc88e276 Simplify the code by using the generic _target functions. 2009-04-28 18:29:44 +00:00
Nicholas Marriott
850965584e Missing Ar. 2009-04-27 14:50:22 +00:00
Tiago Cunha
e397e3a5f8 - Add alias to the break-pane command.
- s/Asks/Ask/ in the confirm-before command for consistency's sake.
2009-04-27 14:40:45 +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
fb2e65ad99 Document panes stuff. 2009-04-21 20:06:46 +00:00
Nicholas Marriott
4641cf36a3 Document set-remain-on-exit. 2009-04-21 16:38:23 +00:00
Nicholas Marriott
73e375f9eb Document break-pane. 2009-04-21 16:34:31 +00:00
Nicholas Marriott
054edf7af9 Document status-keys. 2009-04-21 16:30:53 +00:00
Nicholas Marriott
f9af6f7f8c Document -L and -8, fix synopsis. 2009-04-20 19:25:58 +00:00
Nicholas Marriott
2ab713ab6b Document -r to bind key. 2009-04-20 19:11:31 +00:00
Nicholas Marriott
d9f3bcdb50 Zero to turn off updates. 2009-02-10 00:09:44 +00:00
Nicholas Marriott
44cc9c4459 Typos. 2009-02-08 18:41:03 +00:00
Nicholas Marriott
7942e49aea Session name is now shown. 2009-02-08 16:11:52 +00:00
Nicholas Marriott
3c7fefd90d Document automatic-rename. 2009-02-07 08:35:26 +00:00
Nicholas Marriott
bb3eb77a2a New sentence, new line. 2009-02-07 08:22:11 +00:00
Nicholas Marriott
ea8a8d39d4 Document command sequences. 2009-02-07 08:20:54 +00:00
Tiago Cunha
fe9320a064 Prevent weird output on OpenBSD (probably on other BSD's too?). From nicm. 2009-02-06 19:36:17 +00:00
Tiago Cunha
70dbc2f5b1 - Document find-window.
- Document suspend-client.
- Document window-status-{attr,bg,fg}.
- Options without arguments should be listed first.
- s/Copies/Copy/.
2009-02-06 18:38:30 +00:00
Tiago Cunha
4213ff8faa copy-buffer command. 2009-02-03 17:21:19 +00:00
Tiago Cunha
dd4e160d71 - Document the -p and -l options in split-window.
- Update {copy,scroll}-mode with the -u option.
- While there sort options alphabetically.
2009-02-01 18:24:25 +00:00
Nicholas Marriott
ef7c891aab Missing line break. 2009-02-01 18:11:40 +00:00
Tiago Cunha
2bb499c8af Support #(command) in status-left, and status-right. 2009-01-29 23:35:14 +00:00
Nicholas Marriott
c6bd9e2063 Allow status, mode and message attributes to be changed by three new options: status-attr, mode-attr, message-attr. A comma-separataed list is accepted containing: bright, dim, underscore, blink, reverse, hidden, italics, for example: set -g status-attr bright,blink
From Josh Elsasser, thanks!
2009-01-27 20:22:33 +00:00
Nicholas Marriott
7c8cd81b34 Typos. 2009-01-26 18:22:55 +00:00
Tiago Cunha
f62ed6aaa3 load-buffer command 2009-01-25 19:00:10 +00:00
Nicholas Marriott
caa93f0e02 Whoops. Ic not It. 2009-01-20 20:03:13 +00:00
Nicholas Marriott
5f6a351df7 Start the first client with a special socketpair so it is already known to the
server rather than playing silly games to get them synchronised before doing
anything.

Change attach-session to start the server.
2009-01-19 17:16:09 +00:00
Nicholas Marriott
1237025d99 Document xterm-keys 2009-01-17 17:16:31 +00:00
Tiago Cunha
5fefd9d11f Document repeat-time. 2009-01-16 22:52:31 +00:00
Nicholas Marriott
8b0a7c056d Document choose-*. 2009-01-16 20:18:10 +00:00
Tiago Cunha
e78b7c8154 Document command-prompt template string, and panes commands. From nicm and me. 2009-01-16 17:28:49 +00:00
Nicholas Marriott
5aa3098bb6 Support #S #H in status-left/right. 2009-01-15 23:42:21 +00:00
Tiago Cunha
5bd33f5f7f Document default-path, and update set/setw with the -u flag. From nicm and me. 2009-01-15 21:24:03 +00:00
Nicholas Marriott
54209774ff Document -g. 2009-01-14 18:47:19 +00:00
Nicholas Marriott
bc56751692 Disable lock-after-time by default. 2009-01-14 18:41:55 +00:00
Tiago Cunha
ea8d4d43ab Update by documenting the following commands/options:
- clock-mode,
- lock-server,
- server-info,
- lock-after-time,
- set-password,
- clock-mode-colour, and
- clock-mode-style.
2009-01-12 21:23:58 +00:00
Nicholas Marriott
d78bc5dfc4 save-buffer command, from Tiago Cunha. 2009-01-11 23:14:57 +00:00
Nicholas Marriott
a1b43faa43 Trim spaces. 2009-01-10 01:51:22 +00:00
Nicholas Marriott
45738b2a85 Tweak. 2009-01-07 23:09:51 +00:00
Nicholas Marriott
58be8b38a7 More man page updates from Tiago Cunha. 2009-01-07 23:07:42 +00:00
Nicholas Marriott
8810fc158c Updates from Tiago Cunha. 2009-01-07 18:54:18 +00:00
Nicholas Marriott
5445918b3e source-file command from Tiago Cunha. 2008-12-15 21:21:56 +00:00
Nicholas Marriott
8524062e56 Document mode keys 2008-11-17 17:41:35 +00:00
Nicholas Marriott
5ca710d9e3 Disable UTF-8 by default and add options to enable it. 2008-11-16 13:28:59 +00:00
Nicholas Marriott
efe557313a Internal screen data rewrite for better 256 colour/UTF-8 support. 2008-09-25 20:08:57 +00:00
Nicholas Marriott
80a594cae3 Document zombie window stuff. 2008-06-30 18:27:14 +00:00
Nicholas Marriott
797f04b648 Document buffer stuff. 2008-06-30 05:34:06 +00:00
Nicholas Marriott
cfb611e95a Document next/prev word. 2008-06-29 07:22:00 +00:00
Nicholas Marriott
1a58f958be Document some commands. 2008-06-27 17:24:16 +00:00
Nicholas Marriott
6bc6e97da5 C-u C-f from merdely. 2008-06-26 19:02:18 +00:00
Nicholas Marriott
7836298f29 Allow use of alt keys. move-window command. 2008-06-25 20:33:20 +00:00
Nicholas Marriott
e180471982 Update from Will Maier. 2008-06-19 22:14:12 +00:00
Nicholas Marriott
73d1558ed0 status-lines -> status, prefix-key -> prefix 2008-06-19 22:04:02 +00:00
Nicholas Marriott
24cc3626dc Document command-prompt. Tweak TODO. 2008-06-19 21:45:46 +00:00
Nicholas Marriott
6c23e89f48 Sort options from Pierre Riteau. 2008-06-18 16:39:15 +00:00
Nicholas Marriott
9b4d7c271b Document show-window-options, some other tweaks. 2008-06-17 06:22:15 +00:00
Nicholas Marriott
c9a650c5d4 Document set-window-option, update example. 2008-06-17 06:18:44 +00:00
Nicholas Marriott
ff21dbd58b Explanation of -t. 2008-06-16 22:03:27 +00:00
Nicholas Marriott
55d5b83408 Informational messages on window option changes. 2008-06-16 17:35:40 +00:00
Nicholas Marriott
a8e3e989dd Document show-options. 2008-06-16 06:33:50 +00:00
Nicholas Marriott
557b6b86b0 Add a couple of extra option types, and implement show-options command. 2008-06-15 08:01:54 +00:00
Nicholas Marriott
ec42778590 Man page update from Will Maier, thanks. 2008-06-11 06:19:56 +00:00
Nicholas Marriott
29e2253611 Partial tmux.1 update thanks to Will Maier. 2008-06-06 20:07:56 +00:00
Nicholas Marriott
596080a699 Usage update from Will Maier. 2008-06-06 15:23:44 +00:00
Nicholas Marriott
0b9b873a55 Big reorganisation of command-line syntax. 2008-06-05 21:25:00 +00:00
Nicholas Marriott
7325fea37d Man page fixes from Tiago Cunha. 2008-06-05 15:55:59 +00:00
Nicholas Marriott
f7ba4dfdc9 Bring select-window into line with everything else wrt -i. 2008-06-04 16:11:53 +00:00
Nicholas Marriott
f91e7bfd38 If no command is specified, assume new-session. 2008-06-03 05:35:51 +00:00
Nicholas Marriott
95cc21c251 Quick man page update, also fix some usages and get rid of some CMD_KEY checks. 2008-06-02 21:36:51 +00:00
Nicholas Marriott
65f4284e7f New command, send-keys, to send a set of keys. 2008-06-01 20:20:25 +00:00
Nicholas Marriott
3ecdc34973 s/backgroun/background/ 2008-05-31 23:08:48 +00:00
Nicholas Marriott
34b7810afe vi(1) 2007-12-18 17:49:02 +00:00
Nicholas Marriott
f18ac66185 Quick start section in man page. 2007-12-16 17:18:43 +00:00
Nicholas Marriott
818df923de Add ^A && ^E to copy mode. Also use STDIN instead of STDOUT in a couple of places. 2007-11-26 20:36:30 +00:00
Nicholas Marriott
d03e729904 Better words. 2007-11-24 18:05:39 +00:00
Nicholas Marriott
69cec8803e Document modes, c/p etc. 2007-11-24 14:21:43 +00:00
Nicholas Marriott
4930e894c2 Mention quit key. Fix key style. 2007-11-22 10:31:02 +00:00
Nicholas Marriott
f8686f126d Document scroll-mode. 2007-11-21 20:26:51 +00:00
Nicholas Marriott
958cd9cb94 -k on link-window to kill dest window if it exists. 2007-11-17 08:21:54 +00:00
Nicholas Marriott
b359f9b594 Add -c option to specify client, and move detach/refresh to client rather than session. 2007-11-16 21:12:31 +00:00
Nicholas Marriott
4a419bbc9a This stuff should be Ic not Ar. 2007-11-12 20:46:46 +00:00
Nicholas Marriott
d72f2bef62 Mention TERM=screen requirement. 2007-11-12 20:42:53 +00:00
Nicholas Marriott
a3c89d7671 clietns -> clients. 2007-11-12 19:15:29 +00:00
Nicholas Marriott
e95ed600c9 Nuke stray ). 2007-11-12 16:40:56 +00:00
Nicholas Marriott
23e9acdcb2 Erp, ^B not ^A. 2007-11-12 16:11:57 +00:00
Nicholas Marriott
e79a41cff9 Finish off man page. 2007-11-12 16:09:08 +00:00
Nicholas Marriott
e4a6cdefda kill-window command. 2007-11-12 14:21:41 +00:00
Nicholas Marriott
eeba70afc8 More tweaks. 2007-11-09 17:05:42 +00:00
Nicholas Marriott
f87816c4ba Key bindings section. 2007-11-09 16:18:08 +00:00
Nicholas Marriott
73eee9a026 Lcase is better. 2007-11-09 16:08:08 +00:00
Nicholas Marriott
271023c82f Fill in command list. Fix a couple of usages while doing this. 2007-11-09 16:04:29 +00:00
Nicholas Marriott
33d012332f Tweak language. 2007-11-09 15:29:59 +00:00
Nicholas Marriott
d9b85594f8 Initial man page. 2007-11-09 15:23:28 +00:00