Go to file
nicm 4289a1ebfa Trying to do hooks generically is way too complicated and unreliable and
confusing, particularly trying to automatically figure out what target
hooks should be using. So simplify it:

- drop before hooks entirely, they don't seem to be very useful;

- commands with special requirements now fire their own after hook (for
  example, if they change session or window, or if they have -t and -s
  and need to choose which one the hook uses as current target);

- commands with no special requirements can have the CMD_AFTERHOOK flag
  added and they will use the -t state.

At the moment new-session, new-window, split-window fire their own hook,
and display-message uses the flag. The remaining commands still need to
be looked at.
2016-10-13 22:48:51 +00:00
Makefile Add hooks infrastructure, basic commands (set-hook, show-hooks) and a 2015-12-08 01:10:31 +00:00
alerts.c Remove some dead code in cmd-move-window.c and make a load of local 2016-10-03 22:52:11 +00:00
arguments.c Add static in window-*.c and move some internal functions out of tmux.h. 2016-10-11 13:21:59 +00:00
attributes.c Use snprintf for constructing attribute string, from Tim Ruehsen. 2012-03-17 21:45:25 +00:00
cfg.c Some other stuff that can be local to one file. 2016-10-11 13:45:47 +00:00
client.c Remove some dead code in cmd-move-window.c and make a load of local 2016-10-03 22:52:11 +00:00
cmd-attach-session.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-bind-key.c Drop the edit mode key tables and just use fixed key bindings for the 2016-10-12 14:50:14 +00:00
cmd-break-pane.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-capture-pane.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-choose-buffer.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-choose-client.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-choose-tree.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-clear-history.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-command-prompt.c The repeat prompt in both emacs and vi (and the old one in tmux) doesn't 2016-10-12 13:03:27 +00:00
cmd-confirm-before.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-copy-mode.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-detach-client.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-display-message.c Trying to do hooks generically is way too complicated and unreliable and 2016-10-13 22:48:51 +00:00
cmd-display-panes.c Allow a command to be specified to display-panes, similar to 2016-06-16 10:55:47 +00:00
cmd-find-window.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-find.c Some improvements and bug fixes for hooks: 2016-10-13 10:01:49 +00:00
cmd-has-session.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-if-shell.c Trying to do hooks generically is way too complicated and unreliable and 2016-10-13 22:48:51 +00:00
cmd-join-pane.c Trying to do hooks generically is way too complicated and unreliable and 2016-10-13 22:48:51 +00:00
cmd-kill-pane.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-kill-server.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-kill-session.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-kill-window.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-list-buffers.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-list-clients.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-list-keys.c Drop the edit mode key tables and just use fixed key bindings for the 2016-10-12 14:50:14 +00:00
cmd-list-panes.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-list-sessions.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-list-windows.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-list.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-load-buffer.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-lock-server.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-move-window.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-new-session.c Trying to do hooks generically is way too complicated and unreliable and 2016-10-13 22:48:51 +00:00
cmd-new-window.c Trying to do hooks generically is way too complicated and unreliable and 2016-10-13 22:48:51 +00:00
cmd-paste-buffer.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-pipe-pane.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-queue.c Trying to do hooks generically is way too complicated and unreliable and 2016-10-13 22:48:51 +00:00
cmd-refresh-client.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-rename-session.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-rename-window.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-resize-pane.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-respawn-pane.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-respawn-window.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-rotate-window.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-run-shell.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-save-buffer.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-select-layout.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-select-pane.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-select-window.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-send-keys.c Fundamental change to how copy mode key bindings work: 2016-10-11 07:23:34 +00:00
cmd-send-prefix.c Make command exec functions return an enum rather than -1/0/1 values and 2012-07-11 07:10:15 +00:00
cmd-set-buffer.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-set-environment.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-set-hook.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-set-option.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-show-buffer.c Make command exec functions return an enum rather than -1/0/1 values and 2012-07-11 07:10:15 +00:00
cmd-show-environment.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-show-messages.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-show-options.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-source-file.c Trying to do hooks generically is way too complicated and unreliable and 2016-10-13 22:48:51 +00:00
cmd-split-window.c Trying to do hooks generically is way too complicated and unreliable and 2016-10-13 22:48:51 +00:00
cmd-string.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-swap-pane.c Trying to do hooks generically is way too complicated and unreliable and 2016-10-13 22:48:51 +00:00
cmd-swap-window.c Trying to do hooks generically is way too complicated and unreliable and 2016-10-13 22:48:51 +00:00
cmd-switch-client.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd-unbind-key.c Drop the edit mode key tables and just use fixed key bindings for the 2016-10-12 14:50:14 +00:00
cmd-wait-for.c Add static in cmd-* and fix a few other nits. 2016-10-10 21:51:39 +00:00
cmd.c Some improvements and bug fixes for hooks: 2016-10-13 10:01:49 +00:00
colour.c Instead of representing colours in several different forms with various 2016-07-15 00:42:56 +00:00
control-notify.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
control.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
environ.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
format.c Some other stuff that can be local to one file. 2016-10-11 13:45:47 +00:00
grid-view.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
grid.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
hooks.c Trying to do hooks generically is way too complicated and unreliable and 2016-10-13 22:48:51 +00:00
input-keys.c Remove some dead code in cmd-move-window.c and make a load of local 2016-10-03 22:52:11 +00:00
input.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
job.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
key-bindings.c The repeat prompt in both emacs and vi (and the old one in tmux) doesn't 2016-10-12 13:03:27 +00:00
key-string.c Support double and triple clicks (they are cumulative, so double is 2016-10-11 09:30:36 +00:00
layout-custom.c Fix minimum size when pane status line is enabled, reported by Y Petremann. 2016-08-03 09:07:02 +00:00
layout-set.c Some other stuff that can be local to one file. 2016-10-11 13:45:47 +00:00
layout.c Do not allow the opposite pane to resize when dragging with the mouse 2016-10-10 17:28:30 +00:00
log.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
mode-key.c Drop the edit mode key tables and just use fixed key bindings for the 2016-10-12 14:50:14 +00:00
names.c Add static in window-*.c and move some internal functions out of tmux.h. 2016-10-11 13:21:59 +00:00
notify.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
options-table.c Remove the set-remain-on-exit option, it was always a hack and can now 2016-10-13 21:37:03 +00:00
options.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
paste.c Unused variable and missing time.h. 2016-10-12 09:07:58 +00:00
proc.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
procname.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
resize.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
screen-redraw.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
screen-write.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
screen.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
server-client.c The repeat prompt in both emacs and vi (and the old one in tmux) doesn't 2016-10-12 13:03:27 +00:00
server-fn.c Add static in window-*.c and move some internal functions out of tmux.h. 2016-10-11 13:21:59 +00:00
server.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
session.c Remove the set-remain-on-exit option, it was always a hack and can now 2016-10-13 21:37:03 +00:00
signal.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
status.c Drop the edit mode key tables and just use fixed key bindings for the 2016-10-12 14:50:14 +00:00
style.c Instead of representing colours in several different forms with various 2016-07-15 00:42:56 +00:00
tmux.1 Trying to do hooks generically is way too complicated and unreliable and 2016-10-13 22:48:51 +00:00
tmux.c Add static in window-*.c and move some internal functions out of tmux.h. 2016-10-11 13:21:59 +00:00
tmux.h Trying to do hooks generically is way too complicated and unreliable and 2016-10-13 22:48:51 +00:00
tty-acs.c Remove some dead code in cmd-move-window.c and make a load of local 2016-10-03 22:52:11 +00:00
tty-keys.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
tty-term.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
tty.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
utf8.c Support UTF-8 entry into the command prompt. 2016-10-11 07:11:40 +00:00
window-choose.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
window-clock.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
window-copy.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
window.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
xmalloc.c fatalx() not fatal(). 2016-04-04 16:19:43 +00:00
xmalloc.h Sync the entire xmalloc.[ch] with the other users, but with the addition 2015-11-18 13:06:54 +00:00
xterm-keys.c Remove some dead code in cmd-move-window.c and make a load of local 2016-10-03 22:52:11 +00:00