Skip to content

Commit

Permalink
Merge remote-tracking branch 'tmux/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
nviennot committed Mar 11, 2016
2 parents 405cd82 + 5fc5c03 commit 87794a3
Show file tree
Hide file tree
Showing 141 changed files with 959 additions and 1,410 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ CLEANFILES = tmate.1.mdoc tmate.1.man

# Distribution tarball options.
EXTRA_DIST = \
CHANGES FAQ README TODO COPYING examples compat/*.[ch] \
array.h compat.h tmux.h tmate.h osdep-*.c mdoc2man.awk tmate.1
CHANGES FAQ README TODO COPYING example_tmux.conf compat/*.[ch] \
array.h compat.h tmux.h osdep-*.c xmalloc.h mdoc2man.awk tmate.1
dist-hook:
make clean
grep "^#found_debug=" configure
Expand Down
15 changes: 8 additions & 7 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This release runs on OpenBSD, FreeBSD, NetBSD, Linux, OS X and Solaris.

tmux depends on libevent 2.x. Download it from:

http://www.monkey.org/~provos/libevent/
http://libevent.org

To build tmux from a release tarball, do:

Expand All @@ -33,13 +33,17 @@ the source tree with:
Some common questions are answered in the FAQ file and a more extensive (but
slightly out of date) guide is available in the OpenBSD FAQ at
http://www.openbsd.org/faq/faq7.html#tmux. A rough todo list is in the TODO
file and some example configurations are in the examples directory.
file and an example configuration in example_tmux.conf.

A vim(1) syntax file is available at:

https://github.com/keith/tmux.vim
https://raw.githubusercontent.com/keith/tmux.vim/master/syntax/tmux.vim

And a bash(1) completion file at:

https://github.com/przepompownia/tmux-bash-completion

For debugging, running tmux with -v or -vv will generate server and client log
files in the current directory.

Expand All @@ -56,10 +60,7 @@ welcome. Please send by email to:

tmux-users@googlegroups.com

This file and the CHANGES, FAQ, SYNCING and TODO files are licensed under
the ISC license. Files under examples/ remain copyright their authors unless
otherwise stated in the file but permission has been received to distribute
them with tmux. All other files have a license and copyright notice at their
start.
This file and the CHANGES, FAQ, SYNCING and TODO files are licensed under the
ISC license. All other files have a license and copyright notice at their start.

-- Nicholas Marriott <nicholas.marriott@gmail.com>
25 changes: 14 additions & 11 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@
* command to toggle selection not to move it in copy-mode
* regex searching
* copy-pipe should have -x as well
* copy mode key bindings should just be a standard key table, using
something like "copy-mode start-selection"; it could use
command-prompt for search, goto, etc:

bind -Temacs command-prompt -p'Search Up: ' 'copy-mode search-up %%'

it'd need a separate lookup, because modes are per-pane, perhaps a
table() cb to give the table name ("vi" or "emacs"). anything in the
table fires the command, anything not in the table is injected as a
key
* searching in copy mode should unwrap lines, so if you seach for "foobar"
then it should be found even if it is now "foo\nbar" (if the WRAP flag
is set on the line)

- layout stuff
* way to tag a layout as a number/name
Expand Down Expand Up @@ -118,18 +131,8 @@
comes from config for new sessions and windows. likewise, panes and
jobs and run-shell and lock command all start with slightly different
environments
* multiline status line?
* multiline status line? separate command prompt and status line?
* customizable command aliases
* automatic pane logging
* BCE? We are halfway there (output side is done for pane backgrounds),
just need to change how screen/grid handles erase
* copy mode key bindings should just be a standard key table, using
something like "copy-mode start-selection"; it could use
command-prompt for search, goto, etc:

bind -Temacs command-prompt -p'Search Up: ' 'copy-mode search-up %%'

it'd need a separate lookup, because modes are per-pane, perhaps a
table() cb to give the table name ("vi" or "emacs"). anything in the
table fires the command, anything not in the table is injected as a
key
25 changes: 21 additions & 4 deletions alerts.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2015 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2015 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -29,6 +29,7 @@ int alerts_enabled(struct window *, int);
void alerts_callback(int, short, void *);
void alerts_reset(struct window *);

void alerts_run_hook(struct session *, struct winlink *, int);
int alerts_check_all(struct session *, struct winlink *);
int alerts_check_bell(struct session *, struct winlink *);
int alerts_check_activity(struct session *, struct winlink *);
Expand All @@ -55,8 +56,6 @@ alerts_callback(__unused int fd, __unused short events, __unused void *arg)

RB_FOREACH(w, windows, &windows) {
RB_FOREACH(s, sessions, &sessions) {
if (s->flags & SESSION_UNATTACHED)
continue;
RB_FOREACH(wl, winlinks, &s->windows) {
if (wl->window != w)
continue;
Expand All @@ -73,6 +72,22 @@ alerts_callback(__unused int fd, __unused short events, __unused void *arg)
alerts_fired = 0;
}

void
alerts_run_hook(struct session *s, struct winlink *wl, int flags)
{
struct cmd_find_state fs;

if (cmd_find_from_winlink(&fs, s, wl) != 0)
return;

if (flags & WINDOW_BELL)
hooks_run(s->hooks, NULL, &fs, "alert-bell");
if (flags & WINDOW_SILENCE)
hooks_run(s->hooks, NULL, &fs, "alert-silence");
if (flags & WINDOW_ACTIVITY)
hooks_run(s->hooks, NULL, &fs, "alert-activity");
}

int
alerts_check_all(struct session *s, struct winlink *wl)
{
Expand All @@ -81,8 +96,10 @@ alerts_check_all(struct session *s, struct winlink *wl)
alerts = alerts_check_bell(s, wl);
alerts |= alerts_check_activity(s, wl);
alerts |= alerts_check_silence(s, wl);
if (alerts != 0)
if (alerts != 0) {
alerts_run_hook(s, wl, alerts);
server_status_session(s);
}

return (alerts);
}
Expand Down
2 changes: 1 addition & 1 deletion arguments.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2010 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2010 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion array.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2006 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2006 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion cfg.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion client.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion cmd-attach-session.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion cmd-bind-key.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions cmd-break-pane.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -35,7 +35,7 @@ const struct cmd_entry cmd_break_pane_entry = {
.alias = "breakp",

.args = { "dPF:s:t:", 0, 0 },
.usage = "[-dP] [-F format] " CMD_SRCDST_PANE_USAGE,
.usage = "[-dP] [-F format] [-s src-pane] [-t dst-window]",

.sflag = CMD_PANE,
.tflag = CMD_WINDOW_INDEX,
Expand Down
2 changes: 1 addition & 1 deletion cmd-choose-buffer.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2010 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2010 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion cmd-choose-client.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion cmd-clear-history.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion cmd-command-prompt.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 3 additions & 1 deletion cmd-copy-mode.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -46,6 +46,8 @@ const struct cmd_entry cmd_clock_mode_entry = {
.args = { "t:", 0, 0 },
.usage = CMD_TARGET_PANE_USAGE,

.tflag = CMD_PANE,

.flags = 0,
.exec = cmd_copy_mode_exec
};
Expand Down
2 changes: 1 addition & 1 deletion cmd-detach-client.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion cmd-display-panes.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion cmd-find-window.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* $OpenBSD$ */

/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
Loading

0 comments on commit 87794a3

Please sign in to comment.